:root {
    /* Colores modo claro */
    --color-1: #F3F4F6;
    --color-2: #E5E7EB;
    --color-3: #D1D5DB;
    --color-4: #9CA3AF;
    --color-5: #6B7280;
    --color-6: #4B5563;
    --color-7: #374151;
    --color-8: #1F2937;
    --color-9: #111827;
    --color-10: #0F172A;
    --color-11: #1E293B;
    --color-12: #334155;
    --color-13: #475569;
    --color-principal: #70909B;
    --color-principal-dark: #5a7983;
    --color-principal-light: #8fa9b2;
    
    /* Nueva paleta para modo oscuro mejorada */
    --dm-color-1: #0d1117;        /* Fondo más oscuro */
    --dm-color-2: #161b22;        /* Elementos secundarios */
    --dm-color-3: #21262d;        /* Bordes y separadores */
    --dm-color-4: #30363d;        /* Elementos interactivos */
    --dm-color-5: #8b949e;        /* Texto secundario */
    --dm-color-6: #c9d1d9;        /* Texto principal */
    --dm-color-7: #ecf2f8;        /* Texto destacado */
    --dm-color-8: #58a6ff;        /* Enlaces y acentos */
    --dm-color-9: #1f6feb;        /* Elementos interactivos */
    --dm-color-10: #0c2d6b;       /* Fondos destacados */
    --dm-color-principal: #3d7d8f;  /* Color principal ajustado */
    --dm-color-principal-dark: #2c5a67;
    --dm-color-principal-light: #6ba4b5;
}

/* Modo oscuro - ajustes de color */
body.dark-mode {
    --color-1: var(--dm-color-1);
    --color-2: var(--dm-color-2);
    --color-3: var(--dm-color-3);
    --color-4: var(--dm-color-4);
    --color-5: var(--dm-color-5);
    --color-6: var(--dm-color-6);
    --color-7: var(--dm-color-7);
    --color-8: var(--dm-color-8);
    --color-9: var(--dm-color-9);
    --color-10: var(--dm-color-10);
    --color-11: var(--dm-color-6);
    --color-12: var(--dm-color-5);
    --color-13: var(--dm-color-4);
    --color-principal: var(--dm-color-principal);
    --color-principal-dark: var(--dm-color-principal-dark);
    --color-principal-light: var(--dm-color-principal-light);
    
    background-color: var(--color-1);
    color: var(--color-6);
}

/* === Dark Mode Overrides === */
body.dark-mode .modal__overlay {
    /* un poco más opaco en dark mode */
    background: rgba(0, 0, 0, 0.6);
  }
  
  body.dark-mode .modal__content {
    /* fondo glass oscuro */
    background: rgba(33, 38, 45, 0.8); /* rgb de --color-12 */
    border-color: var(--color-3);
    color: var(--color-texto);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
  }
  
  body.dark-mode .modal__close {
    background: var(--color-principal);
    color: #fff;
  }
  
  body.dark-mode .modal__close:hover {
    background: var(--color-principal-dark);
  }
  
  body.dark-mode .modal__content .login-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-3);
    color: var(--color-texto);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  }
  
  body.dark-mode .modal__content .login-form input:hover {
    background: rgba(255, 255, 255, 0.15);
  }
  
  body.dark-mode .modal__content .login-form input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-principal);
    box-shadow: 0 0 0 3px var(--color-principal-light);
  }
  
  body.dark-mode .modal__content .login-form input::placeholder {
    color: var(--color-13);
  }
  
  body.dark-mode .modal__content .login-form label {
    color: var(--color-11);
    transition: color 0.3s;
  }
  
  body.dark-mode
    .modal__content
    .login-form input:focus + label,
  body.dark-mode
    .modal__content
    .login-form input:not(:placeholder-shown) + label {
    color: var(--color-principal);
  }
  
  body.dark-mode .modal__content .btn--primary {
    background: var(--color-principal);
    box-shadow: 0 8px 20px rgba(49, 109, 128, 0.4);
  }
  
  body.dark-mode .modal__content .btn--primary:hover {
    background: var(--color-principal-dark);
    box-shadow: 0 12px 28px rgba(43, 90, 103, 0.5);
  }
  
  body.dark-mode .modal__content .login-link {
    color: var(--color-5);
  }
  
  body.dark-mode .modal__content .login-link::after {
    background: var(--color-principal);
  }
  
  body.dark-mode .modal__content .login-link:hover {
    color: var(--color-principal);
  }
  

