/* =========================================================
   ESEA — base.css
   Variables de marca, reset, layout compartido (navbar/footer),
   botones y placeholders de imagen.
   ========================================================= */

/* ---------- Tipografías de marca ----------
   Fuentes auto-alojadas en assets/fonts/.
   local() permite usarlas si ya están instaladas en el sistema. */
@font-face {
  font-family: 'Arial Rounded MT Bold';
  src: local('Arial Rounded MT Bold'), local('ArialRoundedMTBold'),
       url('../assets/fonts/ARLRDBD.TTF') format('truetype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Caviar Dreams';
  src: local('Caviar Dreams'), local('CaviarDreams'),
       url('../assets/fonts/CaviarDreams.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Caviar Dreams';
  src: local('Caviar Dreams Italic'), local('CaviarDreams-Italic'),
       url('../assets/fonts/CaviarDreams_Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Caviar Dreams';
  src: local('Caviar Dreams Bold'), local('CaviarDreams-Bold'),
       url('../assets/fonts/CaviarDreams_Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Caviar Dreams';
  src: local('Caviar Dreams Bold Italic'), local('CaviarDreams-BoldItalic'),
       url('../assets/fonts/CaviarDreams_BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Paleta de marca */
  --turquesa: #4ec3c0;
  --turquesa-oscuro: #379f9c;
  --turquesa-claro: #cdeeed;
  --amarillo: #f5e424;
  --amarillo-oscuro: #e0cf00;
  --azul-marino: #1b2173;
  --azul-marino-claro: #2e3596;
  --blanco: #ffffff;
  --crema: #fafafa;
  --gris-texto: #5a5f73;
  --gris-borde: #e6e6ee;

  /* Tipografía
     Principal (títulos/marca): Arial Rounded MT Bold
     Secundaria (cuerpo de texto): Caviar Dreams */
  --font-display: 'Arial Rounded MT Bold', 'Helvetica Rounded', 'Baloo 2', Arial, sans-serif;
  --font-body: 'Caviar Dreams', 'Century Gothic', 'Poppins', 'Segoe UI', sans-serif;

  /* Radios y sombras */
  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 24px rgba(27, 33, 115, 0.08);
  --shadow-card: 0 4px 14px rgba(27, 33, 115, 0.10);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--azul-marino);
  background: var(--blanco);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Foco visible para accesibilidad */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--turquesa-oscuro);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-borde);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar__logo-icon {
  width: 42px;
  height: 42px;
}

.navbar__logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.navbar__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
}

.navbar__logo-text .half-a { color: var(--turquesa); }
.navbar__logo-text .half-b { color: var(--amarillo-oscuro); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.navbar__links a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--azul-marino);
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.navbar__links a:hover,
.navbar__links a.is-active {
  color: var(--turquesa-oscuro);
  border-bottom-color: var(--turquesa-oscuro);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.navbar__social {
  display: flex;
  gap: 8px;
}

.navbar__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--turquesa);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.navbar__social a:hover {
  background: var(--turquesa-oscuro);
}

.navbar__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 30px;
  height: 24px;
  justify-content: center;
}

.navbar__toggle span {
  height: 3px;
  border-radius: 2px;
  background: var(--azul-marino);
}

/* =========================================================
   BOTONES
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--amarillo);
  color: var(--azul-marino);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  background: var(--amarillo-oscuro);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--azul-marino);
  color: var(--azul-marino);
}

.btn-outline:hover {
  background: var(--azul-marino);
  color: var(--blanco);
}

.btn-block {
  width: 100%;
}

/* =========================================================
   PAGE HEADER (banda de título turquesa, tipo "PRODUCTOS")
   ========================================================= */

.page-header {
  background: var(--turquesa);
  padding: 46px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--blanco);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  text-transform: uppercase;
}

.page-header p {
  color: rgba(255,255,255,0.9);
  margin-top: 8px;
  font-size: 1.05rem;
}

/* =========================================================
   PLACEHOLDER DE IMAGEN
   Bloque de color con icono — reemplazar luego por <img>
   ========================================================= */

.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-card);
  color: var(--azul-marino);
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

.ph svg {
  width: 48px;
  height: 48px;
  opacity: 0.55;
}

.ph span {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Cuando un .ph contiene una imagen real, la imagen llena el contenedor
   (respetando la forma blob y el radio gracias a overflow:hidden). */
.ph > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph--turquesa { background: var(--turquesa-claro); }
.ph--amarillo { background: #fdf8c9; }
.ph--marino   { background: #e2e4f5; color: var(--azul-marino); }
.ph--gris     { background: #eef0f5; }

/* Formas "blob" de esquina redondeada estilo manual de marca */
.ph--blob {
  border-radius: 38% 62% 60% 40% / 45% 38% 62% 55%;
}

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */

.section {
  padding: 70px 0;
}

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

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  color: var(--azul-marino);
  margin-bottom: 12px;
}

.section-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--turquesa-oscuro);
  margin-bottom: 8px;
}

.section-lead {
  color: var(--gris-texto);
  max-width: 640px;
  margin-bottom: 36px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--azul-marino);
  color: var(--blanco);
  padding: 56px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer__brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer__brand-text .half-a { color: var(--turquesa); }
.footer__brand-text .half-b { color: var(--amarillo); }

.footer__brand-img {
  height: 84px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.footer p {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--blanco);
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer__links a:hover {
  color: var(--amarillo);
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.footer__social a:hover {
  background: var(--turquesa);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: var(--blanco);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* =========================================================
   RESPONSIVE — NAV MOBILE
   ========================================================= */

@media (max-width: 980px) {
  .navbar__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--blanco);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 28px 26px;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .navbar__links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__actions .btn-primary {
    padding: 10px 18px;
    font-size: 0.82rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .navbar__social {
    display: none;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
