:root {
  --brand:      #dc3800;   /* Takora naranja-rojo */
  --brand-dark: #b52e00;   /* hover / sombras */
  --dark:       #000000;   /* negro — fondos oscuros */
  --dark-2:     #202020;   /* gris muy oscuro — cards y pasos alternos */
  --warm-pale:  #ffd4c2;   /* texto claro sobre fondo oscuro */
  --bg-light:   #fff3ef;   /* fondo cálido para cards */
  --slate:      #3d3d3d;   /* texto cuerpo */
  --white:      #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  color: var(--slate);
  background: var(--white);
  line-height: 1.55;
  padding: 10px;
}

h1, h2, h3, h4 {
  font-family: Cambria, "Times New Roman", serif;
  color: var(--dark);
  line-height: 1.2;
}

a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

/* NAV */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 2px solid var(--brand);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 4%;
}

/* Logo responsive: largo en desktop, corto en móvil */
.navbar .logo { display: flex; align-items: center; }
.logo-wide  { display: block;  height: 48px; width: auto; }
.logo-short { display: none;   height: 48px; width: auto; }

.navbar nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.navbar nav a { color: var(--dark); font-weight: 600; font-size: 0.95rem; }
.navbar nav a:hover { color: var(--brand); }

/* HERO */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 4.5rem 4% 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: -120px; right: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: #1c1c1c;
}
.hero::after {
  content: "";
  position: absolute; bottom: -160px; left: 60%;
  width: 320px; height: 320px; border-radius: 50%;
  background: #2a0800;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  font-size: 0.85rem; letter-spacing: 0.25em; font-weight: 700;
  color: var(--brand); text-transform: uppercase; margin-bottom: 1rem;
}
.hero h1 { font-size: 2.6rem; color: var(--white); margin-bottom: 1rem; }
.hero p.lead { font-size: 1.15rem; color: var(--warm-pale); max-width: 620px; }
.hero .cta-row { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Logo hero — se adapta al ancho del contenedor */
.hero-logo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block; padding: 0.85rem 1.8rem; border-radius: 6px;
  font-weight: 700; font-size: 0.95rem; transition: opacity .15s ease;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-outline  { background: transparent; border: 1px solid var(--warm-pale); color: var(--white); }
.btn:hover { opacity: 0.85; }

/* PILLARS */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  padding: 3.5rem 4%; max-width: 1300px; margin: 0 auto;
}
.pillar-card {
  /*background: var(--bg-light); */
  border: 1px solid var(--bg-light);
  border-radius: 10px; 
  padding: 1.8rem;
  box-shadow: 0 6px 18px rgba(220,56,0,0.15);
  border-top: 3px solid var(--brand);
}
.pillar-card .icon {
  width: 54px; height: 54px; border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  color: var(--white); font-size: 1.4rem; font-weight: bold;
}
.pillar-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.pillar-card p  { font-size: 0.95rem; }
.pillar-card a.more { display: inline-block; margin-top: 0.8rem; font-weight: 700; font-size: 0.9rem; color: var(--brand); }

/* SECTION GENERIC */
.section { display: grid; padding: 4rem 4%; max-width: 1300px; border-radius: 10px; margin: 10px auto; }
.section h2 { font-size: 2rem; margin-bottom: 0.6rem; }
.section .section-intro { max-width: 760px; color: var(--slate); margin-bottom: 2.5rem; font-size: 1.05rem; }
.section.alt  { background: var(--bg-light); }
.section.dark { background: var(--dark); color: var(--warm-pale); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark .section-intro { color: var(--warm-pale); }
#asesoria {border: 1px solid var(--brand);}
#peritajes {border: 1px solid var(--brand);}
#numero {color: var(--brand);}

/* CARD GRID */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border-radius: 10px; padding: 1.6rem;
  box-shadow: 0 4px 14px rgba(220, 55, 0, 0.15);
  border-left: 3px solid transparent;
  transition: border-color .2s;
}
.card:hover { border-left-color: var(--brand); }
.section.dark .card { background: var(--dark-2); box-shadow: none; border-left-color: transparent; }
.section.dark .card:hover { border-left-color: var(--brand); }

.card .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 0.5rem;
}
.card h4 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--dark); }
.card p  { font-size: 0.92rem; color: var(--slate); }
.section.dark .card h4 { color: var(--white); }
.section.dark .card p  { color: var(--warm-pale); }

