/* =========================
   VARIABLES
========================= */
:root {
  --bg-paper: #f5f1eb;
  --bg-light: #ececeb;
  --brown: #8f6c63;
  --brown-dark: #7a5c54;
  --rose: #c4a59d;
  --rose-dark: #b9928d;
  --sage: #98a084;
  --text-dark: #2a2321;
  --text-muted: #6f544d;
  --white: #f7f3ed;
  
  --shadow: 0 18px 40px rgba(64, 42, 35, 0.08);
  --section-pad: clamp(3rem, 6vw, 5rem);
}

/* =========================
   RESET / BASE
========================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-muted);
  background: var(--bg-paper);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* El Contenedor Responsivo Maestro */
.container {
  width: 100%;
  max-width: 1400px; /* Tope para monitores ultrawide */
  padding: 0 clamp(20px, 5vw, 40px); /* Márgenes dinámicos laterales */
  margin: 0 auto;
}

.section {
  padding: var(--section-pad) 0;
}

/* Tipografía Compartida */
.serif {
  font-family: Georgia, "Times New Roman", serif;
}

.brand-block, .mini-brand {
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-dark);
  text-transform: uppercase;
  line-height: 1;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
}

.text-white { color: var(--white); }

/* =========================
   PLACEHOLDERS (Grises)
========================= */
.ph {
  background: linear-gradient(145deg, #d4d4d4, #bfbfbf);
  box-shadow: var(--shadow);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.3) 35%, transparent 55%);
  animation: shine 4s infinite linear;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

.ph-arch {
  width: 100%;
  max-width: 380px; 
  aspect-ratio: 3 / 4; 
  border-radius: 190px 190px 0 0; 
  margin-left: auto; 
}

.ph-portrait {
  aspect-ratio: 3 / 4;
  border-radius: 1000px 1000px 0 0;
}

.ph-vertical {
  height: 100%;
  min-height: 400px;
}

.ph-footer {
  height: clamp(200px, 20vw, 300px);
  margin-top: 3rem;
}

/* =========================
   HEADER & MENÚ
========================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 25px;
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav {
  display: flex;
  gap: 90px;
  margin: 0;
  padding: 0;
}

.nav a {
  font-size: 18px;
  font-weight: 400;
  color: #7b6158;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 0.7;
}

.btn-outline {
  height: 40px;
  padding: 0 24px;
  border: 1px solid rgba(123, 97, 88, 0.45);
  color: #7b6158;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(123, 97, 88, 0.1);
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: 
    linear-gradient(rgba(243, 239, 233, 0.42), rgba(243, 239, 233, 0.42)),
    url("../media/textures/fondo_sombra.jpg") center center / cover no-repeat;
}

.hero-content {
  padding-top: 60px;
  width: 100%;
}

.brand-block {
  font-size: clamp(34px, 5.2vw, 66px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--text-dark);
  margin-bottom: 24px;
  margin-left: -3px; 
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-style: italic;
  max-width: 600px;
}

/* =========================
   NOSOTROS
========================= */
.nosotros {
  background: 
    linear-gradient(rgba(236, 236, 235, 0.8), rgba(236, 236, 235, 0.8)),
    url('../media/textures/vuestra_textura.jpg') center / cover;
  padding: 30px 0 60px;
}

.nosotros .text-block {
  max-width: 620px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.text-block p { margin-bottom: 1rem; }
.text-block strong { color: var(--text-dark); }

/* =========================
   ENFOQUE
========================= */
.enfoque {
  background: var(--brown-dark);
  color: var(--white);
}

.enfoque-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.enfoque-copy p { margin-bottom: 1rem; }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.focus-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.icon-rounded-square { border-radius: 20px; }
.icon-circle { border-radius: 50%; }
.icon-soft-square { border-radius: 12px; }

.focus-card h3 {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.focus-card p { font-size: 0.9rem; opacity: 0.9; }

/* =========================
   FORMACION
========================= */
.formacion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.bullet-item { margin-bottom: 1.5rem; }
.bullet-item strong { display: block; color: var(--text-dark); margin-bottom: 0.5rem; }
.bullet-item ul { padding-left: 1.5rem; }

.formacion-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2rem;
}

.highlight-box {
  background: var(--rose);
  color: var(--white);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 400px;
}

.highlight-box p { margin: 0; }

/* =========================
   FUNCIONA
========================= */
.funciona { background: var(--bg-light); padding-bottom: 0; }

.funciona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.feature-block { margin-bottom: 3rem; }

.feature-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.circle-down {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--brown-dark);
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--brown-dark);
}

