  /* ===== GENERAL ===== */
* { margin: 0; padding: 0; box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent;
}
body { 
    font-family: 'League Spartan', sans-serif; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    background: #f8f9fa; 
}
a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #facc15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1001;
}
header img { height: 40px; }
#toggleBtn {
    display: none;
    background: #facc15;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 18px;
}

/* ===== NAV ===== */
nav { display: flex; }
nav a {
    padding: 20px 15px;
    color: #000000;
    transition: background 0.3s;
}
nav a:hover { background: #dfb306; color: white; }

/* ===== SIDEBAR MÓVIL ===== */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 200px;
    height: 100%;
    background: #2e7e32;
    padding-top: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
.sidebar.active { transform: translateX(0); }
.sidebar a {
    padding: 12px 20px;
    margin: 5px 10px;
    border-radius: 5px;
    color: #fff;
    background: #2e7e32;
    transition: background 0.3s;
}
.sidebar a:hover { background: #0e4709; }

/* ===== CONTENIDO ===== */
.content {
    flex: 1;
    padding: 90px 20px 20px 20px; /* deja espacio para el header fijo */
}

/* Secciones */
section { 
    display: none; 
    animation: fadeIn 0.5s; 
    scroll-margin-top: 70px; /* Ajusta al alto exacto del header */
}
section.active { display: block; }

section { scroll-margin-top: 100px; }/* Ajusta al alto exacto del header */


@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    nav { display: none; } /* Ocultar nav en móvil */
    #toggleBtn { display: block; } /* Mostrar botón menú */
}






        /* ====== SECCIÓN AHORRO (DISEÑO MODERNO) ====== */
#ahorro {
  background: #f7f9fc;
  padding: 10px 10px;
}

#ahorro .ahorro-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}



#ahorro .ahorro-header p {
  font-size: 16px;
  color: #000000;
  line-height: 1.6;
}

/* Contenedor grid */
#ahorro .cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
}

/* Card estilo moderno */
#ahorro .card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

#ahorro .card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Iconos */
#ahorro .card-icon {
  font-size: 2.5rem;
  color: #2e7d32; /* azul moderno */
  margin-bottom: 20px;
}

#ahorro .card-body h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #111827;
}

#ahorro .card-body p {
  font-size: 1rem;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.6;
}

#ahorro .card-body ul {
  padding-left: 20px;
  color: #000000;
  font-size: 0.95rem;
}

#ahorro .card-body ul li {
  margin-bottom: 8px;
  list-style: disc;
}

/* Card destacada */
#ahorro .card.highlight {
  background: linear-gradient(135deg, #2e7e32, #f6e33b);
  color: #fff;
  text-align: center;
  align-items: center;
  justify-content: center;
}

#ahorro .card.highlight h2,
#ahorro .card.highlight p {
  color: #fff;
}

#ahorro .btn-contact {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  border-radius: 10px;
  background: #fff;
  color: #2e7d32;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

#ahorro .btn-contact:hover {
  background: #f1f5f9;
}

/* ====== SECCIÓN PRÉSTAMO (DISEÑO MODERNO) ====== */
/* ====== SECCIÓN PRESTAMO (DISEÑO MODERNO) ====== */
#prestamo {
  background: #f7f9fc;
  padding: 10px 10px;
}

#prestamo .prestamo-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

#prestamo .prestamo-header p {
  font-size: 16px;
  color: #000000;
  line-height: 1.6;
}

/* Contenedor grid */
#prestamo .cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
}

/* Card estilo moderno */
#prestamo .card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

#prestamo .card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Iconos */
#prestamo .card-icon {
  font-size: 2.5rem;
  color: #2e7d32; /* verde moderno */
  margin-bottom: 20px;
}

#prestamo .card-body h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #111827;
}

#prestamo .card-body p {
  font-size: 1rem;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.6;
}

#prestamo .card-body ul {
  padding-left: 20px;
  color: #000000;
  font-size: 0.95rem;
}

#prestamo .card-body ul li {
  margin-bottom: 8px;
  list-style: disc;
}

/* Card destacada */
#prestamo .card.highlight {
  background: linear-gradient(135deg, #2e7e32, #f6e33b);
  color: #fff;
  text-align: center;
  align-items: center;
  justify-content: center;
}

#prestamo .card.highlight h2,
#prestamo .card.highlight p {
  color: #fff;
}

#prestamo .btn-contact {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  border-radius: 10px;
  background: #fff;
  color: #2e7d32;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

#prestamo .btn-contact:hover {
  background: #f1f5f9;
}


   /*NUEVOS*/
/* Estilos exclusivos para la card educativa / en desarrollo */
.card-educativo {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px; /* Ajusta el alto de la card */
  text-align: center;
}

