/* =====================================================
   BROSVAL - Estilos
   Paleta basada en el logo: azul marino + gris
   Estética: formal, pulcro, editorial
   ===================================================== */

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

:root {
  /* Paleta — basada en el logo del cliente */
  --c-bg:         #f4f5f7;   /* fondo principal, gris clarísimo */
  --c-bg-alt:     #e9ecf0;   /* fondo alterno */
  --c-paper:      #ffffff;   /* tarjetas */

  --c-ink:        #2a2d33;   /* texto principal, gris oscuro */
  --c-ink-2:      #3c4049;   /* texto secundario */
  --c-ink-soft:   #5a5f6a;   /* texto suave */
  --c-ink-mute:   #8a8f99;   /* texto muy suave */

  --c-line:       #d5d9e0;   /* líneas divisorias */
  --c-line-soft:  #e4e7ec;

  --c-brand:      #1f3a68;   /* azul marino del logo */
  --c-brand-2:    #2d4f8a;   /* azul un poco más claro */
  --c-brand-ink:  #162b4e;   /* azul profundo */
  --c-steel:      #6e7480;   /* gris del logo */

  /* Tipografía */
  --f-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --f-body:    "Lora", Georgia, "Times New Roman", serif;
  --f-sans:    "Inter Tight", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --ease:      cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--f-sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-brand);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--c-ink);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 18px 0 20px;
  font-weight: 500;
}
.section-title em {
  font-style: italic;
  color: var(--c-brand);
  font-weight: 500;
}

.section-lede {
  color: var(--c-ink-soft);
  max-width: 640px;
  font-size: 1.05rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: all .35s var(--ease);
  background: transparent;
}
.site-header.scrolled {
  background: rgba(244, 245, 247, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line-soft);
  padding: 10px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo como imagen */
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 58px;
  width: auto;
  display: block;
  transition: height .35s var(--ease);
}
.site-header.scrolled .brand-logo { height: 48px; }

.nav-links {
  display: flex; gap: 6px;
  list-style: none;
}
.nav-links a {
  padding: 10px 18px;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  color: var(--c-ink-2);
  transition: color .25s var(--ease);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.nav-links a:hover { color: var(--c-brand); }

.nav-toggle {
  display: none;
  background: none; border: none; color: var(--c-ink);
  cursor: pointer; padding: 8px;
}

/* ---------- Hero — full width con imagen de fondo ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center center;
  z-index: 0;
  animation: heroKen 30s ease-in-out infinite alternate;
}
@keyframes heroKen {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* Capa oscura encima de la imagen para legibilidad del texto */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,28,55,0.85) 0%, rgba(15,28,55,0.55) 55%, rgba(15,28,55,0.25) 100%),
    linear-gradient(180deg, rgba(15,28,55,0.3) 0%, rgba(15,28,55,0.6) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 760px;
}

.hero .eyebrow {
  color: #d4dbea;
  opacity: 0.9;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin: 28px 0 32px;
  font-weight: 500;
  line-height: 1.08;
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.2);
}
.hero-copy h1 em {
  font-style: italic;
  color: #c9d4e8;
  font-weight: 400;
}

.hero-lede {
  color: rgba(255,255,255,0.88);
  font-size: 1.18rem;
  max-width: 560px;
  line-height: 1.75;
  text-shadow: 0 1px 20px rgba(0,0,0,0.25);
}