/* Ajustes específicos para elementos en modo oscuro */
body.dark-mode .header::after {
    background: transparent;
}

body.dark-mode .custom-shape-divider-top-1743605605 .shape-fill {
    fill: var(--color-2);
}

body.dark-mode .hero {
    background: url('./images/luna.jpg'), var(--color-1);
    background-repeat: no-repeat;
    background-position: 95% top;
    background-size: 250px;
}

body.dark-mode .hero__content {
    max-width: 100%;
    position: relative;
    z-index: 2;
}

body.dark-mode .hero__title {
    color: var(--color-principal-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-top: -50px;
}

body.dark-mode .hero__subtitle {
    color: var(--color-5);
}

body.dark-mode .btn--ghost {
    border-color: var(--color-principal-light);
    color: var(--color-principal-light);
}

body.dark-mode .btn--ghost:hover {
    background-color: var(--color-principal-light);
    color: var(--color-1);
}

body.dark-mode .footer {
    background-color: var(--color-principal-dark);
}

body.dark-mode .footer__content {
    background-color: transparent;
}



body.dark-mode .footer__copy {
    color: var(--dm-color-6);
}

/* Botón de modo oscuro en modo oscuro */
body.dark-mode .btn--dark-mode {
    background-color: var(--color-principal);
}

body.dark-mode .btn--dark-mode:hover {
    background-color: var(--color-principal-light);
}

/* Ajustes de contraste para mejor legibilidad */
body.dark-mode .hero__content,
body.dark-mode .footer__content {
    border-radius: 8px;
    padding: 1rem;
}

/* Corrección para las formas decorativas */
body.dark-mode .custom-shape-divider-bottom-1743605776 .shape-fill {
    fill: var(--color-principal-dark);
}


/* Mantén el resto de tu CSS existente */

@font-face { 
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-Regular.woff2') format('woff2'),
         url('./fonts/Montserrat-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* TIPOGRAFÍA GLOBAL */
body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--color-1);
    color: var(--color-11);
    line-height: 1.6;
}

/* ESTILOS DE ENCABEZADO */
.header {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: transparent;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 99;
}

.custom-shape-divider-top-1743605605 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top-1743605605 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 230px;
}

.custom-shape-divider-top-1743605605 .shape-fill {
    fill: #fff;
}

.header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 100;
}

.header__logo img {
    width: 200px;
    height: auto;
    margin-top: -10px;
    display: block;
    transition: transform 0.3s ease;
}

.header__logo img:hover {
    transform: scale(1.05);
}



/* Acciones en el header */
.header__actions {
    display: flex;
    gap: 1.5rem;
    z-index: 100;
    margin-top: -10px;
    margin-right: 100px;
}

.header__nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.header__nav {
    display: flex;
    align-items: left;
    margin-left: -700px;
    justify-content: center;
    gap: 2rem;
    z-index: 100;
}

.header__nav-link {
    text-decoration: none;
    color: var(--color-11);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    font-family: 'Balsamiq Sans', cursive;
    margin-left:  300px ;
}

.header__nav-link:hover {
    color: var(--color-principal);
    transform: translateY(-2px);
}

/* Botones genéricos */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
}

/* Botón primario */
.btn--primary {
    background-color: var(--color-principal);
    color: #fff;
    box-shadow: 0 4px 6px rgba(112, 144, 155, 0.3);
    border: 2px solid var(--color-principal);
    font-size: 1.3rem;
}

.btn--primary:hover {
    background-color: var(--color-principal-dark);
    border-color: var(--color-principal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(112, 144, 155, 0.4);
}

/* Botón ghost */
.btn--ghost {
    border: 2px solid var(--color-principal);
    background-color: transparent;
    color: var(--color-principal);
}

.btn--ghost:hover {
    background-color: var(--color-principal);
    color: #fff;
    transform: translateY(-2px);
}

/* SECCIÓN HERO */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    background: url('./images/sol.gif'),var(--color-1);
    background-repeat: no-repeat;
    background-position: 95% 5%;
    background-size: 250px;
    min-height: 85vh;
    overflow: hidden;
    padding: 2rem;
}

.hero__content {
    max-width: 60%;
    position: relative;
    z-index: 2;
    margin-top: -50px;
}

.hero__title {
    font-family: 'Balsamiq Sans', cursive;
    font-size: 3.2rem;
    color: var(--color-principal);
    margin-bottom: 1rem;
    text-align: center;
    margin-top: -150px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

.hero__title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--color-principal);
    margin: 1rem auto;
    border-radius: 2px;
}