ul.service-list { list-style: none; padding: 0; }
ul.service-list li {
  position: relative; padding-left: 1.4rem; margin-bottom: 0.7rem; font-size: 0.95rem;
}
ul.service-list li:hover {color: var(--brand);}
ul.service-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}

/* PROCESS STEPS */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.step {
  background: var(--dark); color: var(--white); border-radius: 10px;
  padding: 1.4rem 1.1rem; text-align: center; border: 1px solid var(--warm-pale);
}
.step:nth-child(even) { background: var(--dark-2); }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 0.8rem;
  font-family: Cambria, serif; font-weight: bold; font-size: 1.2rem; color: var(--white);
}
.step h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.4rem; }
.step p  { font-size: 0.82rem; color: var(--warm-pale); }

/* TWO COLUMN INFO */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.two-col h3 { margin-bottom: 0.8rem; }

/* CONTACT */
.contact-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; }

.form-card {
  background: var(--bg-light); border-radius: 10px; padding: 2rem;
  border-top: 3px solid var(--brand);
}
.form-card label {
  display: block; font-size: 0.85rem; font-weight: 700; color: var(--dark);
  margin-bottom: 0.3rem; margin-top: 1rem;
}
.form-card label:first-of-type { margin-top: 0; }
.form-card input,
.form-card textarea {
  width: 100%; padding: 0.7rem; border: 1px solid #d9c5be; border-radius: 6px;
  font-family: inherit; font-size: 0.95rem; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(220,55,0,0.15);
}
.form-card textarea { min-height: 120px; resize: vertical; }
.g-recaptcha {
  margin-top: 1.2rem;
  transform-origin: left top;
}
@media (max-width: 360px) {
  .g-recaptcha { transform: scale(0.88); }
}
.form-card .submit-btn {
  margin-top: 1.2rem; background: var(--brand); color: var(--white); border: none;
  padding: 0.85rem 2rem; border-radius: 6px; font-weight: 700; cursor: pointer;
  font-size: 0.95rem; transition: background .15s;
  display: flex; align-items: center; gap: 0.5rem;
}
.form-card .submit-btn:hover:not(:disabled) { background: var(--brand-dark); }
.form-card .submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.spinner {
  display: none;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.submit-btn.loading .spinner { display: block; }

.form-msg {
  display: none; padding: 0.8rem 1rem; border-radius: 6px;
  margin-top: 1rem; font-size: 0.9rem; font-weight: 600;
}
.form-msg.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.form-msg.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.about-card {
  background: var(--dark); color: var(--warm-pale); border-radius: 10px; padding: 2rem;
  border-top: 3px solid var(--brand);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.about-card h3 { color: var(--white); }
#taaza {background-color: var(--white);}

.taza-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto;
}
.taza-frase {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  font-family: Cambria, "Times New Roman", serif;
  color: var(--warm-pale);
  font-style: italic;
}
.about-card .founder { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.about-card .founder .ph {
  width: 64px; height: 64px; border-radius: 50%; background: var(--brand); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--white);
  font-family: Cambria, serif; font-size: 1.4rem;
}
.about-card .founder .ph-img {
  width: 110px; height: 110px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; object-position: center top;
  border: 1px solid var(--slate); /* var(--brand); */
}
#director  { color: var(--warm-pale); font-family: Calibri, "Segoe UI", Arial, sans-serif;}
#primerLetra::first-letter {
  font-size: 120%;
  font-weight: bold;
  color: var(--brand);
}

/* FOOTER */
footer {
  background: var(--dark);
  color: var(--white); /*(--warm-pale);*/
  padding: 2.5rem 4% 1.5rem;
  text-align: center; font-size: 0.85rem;
  border-top: 3px solid var(--brand);
}
footer strong { color: var(--white); }

@media (max-width: 980px) {
  .pillars       { grid-template-columns: 1fr; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps         { grid-template-columns: 1fr; }
  .two-col       { grid-template-columns: 1fr; }
  .contact-wrap  { grid-template-columns: 1fr; }
  .hero h1       { font-size: 2rem; }
  .navbar nav    { gap: 1rem; }
  .hero-logo     { max-width: 280px; }
}

@media (max-width: 680px) {
  .logo-wide  { display: none; }
  .logo-short { display: block; }
  .navbar nav { font-size: 0.85rem; gap: 0.7rem; }
}
