@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --azul: #191E36;
  --azul-oscuro: #061A33;
  --dorado: #B29557;
  --dorado-medio: #9F7E40;
  --dorado-oscuro: #846739;
  --beige: #F7F4EE;
  --beige-claro: #FBFAF7;
  --gris-linea: rgba(25, 30, 54, 0.12);
  --texto-suave: rgba(25, 30, 54, 0.72);
  --blanco: #FFFFFF;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", sans-serif; background: var(--beige); color: var(--azul); line-height: 1.5; }
button, input, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: transparent; }
a { color: inherit; text-decoration: none; }
.serif { font-family: "Playfair Display", serif; }
.container { width: min(100% - 40px, var(--max)); margin: 0 auto; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, 0.9); backdrop-filter: blur(18px); border-bottom: 1px solid var(--gris-linea); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-title { display:block; font-family: "Playfair Display", serif; letter-spacing: 0.26em; font-size: 24px; line-height: 1; color: var(--azul); }
.brand-subtitle { display:block; margin-top: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.26em; color: var(--dorado); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav button { position: relative; font-size: 14px; font-weight: 600; color: var(--azul); transition: color 0.2s ease; }
.nav button:hover, .nav button.active { color: var(--dorado); }
.nav button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 1px; background: var(--dorado); }
.menu-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--gris-linea); color: var(--azul); }
.mobile-nav { display: none; border-top: 1px solid var(--gris-linea); padding: 16px 0 20px; }
.mobile-nav.open { display: block; }
.mobile-nav button { display: block; width: 100%; padding: 12px 0; text-align: left; color: var(--azul); font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 20px; min-height: 48px; font-size: 12px; line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--azul); color: var(--blanco); }
.btn-primary:hover { background: #0b1326; }
.btn-secondary { border: 1px solid rgba(178, 149, 87, 0.7); color: var(--dorado-medio); background: rgba(255, 255, 255, 0.45); }
.btn-secondary:hover { background: rgba(178, 149, 87, 0.08); }
.btn-dark { background: var(--azul-oscuro); color: var(--blanco); }
.btn-outline-dark { color: var(--blanco); border: 1px solid rgba(178, 149, 87, 0.8); }

.section { padding: 110px 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dorado); }
.eyebrow::after { content: ""; display: block; width: 48px; height: 1px; background: var(--dorado); opacity: 0.8; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
h1, h2, h3 { font-family: "Playfair Display", serif; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
h1 { margin-top: 24px; font-size: clamp(46px, 6.6vw, 86px); }
.hero h1 { font-size: clamp(56px, 7.8vw, 104px); line-height: 0.96; }
.subhero h1 { font-size: clamp(44px, 5.8vw, 76px); line-height: 1; }
h2 { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-size: 25px; }
h1 span, h2 span { color: var(--dorado); }
p { color: var(--texto-suave); }

.hero { background: var(--beige-claro); overflow: hidden; }
.hero-grid { min-height: 650px; display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: center; gap: 60px; padding: 80px 0; }
.hero-line { width: 80px; height: 1px; margin-top: 30px; background: var(--dorado); }
.hero-text { margin-top: 30px; max-width: 600px; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.78; }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero-visual { position: relative; min-height: 560px; }
.system-art { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, #f6f1e7, #f8f7f3 45%, #e8e3d8); }
.system-art::before { content: ""; position: absolute; inset: 0; opacity: 0.5; background-image: linear-gradient(rgba(25, 30, 54, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 30, 54, 0.07) 1px, transparent 1px); background-size: 56px 56px; }
.system-dark { position: absolute; right: 0; top: 0; width: 78%; height: 100%; background: var(--azul); clip-path: polygon(38% 0, 100% 0, 100% 100%, 8% 100%); }
.system-border { position: absolute; right: 32px; top: 48px; width: 70%; height: 88%; border: 1px solid rgba(178, 149, 87, 0.45); clip-path: polygon(38% 0, 100% 0, 100% 100%, 8% 100%); }
.system-line { position:absolute; inset:0; width:100%; height:100%; }
.bar { position: absolute; bottom: 0; border: 1px solid rgba(178, 149, 87, 0.4); box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22); backdrop-filter: blur(5px); }
.bar-1 { right: 34%; width: 115px; height: 170px; transform: skewY(-18deg); background: rgba(255,255,255,.12); }
.bar-2 { right: 44%; width: 107px; height: 228px; transform: skewY(-18deg) translateX(18px); background: rgba(178,149,87,.26); }
.bar-3 { right: 54%; width: 99px; height: 286px; transform: skewY(-18deg) translateX(36px); background: rgba(255,255,255,.12); }
.bar-4 { right: 64%; width: 91px; height: 344px; transform: skewY(-18deg) translateX(54px); background: rgba(178,149,87,.26); }
.bar-5 { right: 74%; width: 83px; height: 402px; transform: skewY(-18deg) translateX(72px); background: rgba(255,255,255,.12); }
.system-caption { position: absolute; bottom: 40px; left: 40px; max-width: 240px; border-left: 1px solid var(--dorado); padding-left: 22px; color: var(--dorado); font-size: 13px; text-transform: uppercase; letter-spacing: 0.2em; }

.problem { background: var(--beige-claro); border-top: 1px solid var(--gris-linea); border-bottom: 1px solid var(--gris-linea); }
.two-col { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
.problem-list { display: grid; gap: 20px; padding-left: 34px; border-left: 1px solid var(--gris-linea); }
.problem-item { display: flex; align-items: flex-start; gap: 16px; font-size: 18px; color: var(--texto-suave); }
.problem-final { margin-top: 20px; font-family: "Playfair Display", serif; font-size: 28px; color: var(--azul); }
.intro-copy { max-width: 740px; margin: 20px auto 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; }
.intro-left { margin-left: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 58px; border: 1px solid var(--gris-linea); background: var(--gris-linea); }
.service-card { min-height: 300px; padding: 30px; background: var(--beige-claro); text-align: left; transition: background 0.2s ease, transform 0.2s ease; }
.service-card:hover { background: var(--blanco); transform: translateY(-2px); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.number { font-family: "Playfair Display", serif; font-size: 34px; color: var(--dorado); }
.service-card h3 { margin-top: 30px; max-width: 280px; font-size: 25px; line-height: 1.12; }
.service-card p { margin-top: 16px; font-size: 14px; line-height: 1.7; }
.link-like { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--dorado); font-size: 14px; font-weight: 700; }

.dark-section { overflow: hidden; background: var(--azul-oscuro); color: var(--blanco); }
.dark-section::before { content: ""; position: absolute; inset: 0; opacity: 0.18; background-image: radial-gradient(circle at 1px 1px, var(--dorado) 1px, transparent 0); background-size: 32px 32px; }
.dark-section .container { position: relative; }
.dark-section p { color: rgba(255,255,255,0.7); }
.method-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 60px; }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.method-step { border-left: 1px solid rgba(255,255,255,0.15); padding-left: 24px; }
.method-step h3 { margin-top: 22px; color: var(--blanco); }
.method-step p { margin-top: 16px; font-size: 14px; line-height: 1.7; }

.system-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: center; }
.quote-line { margin-top: 32px; padding-left: 22px; border-left: 1px solid var(--dorado); font-family: "Playfair Display", serif; font-size: 28px; color: var(--dorado); }
.diagram { position: relative; width: min(100%, 580px); aspect-ratio: 1; margin: 0 auto; border-radius: 999px; border: 1px solid rgba(178,149,87,0.35); background: rgba(255,255,255,0.5); }
.diagram::before { content: ""; position: absolute; inset: 15%; border-radius: 999px; border: 1px dashed rgba(178,149,87,0.35); }
.diagram::after { content: ""; position: absolute; inset: 30%; border-radius: 999px; border: 1px solid rgba(25,30,54,0.1); }
.diagram-center { position: absolute; left: 50%; top: 50%; z-index: 2; width: 112px; height: 112px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 999px; background: #F6F1E8; box-shadow: 0 20px 45px rgba(0,0,0,0.15); }
.node { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transform: translate(-50%, -50%); }
.node-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(178,149,87,0.4); background: var(--beige-claro); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.node span { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

.diagnostic { background: var(--beige); border-top: 1px solid var(--gris-linea); border-bottom: 1px solid var(--gris-linea); }
.diagnostic-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 50px; }
.small-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.small-card { padding: 24px; background: var(--beige-claro); border: 1px solid var(--gris-linea); }
.small-card p { margin-top: 16px; font-size: 14px; line-height: 1.7; }
.cta { padding: 42px 0; background: var(--dorado); color: var(--blanco); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: clamp(32px, 4vw, 44px); color: var(--blanco); }
.cta p { margin-top: 8px; color: rgba(255,255,255,0.82); }

.subhero { background: var(--beige-claro); border-bottom: 1px solid var(--gris-linea); overflow: hidden; }
.subhero-grid { min-height: 500px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; padding: 66px 0; }
.subhero-visual { position: relative; height: 390px; overflow: hidden; background: var(--azul-oscuro); }
.subhero-visual .system-art { inset: 0; }
.subhero-visual .bar-1 { right: 30%; width: 86px; height: 110px; }
.subhero-visual .bar-2 { right: 42%; width: 80px; height: 165px; }
.subhero-visual .bar-3 { right: 54%; width: 74px; height: 220px; }
.subhero-visual .bar-4 { right: 66%; width: 68px; height: 275px; }
.subhero-visual .bar-5 { right: 78%; width: 62px; height: 330px; }
.content-copy { font-size: 18px; line-height: 1.8; }
.values-grid, .method-page-grid { display: grid; gap: 1px; border: 1px solid var(--gris-linea); background: var(--gris-linea); }
.values-grid { grid-template-columns: repeat(3, 1fr); }
.value-card { background: var(--beige-claro); padding: 28px; }
.value-card h3 { margin-top: 18px; }
.value-card p { margin-top: 12px; font-size: 14px; line-height: 1.7; }
.service-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-detail { padding: 34px; background: var(--blanco); border: 1px solid var(--gris-linea); }
.service-detail p { margin-top: 18px; }
.bullet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.bullet { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--texto-suave); }
.method-page-grid { grid-template-columns: repeat(4, 1fr); margin-top: 60px; }
.method-page-card { position: relative; background: var(--beige-claro); padding: 34px 28px 28px; border-top: 1px solid var(--dorado); }
.method-badge { position: absolute; top: -20px; left: 28px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; background: var(--azul-oscuro); color: var(--blanco); font-family: "Playfair Display", serif; font-size: 18px; }
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.faq-card { padding: 32px; background: var(--beige); border: 1px solid var(--gris-linea); }
.form-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
.contact-list { margin-top: 40px; display: grid; gap: 20px; color: var(--texto-suave); }
.contact-item { display: flex; align-items: center; gap: 16px; }
.form { padding: 34px; background: var(--blanco); border: 1px solid var(--gris-linea); }
.input-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
label { display: block; font-size: 14px; font-weight: 700; color: var(--azul); }
input, textarea { width: 100%; margin-top: 8px; padding: 15px; border: 1px solid rgba(25,30,54,0.16); background: var(--beige-claro); outline: none; color: var(--azul); }
input:focus, textarea:focus { border-color: var(--dorado); }
textarea { min-height: 150px; resize: vertical; }
.footer { background: var(--azul-oscuro); color: var(--blanco); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 1fr 0.8fr; gap: 40px; padding: 58px 0; }
.footer p { color: rgba(255,255,255,0.65); }
.footer-logo-title { color:white; }
.footer-heading { color: var(--dorado); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.24em; }
.footer-links { display: grid; gap: 12px; margin-top: 20px; }
.footer-links button, .footer-links span { color: rgba(255,255,255,0.65); text-align: left; transition: color 0.2s ease; }
.footer-links button:hover { color: var(--blanco); }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; color: rgba(255,255,255,0.45); font-size: 12px; }
.hidden-page { display: none; }
.icon-gold { color: var(--dorado); }