.hero__subtitle {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--color-7);
    margin-bottom: 2rem;
    font-weight: 400;
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: -15px;
}

.custom-shape-divider-bottom-1743605776 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1743605776 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 198px;
}

.custom-shape-divider-bottom-1743605776 .shape-fill {
    fill: var(--color-principal);
}

/* FOOTER */
.footer {
    background-color: var(--color-principal);
    color: #fff;
    text-align: center;
    padding: 3rem 0 2rem;
    position: relative;
}



.footer__social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer__social-link {
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin: 0 1rem;
    position: relative;
}



.footer__social-link img {
    width: 45px;
    height: auto;
    margin-right: 1px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.footer__social-link:hover img {
    transform: scale(1.15);
}

.footer__copy {
    font-size: 1.3rem;
    margin-bottom: 0;
    opacity: 0.9;
    color: var(--color-1);
    max-width: 800px;
    line-height: 1.7;
    margin: auto;
}

/* ===== Modal Mejorado ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    justify-content: center;
    align-items: center;
  }
  
  .modal.show {
    display: flex;
  }
  
  /* Fondo difuminado con transición suave */
  .modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .modal.show .modal__overlay {
    opacity: 1;
  }
  
  /* Contenedor con efecto glass */
  .modal__content {
    position: relative;
    background: rgba(255, 255, 255, 0.535);
    border: 1px solid var(--color-principal-light);
    backdrop-filter: blur(12px);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    height: 500px;
    z-index: 1001;
    font-family: 'Balsamiq Sans', cursive;
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.4s ease;
  }
  
  .modal.show .modal__content {
    transform: scale(1);
    opacity: 1;
  }
  
  /* Botón cerrar elegante */
  .modal__close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 2.4rem;
    height: 2.4rem;
    background: var(--color-principal);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
  }
  
  .modal__close:hover {
    background: var(--color-principal-dark);
    transform: scale(1.1);
  }
  
  /* Ajustes al login-card dentro del modal */
  .modal__content .login-card {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
  
  /* Inputs y botones dentro del modal */
  .modal__content .login-form input {
    background: rgb(255, 255, 255);
    border: 1px solid var(--color-3);
    transition: background 0.3s, border-color 0.3s;
  }
  
  .modal__content .login-form input:focus {
    background: rgba(255,255,255,0.35);
    border-color: var(--color-principal);
  }
  
  .modal__content .btn--primary {
    background: var(--color-principal);
    box-shadow: 0 8px 20px rgba(112, 144, 155, 0.4);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  }
  
  .modal__content .btn--primary:hover {
    background: var(--color-principal-dark);
    box-shadow: 0 12px 28px rgba(90, 121, 131, 0.5);
    transform: translateY(-2px);
  }

  .modal__content .login-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
  }
  
  .modal__content .login-form label {
    display: block;
    margin: 1.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-11);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
  }
  
  /* Input base */
  .modal__content .login-form input {
    width: 100%;
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    color: var(--color-texto);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
    transition: 
      background 0.3s, 
      box-shadow 0.3s, 
      transform 0.2s;
  }
  
  /* Placeholder más visible */
  .modal__content .login-form input::placeholder {
    color: var(--color-3);
    opacity: 1;
  }
  
  /* Hover sutil */
  .modal__content .login-form input:hover {
    background: rgba(255,255,255,0.3);
  }
  
  /* Focus destacado */
  .modal__content .login-form input:focus {
    background: rgba(255,255,255,0.4);
    box-shadow: 0 0 0 3px var(--color-principal-light);
    outline: none;
    transform: translateY(-1px);
  }
  
  /* Cambio de color en label cuando el input está enfocado */
  .modal__content .login-form input:focus + label,
  .modal__content .login-form input:not(:placeholder-shown) + label {
    color: var(--color-principal);
  }
  
  /* ===== Estilos para los enlaces de login ===== */
.modal__content .login-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.8rem;
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
  }
  
  .modal__content .login-link {
    position: relative;
    color: var(--color-5);
    text-decoration: none;
    padding: 0.2rem 0.4rem;
    transition: color 0.3s;
  }
  
  /* Línea animada al pasar el ratón */
  .modal__content .login-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-principal);
    transition: width 0.3s ease;
  }
  
  .modal__content .login-link:hover {
    color: var(--color-principal);
  }
  
  .modal__content .login-link:hover::after {
    width: 100%;
  }
  

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

