/* ===================================================================
  STYLE.CSS  |  Tema: Neumorfismo + Gradientes Dinámicos Pastel
  Tipografías globales importadas desde HTML (Oswald & Nunito)
=================================================================== */

/* ===== VARIABLES GLOBALES ===== */
:root {
  /* Paleta pastel */
  --clr-primary: #89c2d9;
  --clr-secondary: #f5c6ec;
  --clr-accent: #ffd59e;
  --clr-bg: #f2f6fb;
  --clr-light: #ffffff;
  --clr-dark: #222222;
  --clr-muted: #666666;

  /* Sombras neumórficas */
  --shadow-soft: 8px 8px 16px rgba(0, 0, 0, 0.06),
                 -8px -8px 16px rgba(255, 255, 255, 0.7);
  --shadow-inset: inset 4px 4px 8px rgba(0, 0, 0, 0.05),
                  inset -4px -4px 8px rgba(255, 255, 255, 0.8);

  /* Gradientes */
  --grad-primary: linear-gradient(135deg, #dff1ff, #ffe5f6);
  --grad-secondary: linear-gradient(135deg, #fff9ef, #e9fff6);
  --grad-hero: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));

  /* Tipografía */
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Transiciones */
  --transition-base: all 0.4s ease;
}

/* ===== RESET ELEMENTAL EXTRA ===== */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-dark);
  line-height: 1.6;
}

/* ===================================================================
  UTILIDADES
=================================================================== */
.text-center { text-align: center; }
.parallax-bg { background-attachment: fixed; }
.section-gradient { background: var(--grad-primary); }
.section-gradient-alt { background: var(--grad-secondary); }

/* Espaciados universales */
.section { padding: 4rem 1rem; }

/* ===================================================================
  BOTONES GLOBALES
=================================================================== */
.btn,
button,
input[type='submit'] {
  font-family: var(--font-head);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  border: none;
  color: var(--clr-light);
  background: var(--clr-primary);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: var(--transition-base);
}
.btn:hover,
button:hover,
input[type='submit']:hover {
  background: var(--clr-secondary);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.btn:active,
button:active,
input[type='submit']:active {
  box-shadow: var(--shadow-inset);
  transform: translateY(0);
}

/* ===================================================================
  NAVBAR
=================================================================== */
.navbar {
  background: var(--clr-light);
  box-shadow: var(--shadow-soft);
}
.navbar-item,
.navbar-link { font-family: var(--font-head); }
.navbar-burger span { background: var(--clr-dark); }

/* ===================================================================
  HERO
=================================================================== */
#hero {
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  color: var(--clr-light);
}
#hero .title,
#hero .subtitle { text-shadow: 1px 1px 4px rgba(0,0,0,0.7); }
#hero .button { background: var(--clr-accent); }

/* ===================================================================
  TARJETAS / CARD COMPONENT
=================================================================== */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--clr-light);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
}
.card:hover {
  transform: translateY(-6px);
}
.card-content { padding: 1.5rem; }

.card-image,
.image-container {
  width: 100%;
  height: 240px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img,
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

/* ===================================================================
  ACORDEÓN FAQ
=================================================================== */
.message {
  box-shadow: var(--shadow-soft);
  border: none;
}
.message-header {
  cursor: pointer;
  background: var(--clr-primary);
  color: var(--clr-light);
  font-family: var(--font-head);
}
.message-body {
  background: var(--clr-light);
  color: var(--clr-dark);
  transition: var(--transition-base);
}

/* ===================================================================
  PARTNERS (LOGOS)
=================================================================== */
#partners .card-image {
  height: 120px;
}
#partners img { max-height: 100%; }

/* ===================================================================
  FORMULARIO CONTACTO
=================================================================== */
#contact form .input,
#contact form .textarea {
  border-radius: 12px;
  background: var(--clr-light);
  box-shadow: var(--shadow-inset);
  border: none;
  transition: var(--transition-base);
}
#contact form .input:focus,
#contact form .textarea:focus {
  box-shadow: 0 0 0 3px var(--clr-primary);
}

/* ===================================================================
  FOOTER
=================================================================== */
.footer {
  background: var(--grad-secondary);
  color: var(--clr-dark);
  padding-bottom: 2rem;
}
.footer a {
  color: var(--clr-dark);
  position: relative;
  transition: var(--transition-base);
}
.footer a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -2px;
  background: var(--clr-primary);
  transition: var(--transition-base);
}
.footer a:hover::after { width: 100%; }

/* Enlaces “Leer más” */
.read-more {
  color: var(--clr-primary);
  font-weight: 600;
}
.read-more:hover { text-decoration: underline; }

/* Iconos sociales (texto enriquecido) */
.footer ul li::before {
  content: '• ';
  color: var(--clr-accent);
}

/* ===================================================================
  ANIMACIONES MORPHING & GRADIENTES
=================================================================== */
@keyframes blob {
  0%,100% { border-radius: 42% 58% 63% 37% / 49% 46% 54% 51%; }
  50% { border-radius: 62% 38% 28% 72% / 70% 41% 59% 30%; }
}

.morph {
  animation: blob 12s infinite alternate;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.dynamic-gradient {
  background: linear-gradient(270deg, #dff1ff, #ffe5f6, #fff9ef, #e9fff6);
  background-size: 800% 800%;
  animation: gradientMove 20s ease infinite;
}

/* ===================================================================
  PÁGINAS SECUNDARIAS
=================================================================== */
.legal-page {
  padding-top: 100px;   /* para evitar solaparse con el header fijo */
  padding-bottom: 4rem;
}

/* SUCCESS PAGE */
.success-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.success-wrapper h1 { font-family: var(--font-head); }

/* ===================================================================
  COOKIES POPUP
=================================================================== */
#cookiePopup {
  font-size: 0.9rem;
}
#cookiePopup .button {
  background: var(--clr-accent);
  color: var(--clr-dark);
}

/* ===================================================================
  RESPONSIVE AJUSTES
=================================================================== */
@media (max-width: 768px) {
  .section { padding: 3rem 1rem; }
  .navbar-menu { background: var(--clr-light); }
}