@media (max-width: 1050px) {
  .nav, .header .desktop-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .subhero-grid, .two-col, .method-grid, .system-layout, .diagnostic-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-visual, .subhero-visual { min-height: 420px; }
  .service-grid, .small-card-grid, .values-grid, .service-page-grid, .method-page-grid, .faq-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)); }
  .brand-subtitle { display: none; }
  .brand-title { font-size: 21px; }
  .section { padding: 78px 0; }
  .hero-grid { min-height: auto; padding: 64px 0; }
  .hero-visual, .subhero-visual { min-height: 340px; }
  h1, .hero h1, .subhero h1 { font-size: clamp(42px, 13vw, 58px); }
  h2 { font-size: clamp(34px, 9vw, 42px); }
  .hero-actions, .cta-inner { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .service-grid, .small-card-grid, .values-grid, .service-page-grid, .method-page-grid, .faq-grid, .footer-grid, .input-grid, .method-steps, .bullet-grid { grid-template-columns: 1fr; }
  .problem-list { padding-left: 0; border-left: 0; }
  .diagram { width: min(100%, 360px); }
  .node-icon { width: 52px; height: 52px; }
  .node span { font-size: 9px; }
  .diagram-center { width: 92px; height: 92px; }
}

/* Visual assets inserted as page graphics */
.visual-image-card {
  position: relative;
  overflow: hidden;
  background: #f7f2e9;
  border: 1px solid rgba(178, 149, 87, 0.22);
  box-shadow: 0 28px 70px rgba(25, 30, 54, 0.12);
}