.circle-down--light {
  border-color: var(--white);
  color: var(--white);
}

.feature-title, .sumarse-title {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: var(--brown-dark);
}

.feature-block p, .feature-block ul { margin-bottom: 1rem; }
.feature-block ul { padding-left: 1.5rem; }

/* =========================
   SUMARSE
========================= */
.sumarse { background: var(--bg-light); }

.sumarse-box {
  background: var(--rose-dark);
  color: var(--white);
  padding: clamp(2rem, 5vw, 3rem);
}

.sumarse-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sumarse-title { color: var(--white); }

.sumarse-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.sumarse-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* =========================
   CONTACTO
========================= */
.contacto { background: var(--sage); padding-bottom: 0; }
.contacto-desc { color: var(--white); margin-bottom: 2rem; }

.contact-box {
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.fake-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fake-field label { font-size: 0.85rem; color: var(--white); }

.fake-input {
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =========================
   FOOTER
========================= */
.footer-bottom {
  background: var(--bg-paper);
  padding: 3rem 0;
}

.footer-bottom-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.footer-info { display: flex; flex-direction: column; gap: 1rem; }
.footer-url { font-weight: bold; }

/* =========================
   MEDIA QUERIES (RESPONSIVE)
========================= */

/* Laptops Pequeñas / MacBooks (hasta 1200px) */
@media (max-width: 1200px) {
  .nav { gap: 40px; } 
  .grid-2 { gap: 30px; }
  .enfoque-top { grid-template-columns: 1fr; } 
}

/* Tablets y Móviles: MENÚ INFERIOR TIPO APP (hasta 900px) */
@media (max-width: 900px) {
  /* Protegemos el contenido inferior para que la barra no lo tape */
  body {
    padding-bottom: 70px; 
  }

  /* El botón de contacto se queda arriba a la derecha */
  .header-inner { 
    justify-content: flex-end; 
  }

  /* Transformamos el menú en una barra fija abajo */
  .nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-paper);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 15px 10px 25px; /* Extra padding abajo para pantallas táctiles */
    margin: 0;
    gap: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08); /* Sombra elegante hacia arriba */
    border-radius: 24px 24px 0 0; /* Bordes redondeados modernos arriba */
    z-index: 1000;
  }
  
  .nav a {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 5px;
    letter-spacing: 0;
  }
  
  .hero-content { padding-top: 100px; } 
  
  .grid-2 { grid-template-columns: 1fr; } 
  .ph-arch { margin: 0 auto; max-width: 320px; } 
  
  .formacion-grid, .funciona-grid { grid-template-columns: 1fr; }
  .formacion-right { align-items: flex-start; }
  .highlight-box { max-width: 100%; margin-top: 20px; }
}

/* Móviles pequeños (hasta 600px) */
@media (max-width: 600px) {
  .btn-outline { padding: 0 16px; font-size: 14px; height: 36px; } 
  
  .brand-block { font-size: 40px; letter-spacing: 0.1em; }
  .hero-subtitle { font-size: 20px; }
  .section-title { font-size: 28px; }
  
  /* Ajuste para que los links quepan en pantallas muy finitas */
  .nav a { font-size: 11px; }

  .cards-3 { grid-template-columns: 1fr; } 
  .footer-bottom-inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .form-grid { grid-template-columns: 1fr; } 
}