/* TABLET: 768px - 1024px */
@media (max-width: 1024px) {
 
    .header {
        height: 220px;
        padding: 0 1.5rem;
    }
    
    .header__actions {
        margin-right: 30px;
        margin-top: -40px;
        gap: 1rem;
    }
    
    .btn--dark-mode {
        width: 40px;
        height: 40px;
    }
    
    .dark-mode-icon i {
        font-size: 1rem;
    }
   
    .custom-shape-divider-top-1743605605 svg {
        height: 220px;
    }
    
    .header__logo img {
        width: 180px;
    }
    

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .hero__content {
        max-width: 70%;
    }
    
    .hero__title {
        font-size: 2.8rem;
        margin-top: -120px;
    }
    
    .hero__subtitle {
        font-size: 1.3rem;
    }
    
    .footer__social-link img {
        width: 40px;
    }
}

/* MOVIL GRANDE: 576px - 768px */
@media (max-width: 768px) {
    .header {
        height: 180px;
        padding: 0 1.25rem;
    }
    
    .custom-shape-divider-top-1743605605 svg,
    .custom-shape-divider-bottom-1743605776 svg {
        height: 180px;
    }
    
    .header__logo img {
        width: 150px;
        margin-top: 0;
    }
    
    .header__actions {
        margin-right: 0;
        margin-top: -30px;
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
    }

    
    .btn--dark-mode {
        width: 38px;
        height: 38px;
    }
    
    .dark-mode-icon i {
        font-size: 0.95rem;
    }

    .header__nav-link {
        display: none;
    }

    
    .btn {
        padding: 0.55rem 1.1rem;
        font-size: 0.85rem;
    }
    
    body.dark-mode .hero {
        background-size: 150px;
    }

    .hero {
        min-height: 75vh;
        background-size: 150px;
        background-position: right top;
}
    
    .hero__content {
        max-width: 80%;
        margin-top: -30px;
    }
    
    .hero__title {
        font-size: 2.2rem;
        margin-top: -80px;
    }
    
    .hero__title::after {
        width: 80px;
        height: 3px;
    }
    
    .hero__subtitle {
        font-size: 1.1rem;
    }
    
    .hero__cta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer__social {
        gap: 1.5rem;
    }
    
    .footer__social-link {
        margin: 0 0.75rem;
    }
    
    .footer__social-link img {
        width: 35px;
    }
    
    .footer__copy {
        font-size: 1rem;
    }
}

/* MOVIL PEQUEÑO: 425px - 576px */
@media (max-width: 576px) {
    .header {
        height: 160px;
        padding: 0 1rem;
    }
    
    .header__logo img {
        width: 130px;
    }
    
    .header__actions {
        margin-top: -25px;
        gap: 0.5rem;
        flex-direction: column;
    }
    
    .btn--dark-mode {
        width: 36px;
        height: 36px;
    }
    
    .dark-mode-icon i {
        font-size: 0.9rem;
    }

    
    .btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
    }
    
    .hero {
        min-height: 70vh;
        background-size: 150px;
        background-position: right top;
    }
    
    .hero__content {
        max-width: 90%;
    }
    
    .hero__title {
        font-size: 1.8rem;
        margin-top: -60px;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .footer__social {
        gap: 1rem;
    }
    
    .footer__social-link {
        margin: 0 0.5rem;
    }
    
    .footer__social-link img {
        width: 30px;
    }
    
    .footer__copy {
        font-size: 0.9rem;
    }

    .modal__content .login-links {
        flex-direction: column;
        gap: 0.8rem;
      }
}

/* MOVIL MUY PEQUEÑO: 0 - 425px */
@media (max-width: 425px) {
    .header {
        height: 150px;
    }
    
    .header__logo img {
        width: 120px;
    }
    
    .header__actions {
        margin-top: -20px;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .hero__title {
        font-size: 1.6rem;
    }
    
    .hero__cta .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .footer__social {
        flex-wrap: wrap;
    }
    
    .footer__social-link {
        margin: 0.5rem;
    }
}

/* ORIENTACIÓN HORIZONTAL (LANDSCAPE) */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        height: 140px;
    }

    .btn--dark-mode {
        width: 36px;
        height: 36px;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero__content {
        margin-top: 0;
    }
    
    .hero__title {
        margin-top: 0;
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .hero__cta {
        margin-top: 1rem;
    }
}