/* Borde luminoso degradado */
.card-educativo::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: 16px;
  background: linear-gradient(45deg, #ffeb3b, #4caf50);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
          mask-composite: exclude;
  pointer-events: none;
}

/* Etiqueta NUEVO */
.card-educativo {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 350px;  /* Ajusta al mismo tamaño de las otras cards */
  height: 560px; /* Ajusta al mismo tamaño de las otras cards */
}

/* Borde luminoso degradado */
.card-educativo::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: 16px;
  background: linear-gradient(45deg, #ffeb3b, #4caf50);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
          mask-composite: exclude;
  pointer-events: none;
}

/* Etiqueta NUEVO */
.card-educativo .new-badge {
  position: absolute;
  top: 10px;
  right: -25px;
  background: #4caf50;
  color: white;
  font-weight: bold;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Contenedor centrado del mensaje */
.coming-soon-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%; /* Asegura que se centre verticalmente */
}

/* Oculta el contenido real si hubiera */
.card-educativo .card-body h2,
.card-educativo .card-body ul,
.card-educativo .card-body p:not(.coming-soon) {
  display: none;
}

/* Estilo del mensaje de "trabajando" */
.card-educativo .card-body .coming-soon {
  display: block;
  font-weight: bold;
  color: #4caf50;
  font-size: 16px;
}



        

        /*CONTENIDO*/
        
        section {
            display: none;
            animation: fadeIn 0.5s;
        }
        
        section.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
        /* Botón de solicitud */
        
        .btn-solicitar {
            display: inline-block;
            background: #2e7e32;
            color: #fff;
            padding: 12px 20px;
            border-radius: 8px;
            text-decoration: none;
            margin-top: 15px;
            font-size: 16px;
            transition: background 0.3s;
        }
        
        .btn-solicitar:hover {
            background: #114113;
        }
        /* Cards */
        
        .cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        
        .card {
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            transition: transform 0.2s;
             margin-top: 10px;
        }
        
        .card img {
            width: 100%;
            height: 150px;
            object-fit: cover;
        }
        
        .card-body {
            padding: 15px;
        }
        
        .card-body h3 {
            font-size: 18px;
            margin-bottom: 10px;
            color: #333;
        }
        
        .card-body p {
            font-size: 14px;
            color: #555;
        }
        
        .card-body {
            display: flex;
            flex-direction: column;
            /* Mantiene el título y texto en columna */
            align-items: flex-start;
            /* Todo alineado a la izquierda por defecto */
        }
        
        .btn-mas-info {
            margin-top: 10px;
            margin-left: auto;
            /* Empuja el botón hacia la derecha */
            padding: 5px 10px;
            font-size: 0.8rem;
            color: #062703;
            background-color: #e6e6e6;
            border-radius: 5px;
            text-decoration: none;
        }
        
        .btn-mas-info:hover {
            color: #fff;
            background-color: #062703;
            transition: 0.5s;
        }

        .card-icon {
    font-size: 40px;
    margin-right: 15px;
}

