/* =============================
   ✅ FUENTE Poppins Medium (Navbar items)
   Archivo: public/assets/fonts/Poppins-Medium.ttf
============================= */
@font-face {
  font-family: 'PoppinsNav';
  src: url('../fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* =============================
   ✅ FUENTE Inter (para textos específicos)
   Archivo: public/assets/fonts/Inter-VariableFont_slnt,wght_1.ttf
============================= */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_slnt,wght_1.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* =============================
   DESPLAZAMIENTO SUAVE
============================= */
html {
  scroll-behavior: smooth;
}


/* =============================
   RESET Y ESTILOS BASE
   (Se usan en todas las páginas)
============================= */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* FUENTE ACTUAL: Jost (cambiar según necesites) */
  font-family: 'Jost', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ======================================================
   =================== NAVBAR.HTML ======================
   Todo lo relacionado con el header / navegación
====================================================== */

/* ----- CONTENEDOR GENERAL DEL NAVBAR ----- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ----- LOGO ----- */

.nav-logo {
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
  font-family: 'Jost', sans-serif;

  /* ✅ para alinear bien el logo imagen */
  display: flex;
  align-items: center;
}

/* ✅ NUEVO: imagen del logo en navbar (reemplaza "SER AUDAZ") */
.nav-logo-img{
  display: block;
  height: 70px;          /* mantiene proporción similar al texto */
  width: auto;
  object-fit: contain;
}

/* (Se deja por compatibilidad si en otras páginas aún existe texto) */
.logo-text {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ----- MENÚ DE NAVEGACIÓN ----- */

.nav-menu {
  display: flex;
  list-style: none;
  gap: 5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: 'Jost', sans-serif;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

/* ✅ Navbar items en Poppins Medium */
.nav-link{
  font-family: 'PoppinsNav', 'Poppins', 'Jost', sans-serif;
  font-weight: 500; /* Poppins Medium */
}


.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ✅ NUEVO: estado activo (línea queda fija indicando sección actual)
   Opción 1: usando .is-active en el <li>
*/
.nav-item.is-active .nav-link::after{
  width: 100%;
}

/* Opción 2 (por si prefieres): usando .active en el <a> */
.nav-link.active::after{
  width: 100%;
}

/* ----- BOTÓN CONTACTO ----- */
/* ELIMINÉ TODOS LOS ESTILOS ESPECIALES DE .nav-contact */
/* Así "Contacto" será tratado igual que los otros enlaces */

/* ----- MENÚ HAMBURGUESA ----- */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: currentColor;
  transition: 0.3s;
}

/* ----- VARIANTES DE NAVBAR SEGÚN PÁGINA ----- */
/* Cuando el body tiene clase index o comunidad */
.index .navbar, .comunidad .navbar {
  background-color: #ffffff;
}

/* index.html y comunidad.html */
.index .logo-text, .comunidad .logo-text {
  color: #000000;
}

/* ✅ Asegura que el logo PNG se vea bien sobre fondo blanco (si tu PNG es oscuro no pasa nada) */
.index .nav-logo-img, .comunidad .nav-logo-img{
  filter: none;
}

/* AQUÍ ESTÁ LA CLAVE: NO EXCLUIR A CONTACTO */
.index .nav-link, .comunidad .nav-link {
  color: #000000;
}

.index .nav-link:hover, .comunidad .nav-link:hover {
  color: #000; /* Cambié a verde para mejor contraste */
}

/* nosotros.html y lineas_accion.html */
.nosotros .navbar, .lineas_accion .navbar {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 100), transparent);
}

.nosotros .logo-text, .lineas_accion .logo-text {
  color: #ffffff;
}

/* ✅ Si el logo es oscuro y el navbar es oscuro, lo invertimos para mantener look blanco */
.nosotros .nav-logo-img, .lineas_accion .nav-logo-img{
  filter: brightness(0) invert(1);
}

/* AQUÍ TAMBIÉN: INCLUIR TODOS LOS ENLACES */
.nosotros .nav-link, .lineas_accion .nav-link {
  color: #ffffff;
}

.nosotros .nav-link:hover, .lineas_accion .nav-link:hover {
  color: #fff; /* Verde claro */
}

/* ======================================================
   =================== FOOTER ======================
   Rediseñado para coincidir con el mockup
====================================================== */

/* Importar fuente Inter para todo el footer */
@font-face {
  font-family: 'InterFooter';
  src: url('../fonts/Inter-VariableFont_slnt,wght_1.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.footer {
  background-color: #0d2137;
  color: #ffffff;
  padding: 60px 40px 30px;
  font-family: 'InterFooter', sans-serif;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
    /* Separación horizontal entre columnas */
  column-gap: 60px;
  /* Separación vertical entre filas */
  row-gap: 40px;
}

/* Columnas */
.footer-column {
  flex: 1;
  min-width: 250px;
}

/* Primera columna - Logo y redes sociales */
.footer-column:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo */
.footer-logo {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.footer-logo-img {
  width: 180px;
  height: auto;
  filter: brightness(0) invert(1); /* Hace el logo blanco */
}

/* Redes sociales - Centradas debajo del logo */
.footer-column:first-child .social-icons {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-top: 20px;
}

.footer-column:first-child .social-link img {
  width: 40px;
  height: auto;
  transition: opacity 0.2s ease;
}

.footer-column:first-child .social-link:hover img {
  opacity: 0.8;
}

/* Títulos de sección */
.footer-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 25px;
  color: #ffffff;
  text-transform: uppercase;
}

/* Navegación - Columna 2 */
.footer-nav {
  list-style: none;
  padding: 0;
  margin-bottom: 35px;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #ffffff;
}

/* Teléfono - Columna 2 */
.footer-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.phone-icon {
  width: 35px;
  height: auto;
}

.phone-number {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

/* Contacto - Columna 3 */
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 35px;
  height: auto;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-text {
  font-size: 14px;
  line-height: 1.5;
  color: #cccccc;
}

/* Footer bottom - Copyright */
.footer-bottom {
  width: 100%;
  border-top: 1px solid #54949a;
  padding-top: 30px;
  text-align: center;
}

.copyright {
  font-size: 14px;
  color: #999999;
}
/* =============================
   CONTACTO (sección en index)
   Estilo como mockup (sin filtro oscuro)
   ============================= */

.contact-section {
  background: #d9d5c0;
  padding: 70px 20px; /* Reducido de 90px */
  font-family: 'Jost', sans-serif;
}

.contact-wrap {
  max-width: 1400px;
  margin: 0 auto;

  /* Fondo del bloque (imagen del mockup) */
  background-image: url('../img/PORTADA%20SER.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-radius: 60px;
  overflow: hidden;
  position: relative;
}

/* ✅ QUITAMOS el oscurecimiento */
.contact-overlay {
  background: transparent;
  padding: 50px 70px; /* Reducido de 70px 90px */
}

/* Layout general */
.contact-grid {
  display: grid;
  grid-template-columns: 520px 1fr; /* izquierda más controlada, derecha fluida */
  gap: 60px; /* Reducido de 80px */
  align-items: center;
}

/* ---------- Tarjeta del formulario (glass) ---------- */
.contact-card {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 34px;
  padding: 32px 28px; /* Reducido de 38px 34px */

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Form */
.contact-form {
  font-family: 'Jost', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 16px; /* Reducido de 18px */
}

/* Cada campo: usamos posición relativa para meter el label dentro */
.field {
  position: relative;
}

/* ✅ Labels DENTRO del input */
.field label {
  position: absolute;
  left: 22px;
  top: 14px;

  font-size: 18px; /* Reducido de 20px */
  font-weight: 400;
  color: rgba(150, 150, 150, 0.85);

  margin: 0;
  pointer-events: none; /* para que puedas hacer click sin problema */
}

/* Inputs */
.field input, .field textarea {
  width: 100%;
  border: none;
  outline: none;

  background: #ffffff;
  border-radius: 16px; /* Reducido de 18px */

  /* ✅ dejamos espacio arriba para que el texto escrito NO choque con el label */
  padding: 36px 20px 14px 20px; /* Reducido de 40px 22px 16px 22px */

  font-family: 'Jost', sans-serif;
  font-size: 16px;
  color: #111;

  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

/* textarea más alto como en mockup */
.field-textarea textarea {
  min-height: 140px; /* Reducido de 150px */
  resize: none;
}

/* Botón (píldora con borde como en la imagen) */
.contact-btn {
  margin-top: 10px; /* Reducido de 12px */
  align-self: center;

  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;

  border: 1px solid rgba(255,255,255,0.70);
  border-radius: 999px;

  padding: 14px 42px; /* Reducido de 16px 46px */
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 600;

  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

.contact-btn:active {
  transform: translateY(-1px);
}

/* ---------- Columna derecha ---------- */
.contact-info {
  font-family: 'Jost', sans-serif;
  color: #ffffff;
  max-width: auto;
}

.contact-title {
  margin: 0 0 16px 0; /* Reducido de 18px */
  line-height: 1.0;
}

.contact-title .t1 {
  display: block;
  font-size: 30px; /* Reducido de 34px */
  font-weight: 500;
  font-family: 'Jost', sans-serif;
}

.contact-title .t2 {
  display: block;
  font-size: 52px; /* Reducido de 58px */
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
}

.contact-desc {
  font-family: 'Inter', sans-serif; /* ✅ CAMBIADO A INTER */
  font-size: 17px; /* Reducido de 18px */
  line-height: 1.7; /* Reducido de 1.75 */
  margin: 0 0 16px 0; /* Reducido de 18px */
  max-width: 620px;
  font-weight: 400;
}

/* Bloque "Escríbenos" + teléfono */
.contact-call {
  margin-top: 25px; /* Reducido de 30px */
}

.call-label {
  font-size: 18px; /* Reducido de 20px */
  font-weight: 700;
  margin-bottom: 10px; /* Reducido de 12px */
  font-family: 'Jost', sans-serif;
}

.call-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Estilos para la imagen dentro del ícono */
.call-icon-img {
  width: 32px; /* Reducido de 35px */
  height: auto;
  object-fit: contain;
  display: block;
}

.call-number {
  font-size: 21px; /* Reducido de 23px */
  font-family: 'Jost', sans-serif;
}

/* =============================
   TRANSICIONES BASE SUAVES
============================= */
.navbar {
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nav-link {
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
}

/* Logo con efecto sutil */
.nav-logo-img {
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}

/* Botón hamburguesa animado */
.hamburger .bar {
  transition: all 0.3s ease;
}

.hamburger:hover .bar {
  transform: scaleX(1.1);
}

/* =============================
   ANIMACIONES AL SCROLL
   (Se activan cuando elementos entran en viewport)
============================= */

/* Clase para elementos que se animarán */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Cuando elemento está en viewport */
.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Retrasos para animaciones escalonadas */
.scroll-reveal.delay-1 { transition-delay: 0.1s; }
.scroll-reveal.delay-2 { transition-delay: 0.2s; }
.scroll-reveal.delay-3 { transition-delay: 0.3s; }
.scroll-reveal.delay-4 { transition-delay: 0.4s; }

/* =============================
   ZOOM ELEGANTE PARA IMÁGENES Y CARDS
============================= */

/* Efecto zoom para imágenes en general */
img {
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Contenedor para imágenes con zoom controlado */
.image-zoom-container {
  overflow: hidden;
  border-radius: inherit;
}

.image-zoom-container img {
  transform: scale(1);
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.image-zoom-container:hover img {
  transform: scale(1.08);
}

/* Cards con efecto hover elegante */
.card-hover {
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* =============================
   BOTONES CON ANIMACIONES ELEGANTES
============================= */

/* Botón de contacto principal */
.contact-btn {
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.contact-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
}

.contact-btn:hover::after {
  width: 300px;
  height: 300px;
}

.contact-btn:active {
  transform: translateY(-1px);
}

/* Botones sociales en footer */
.social-link img {
  transition: all 0.3s ease;
  filter: grayscale(0.3);
}

.social-link:hover img {
  transform: scale(1.15) rotate(5deg);
  filter: grayscale(0);
}

/* =============================
   ANIMACIONES PARA FORMULARIO
============================= */

.field {
  transition: all 0.3s ease;
}

.field input,
.field textarea {
  transition: all 0.3s ease, box-shadow 0.3s ease;
}

.field input:focus,
.field textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Animación sutil para labels del formulario */
.field label {
  transition: all 0.3s ease;
}

.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-5px) scale(0.9);
  opacity: 0.7;
}

/* =============================
   ANIMACIONES PARA FOOTER
============================= */

.footer-nav a {
  position: relative;
  transition: all 0.3s ease;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.footer-nav a:hover {
  padding-left: 5px;
}

.footer-nav a:hover::after {
  width: 100%;
}

/* Iconos de contacto en footer */
.contact-item {
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-icon {
  transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

/* =============================
   ANIMACIONES DE ENTRADA PARA SECCIONES
============================= */

/* Sección contacto entrada suave */
.contact-section {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================
   ANIMACIONES DE CARGA INICIAL
============================= */

/* Navbar aparece desde arriba */
.navbar {
  animation: slideDown 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =============================
   EFECTOS DE HOVER PARA CARDS DE PROMESA
   (si existen en tu HTML)
============================= */

.promise-card {
  transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.promise-card:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* =============================
   ANIMACIÓN PARA SCROLL INDICATOR
   (opcional, para indicar que hay más contenido)
============================= */

.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* =============================
   MEDIA QUERIES (solo para animaciones)
============================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================
   Mensajes del formulario (estilo completo)
   Paleta: #647a46, #143254, #fff, #000
============================= */

.form-message {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin: 18px 0;
    border-radius: 12px;
    font-weight: 600;
    animation: fadeInUp 320ms ease both;
    box-shadow: 0 8px 22px rgba(4,12,20,0.08);
    background: #ffffff;                 /* Blanco para destacar sobre fondo naranja */
    color: #0b1220;                      /* texto oscuro para buen contraste */
    border-left: 6px solid rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
}

/* Icono circular a la izquierda (usa contenido unicode) */
.form-message::before {
    content: "";                         /* se sobreescribe por variantes (success/error/info) */
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Contenido interno (por si quieres separar título/texto) */
.form-message .msg-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.25;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-size: 14px;
    color: #0b1220;
}

/* Título opcional pequeño dentro del mensaje */
.form-message .msg-title {
    font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-size: 15px;
    color: #143254;
    margin: 0;
}

/* Variantes: éxito, info/neutral y error */
.form-message.success {
    border-left-color: #647a46;
    background: linear-gradient(180deg, rgba(100,122,70,0.04), #ffffff);
    color: #0b1220;
}
.form-message.success::before {
    content: "✔";
    background: #647a46;
}

.form-message.info {
    border-left-color: #143254;
    background: linear-gradient(180deg, rgba(20,50,84,0.04), #ffffff);
    color: #0b1220;
}
.form-message.info::before {
    content: "i";
    background: #143254;
    font-weight: 800;
    text-transform: uppercase;
}

.form-message.error {
    border-left-color: #c07022;
    background: linear-gradient(180deg, rgba(192,112,34,0.04), #ffffff);
    color: #0b1220;
}
.form-message.error::before {
    content: "!";
    background: #c07022;
}

/* Hacer que el texto principal resalte si quieres una línea bold */
.form-message strong {
    color: #000;
    font-weight: 700;
}

/* =============================
   Spinner para botón (ajustado a paleta)
============================= */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 50%;
    border-top-color: #143254; /* color principal oscuro */
    animation: spin 1s linear infinite;
}

/* Si el botón tiene fondo oscuro, usa spinner blanco:
   .btn-dark .spinner { border:2px solid rgba(255,255,255,0.18); border-top-color:#fff; } */

/* =============================
   Animaciones
============================= */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pequeña mejora responsive */
@media (max-width: 480px) {
  .form-message { padding: 12px; border-radius: 10px; gap: 10px; }
  .form-message::before { width: 38px; height: 38px; font-size: 16px; }
  .form-message .msg-title { font-size: 14px; }
  .form-message .msg-body { font-size: 13px; }
}