.hero-divider {
  display: flex; align-items: center; gap: 16px;
  margin-top: 56px;
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.hero-divider::before {
  content: "";
  width: 60px; height: 1px;
  background: rgba(255,255,255,0.6);
}

/* Scroll indicator abajo */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* Transparencia del header sobre el hero */
.site-header:not(.scrolled) .brand-logo {
  filter: brightness(0) invert(1);
}
.site-header:not(.scrolled) .nav-links a {
  color: rgba(255,255,255,0.9);
}
.site-header:not(.scrolled) .nav-links a:hover {
  color: #fff;
}
.site-header:not(.scrolled) .nav-toggle {
  color: #fff;
}

/* ---------- Sección general ---------- */
.section {
  padding: 130px 0;
  position: relative;
}

.section-alt {
  background: var(--c-bg-alt);
}

.section-head {
  max-width: 760px;
  margin-bottom: 80px;
}

/* ---------- Nosotros ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 90px;
  align-items: start;
  margin-bottom: 100px;
}

.about-quote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1.35;
  color: var(--c-brand-ink);
  padding-left: 28px;
  border-left: 2px solid var(--c-brand);
  font-weight: 500;
}
.about-quote small {
  display: block;
  margin-top: 24px;
  font-family: var(--f-sans);
  font-size: 11px;
  font-style: normal;
  color: var(--c-ink-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.about-text p {
  color: var(--c-ink-2);
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }

/* Imagen secundaria (sobre nosotros) */
.about-image-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}
css.about-photo {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: transparent;
}
.about-photo img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 1.2s var(--ease);
}
.about-photo:hover img { transform: scale(1.03); }

.about-image-text h3 {
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--c-brand-ink);
}
.about-image-text p {
  color: var(--c-ink-soft);
  margin-bottom: 14px;
}

/* Misión Visión Valores */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--c-brand);
  border-bottom: 1px solid var(--c-line);
}

.mvv-card {
  padding: 56px 40px;
  border-right: 1px solid var(--c-line);
  position: relative;
  transition: background .3s var(--ease);
  background: var(--c-paper);
}
.mvv-card:last-child { border-right: none; }
.mvv-card:hover { background: #fafbfd; }

.mvv-number {
  font-family: var(--f-sans);
  font-size: 11px;
  color: var(--c-brand);
  letter-spacing: 0.22em;
  margin-bottom: 28px;
  font-weight: 600;
}
.mvv-icon {
  width: 42px; height: 42px;
  color: var(--c-brand);
  margin-bottom: 22px;
}
.mvv-card h3 {
  font-size: 2rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--c-brand-ink);
}
.mvv-card p {
  color: var(--c-ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

/* ---------- Servicios (editorial) ---------- */
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-line);
}

.service-row {
  display: grid;
  grid-template-columns: 100px 1fr 1.3fr;
  gap: 40px;
  padding: 42px 0;
  border-bottom: 1px solid var(--c-line);
  align-items: start;
  transition: padding-left .35s var(--ease);
}
.service-row:hover {
  padding-left: 14px;
}
.service-row:hover .service-num {
  color: var(--c-brand);
}

.service-num {
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-steel);
  font-weight: 600;
  padding-top: 8px;
  transition: color .3s var(--ease);
}

.service-title {
  font-size: 1.55rem;
  font-weight: 500;
  font-style: italic;
  color: var(--c-brand-ink);
}

.service-desc {
  color: var(--c-ink-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ---------- Cita grande ---------- */
.pull-quote {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.pull-quote blockquote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.4;
  color: var(--c-brand-ink);
  font-weight: 500;
}
.pull-quote blockquote::before {
  content: "“";
  display: block;
  font-size: 5rem;
  color: var(--c-brand);
  line-height: 0.3;
  margin-bottom: 30px;
}
.pull-quote cite {
  display: block;
  margin-top: 34px;
  font-family: var(--f-sans);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  font-weight: 600;
}

/* ---------- Contacto ---------- */
.contact {
  padding: 140px 0;
  background: var(--c-bg-alt);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 90px;
}

.contact-info h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 18px 0 26px;
  color: var(--c-brand-ink);
}
.contact-info > p {
  color: var(--c-ink-soft);
  margin-bottom: 48px;
  max-width: 440px;
  font-size: 1.05rem;
}

.contact-details {
  display: flex; flex-direction: column; gap: 28px;
}
.contact-detail {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail b {
  display: block;
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-brand);
  font-weight: 600;
  margin-bottom: 8px;
}
.contact-detail span {
  color: var(--c-ink);
  font-size: 1.08rem;
  font-family: var(--f-display);
  font-style: italic;
}

/* Formulario */
.contact-form {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  padding: 56px 52px;
  box-shadow: 0 20px 50px -30px rgba(31,58,104,0.2);
}

.form-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line-soft);
}
.form-header h3 {
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--c-brand-ink);
}
.form-header p {
  color: var(--c-ink-soft);
  font-size: 0.92rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-field { position: relative; margin-bottom: 26px; }

.form-field label {
  display: block;
  font-family: var(--f-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-ink-soft);
  margin-bottom: 10px;
  font-weight: 600;
}
.form-field label b { color: var(--c-brand); font-weight: 600; }

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-line);
  padding: 10px 0;
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 1rem;
  transition: border-color .3s var(--ease);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-bottom-color: var(--c-brand);
}
.form-field textarea { min-height: 110px; }