.hero-visual.visual-image-card,
.subhero-visual.visual-image-card {
  min-height: unset;
  height: auto;
  aspect-ratio: 16 / 10;
}

.visual-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero-visual.visual-image-card,
  .subhero-visual.visual-image-card {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 640px) {
  .hero-visual.visual-image-card,
  .subhero-visual.visual-image-card {
    aspect-ratio: 4 / 3;
  }
}

/* Ajuste final: imagen de Inicio equilibrada con el resto de las pestañas */
@media (min-width: 1051px) {
  #home .container {
    width: min(100% - 48px, 1240px);
  }

  #home .hero-grid {
    min-height: 690px;
    grid-template-columns: minmax(420px, 0.82fr) minmax(620px, 1.18fr);
    gap: 46px;
    padding: 72px 0;
  }

  #home .hero h1 {
    font-size: clamp(52px, 6.6vw, 94px);
  }

  #home .hero-text {
    max-width: 560px;
  }

  #home .hero-visual.visual-image-card {
    width: 100%;
    margin-right: 0;
    aspect-ratio: 16 / 10;
  }

  #home .visual-image {
    object-fit: cover;
    object-position: center center;
  }
}

@media (min-width: 681px) and (max-width: 1050px) {
  #home .hero-visual.visual-image-card {
    aspect-ratio: 16 / 10;
  }
}