/*CONFERENCIA*/
.card-conferencia {
  position: relative;
  border-radius: 16px;
  padding: 20px;
  color: #1f2937; /* Texto oscuro para contraste */
  background: linear-gradient(135deg, #ffeb3b, #4caf50); /* Degradado amarillo a verde */
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.3s;
}

.card-conferencia .card-icon {
  text-align: center;
  margin-bottom: 15px;
  color: #1f2937; /* Ícono oscuro para contraste */
}

.card-conferencia .card-body h3 {
  margin-bottom: 10px;
}

.card-conferencia .card-body p {
  margin-bottom: 15px;
}

.card-conferencia .btn-mas-info {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 8px;
  background-color: #1f2937;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.card-conferencia .btn-mas-info:hover {
  background-color: #4caf50;
}

/* ====== SECCIÓN QUIÉNES SOMOS ====== */
/* ===== Container General ===== */
.container {
  max-width: 900px;
  margin: -5px auto 20px; /* 🔹 centrado horizontalmente */
  padding: 20px;
}


  /* espacio superior por header fijo */

/* ===== Textos de Secciones ===== */
.intro-text h2 {
  font-size: 22px;
  background-color: #2e7e32;
  text-align: center;
  border-radius: 15px;
  color: #fff;
}

.intro-text p {
  margin-top: 15px;
  font-size: 16px;
  line-height: 1.6;
  color: #111827;
}

/* ===== Topics (Misión, Visión, Historia, Principios) ===== */
.topics {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.topics h3 {
  color: #225e25;
  margin-bottom: 10px;
}

.topics ul {
  list-style: disc inside;
  margin: 10px 0 0 0;
  padding: 0;
}

.topics ul li {
  margin: 8px 0;
  color: #111827;
}

/* ===== Tables ===== */
.details-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.details-table th, .details-table td {
  border: 1px solid #ddd;
  padding: 12px;
}

.details-table th {
  background: #f3f4f6;
  text-align: left;
  color: #225e25;
}

/* ===== Gallery / Cards ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.gallery div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery div:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.gallery img {
  width: 100%;
  height: 200px; /* 🔹 Ajusta este valor según el alto que quieras */
  object-fit: cover; /* Recorta y ajusta la imagen sin deformarla */
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


.gallery h4 {
  margin: 10px 0 5px 0;
  color: #225e25;
}

.gallery p {
  margin: 0;
  font-size: 14px;
  color: #111827;
}

/* ===== Sección de Botón para unirse (opcional) ===== */
.join-button {
  text-align: center;
  margin-top: 30px;
}

.join-button a {
  background-color: #225e25;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s, transform 0.3s;
}

.join-button a:hover {
  background-color: #1b4f1b;
  transform: scale(1.05);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .details-table th, .details-table td {
    padding: 8px;
  }

  .intro-text h2 {
    font-size: 18px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}






        /*CARDS*/
        /*CARD PRESTAMO*/
        
        .card-prestamo {
          background: linear-gradient(135deg, #298d15, #4caf50);
            background-size: cover;
            color: #fff;
            padding: 30px;
            border-radius: 15px;
            text-align: center;
            max-width: 100%;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
        }
        
        .card-prestamo h2 {
            margin-bottom: 15px;
            color: #fff;
        }
        
        .card-prestamo p {
            margin-bottom: 20px;
        }
        
    
        /* Responsive */
        
        @media (min-width: 768px) {
    .sidebar {
        display: none; /* 👈 oculto siempre en escritorio */
    }
    .content {
        
    }
    header button {
        display: none; /* oculta el botón hamburguesa en escritorio */
    }
}

        /*===FORM===*/
        /* FORMULARIO */
        
        form {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            max-width: 600px;
            margin: auto;
        }
        
        form input,
        form textarea,
        form select {
            width: 100%;
            padding: 12px;
            margin: 10px 0;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 14px;
        }
        
        form button {
            background: #ffcc00;
            color: #2e7e32;
            padding: 12px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
        }
        
        form button:hover {
            background: #f3cb2b;
        }


        /* ====== FOOTER ====== */
        
        footer {
            background: #0c3f0e;
            color: #ddd;
            padding: 50px 20px 20px;
        }
        
        .footer-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: auto;
        }
        
        .footer-col h3 {
            color: #fff;
            margin-bottom: 15px;
            font-size: 18px;
            border-left: 4px solid #f3cb2b;
            padding-left: 10px;
        }
        
        .footer-col p {
            line-height: 1.6;
            font-size: 14px;
        }
        
        .footer-col ul {
            list-style: none;
            padding: 0;
        }
        
        .footer-col ul li {
            margin: 10px 0;
        }
        
        .footer-col ul li a {
            text-decoration: none;
            color: #bbb;
            transition: color 0.3s;
        }
        
        .footer-col ul li a:hover {
            color: #f3cb2b;
        }
        
        .social-links a {
            display: inline-block;
            margin-right: 10px;
            font-size: 18px;
            color: #bbb;
            transition: color 0.3s, transform 0.3s;
        }
        
        .social-links a:hover {
            color: #f3cb2b;
            transform: scale(1.1);
        }
        
        .newsletter input {
            width: 70%;
            padding: 10px;
            border: none;
            border-radius: 5px 0 0 5px;
            outline: none;
        }
        
        .newsletter button {
            padding: 10px 20px;
            border: none;
            border-radius: 0 5px 5px 0;
            background: #f1c40f;
            color: #111;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .newsletter button:hover {
            background: #d4ac0d;
        }
        
        .footer-bottom {
            text-align: center;
            border-top: 1px solid #333;
            padding-top: 15px;
            margin-top: 30px;
            font-size: 14px;
            color: #aaa;
        }

        .contact-info a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 16px;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #facc15;
}

.contact-info i {
    font-size: 18px;
}

/*Marca de Agua*/
.amate-badge {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    background: rgba(17,17,17,0.85);
    color: #fff;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-size: 13px;
    text-decoration: none;
    transition: transform .22s ease, background .22s ease;
    backdrop-filter: blur(6px);
  }
  .amate-badge:hover {
    transform: translateY(-4px);
    background: linear-gradient(90deg,#0ea5e9,#6366f1);
    color: #fff;
  }
  .amate-badge img { width:20px; height:20px; display:block; }
  .amate-badge .txt { font-weight:600; letter-spacing:0.2px; }
  .amate-badge .by { font-weight:400; font-size:11px; opacity:0.9; margin-right:6px; }