.form-field .error-msg {
  display: none;
  color: #b84545;
  font-size: 0.82rem;
  margin-top: 6px;
  font-family: var(--f-sans);
}
.form-field.has-error input,
.form-field.has-error textarea { border-bottom-color: #b84545; }
.form-field.has-error .error-msg { display: block; }

.honeypot {
  position: absolute;
  left: -9999px; top: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.form-submit {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 36px;
  gap: 20px;
  flex-wrap: wrap;
}
.form-note {
  font-size: 0.82rem;
  color: var(--c-ink-mute);
  font-family: var(--f-sans);
}

.form-btn {
  background: var(--c-brand);
  color: #fff;
  border: none;
  padding: 16px 38px;
  font-family: var(--f-sans);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease);
  font-weight: 600;
}
.form-btn:hover { background: var(--c-brand-ink); }
.form-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-response {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--c-brand);
  background: rgba(31,58,104,0.05);
  font-size: 0.95rem;
  display: none;
}
.form-response.success {
  border-left-color: #4a7c59;
  background: rgba(74,124,89,0.08);
  color: #2f4a30;
}
.form-response.error {
  border-left-color: #b84545;
  background: rgba(184,69,69,0.06);
  color: #6b2424;
}
.form-response.visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-brand-ink);
  color: #b8c0d0;
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: start;
}
.footer-brand .brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.95;
  height: 56px;
}
.footer-brand p {
  color: #8a93a5;
  max-width: 340px;
  margin-top: 24px;
  font-size: 0.95rem;
}
.footer-col h5 {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d4dbea;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span {
  color: #b8c0d0;
  font-size: 0.95rem;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: #8a93a5;
  font-size: 0.8rem;
  font-family: var(--f-sans);
  letter-spacing: 0.04em;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .section, .contact { padding: 80px 0; }
  .hero { padding: 120px 0 100px; min-height: 90vh; }
  .hero-copy h1 { font-size: clamp(2rem, 8vw, 3.4rem); }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(15,28,55,0.55) 0%, rgba(15,28,55,0.8) 100%);
  }
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .about-image-row { grid-template-columns: 1fr; gap: 40px; }
  .mvv-grid { grid-template-columns: 1fr; }
  .mvv-card { border-right: none; border-bottom: 1px solid var(--c-line); }
  .mvv-card:last-child { border-bottom: none; }
  .service-row { grid-template-columns: 80px 1fr; }
  .service-row .service-desc { grid-column: 2 / 3; }
  .contact-inner { grid-template-columns: 1fr; gap: 50px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }

  .brand-logo { height: 50px; }
  .site-header.scrolled .brand-logo { height: 42px; }

  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .site-header.mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--c-bg);
    padding: 20px 32px;
    border-top: 1px solid var(--c-line-soft);
    border-bottom: 1px solid var(--c-line-soft);
  }
}

@media (max-width: 620px) {
  .container { padding: 0 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 36px 26px; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .service-row .service-desc { grid-column: auto; }
  .mvv-card { padding: 40px 28px; }
  .brand-logo { height: 42px; }
}