/* Corrección: Inicio mantiene buen tamaño, pero sin recortar el contenido interno de la imagen */
@media (min-width: 1051px) {
  #home .hero-grid > div:first-child {
    position: relative;
    z-index: 2;
  }

  #home .hero-visual.visual-image-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    aspect-ratio: 16 / 10;
  }

  #home .hero-visual.visual-image-card .visual-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    padding: 12px;
    background: #f7f2e9;
  }
}

@media (max-width: 1050px) {
  #home .hero-visual.visual-image-card .visual-image {
    object-fit: contain;
    object-position: center center;
    padding: 10px;
    background: #f7f2e9;
  }
}

/* Ajuste solicitado: Inicio con imagen completa visible, sin recortes ni traslapes */
@media (min-width: 1051px) {
  #home .container {
    width: min(100% - 48px, 1240px);
  }

  #home .hero-grid {
    min-height: 690px;
    grid-template-columns: minmax(430px, 0.9fr) minmax(560px, 1.1fr);
    gap: 50px;
    align-items: center;
    padding: 72px 0;
  }

  #home .hero-grid > div:first-child {
    position: relative;
    z-index: 2;
  }

  #home .hero-visual.visual-image-card {
    width: 100%;
    max-width: 680px;
    height: auto;
    min-height: unset;
    aspect-ratio: 4 / 3;
    margin-left: auto;
    margin-right: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  #home .hero-visual.visual-image-card .visual-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    padding: 0;
    background: transparent;
  }
}

@media (min-width: 681px) and (max-width: 1050px) {
  #home .hero-visual.visual-image-card {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  #home .hero-visual.visual-image-card .visual-image {
    object-fit: contain;
    object-position: center center;
    padding: 0;
    background: transparent;
  }
}

@media (max-width: 680px) {
  #home .hero-visual.visual-image-card {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: unset;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  #home .hero-visual.visual-image-card .visual-image {
    object-fit: contain;
    object-position: center center;
    padding: 0;
    background: transparent;
  }
}

/* Ajuste: tipografía de Inicio ligeramente más chica para que todo respire mejor */
@media (min-width: 1051px) {
  #home .hero h1 {
    font-size: clamp(48px, 5.8vw, 82px);
    line-height: 1;
  }

  #home .hero-text {
    margin-top: 24px;
    max-width: 520px;
    font-size: clamp(15px, 1.1vw, 16px);
    line-height: 1.65;
  }

  #home .hero-line {
    margin-top: 24px;
  }

  #home .hero-actions {
    margin-top: 32px;
  }
}

@media (max-width: 680px) {
  #home .hero h1 {
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1.02;
  }

  #home .hero-text {
    font-size: 15.5px;
    line-height: 1.65;
  }
}


/* Logo image override */
.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand-mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
footer .brand-mark {
  width: 42px;
  height: 42px;
}


/* Logo real dentro del diagrama sistémico de Inicio */
.diagram-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

@media (max-width: 680px) {
  .diagram-logo-img {
    width: 52px;
    height: 52px;
  }
}
