/* ==================================================
   Estilos Generales
================================================== */
body, html {
    margin: 0;
    padding: 0;
}

.page {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 0px;
    padding: 0 20px;
    box-sizing: border-box;
}

.logo-image {
    width: 600px;
    height: 200px;
    object-fit: contain;
    display: block;
}

main {
    width: 100%;
}

        /*
         * ====================================
         * Estilos de notificaciones de error
         * ====================================
         */
        #notification-container {
            margin-bottom: 1rem; /* mb-4 */
            opacity: 1;
            transition: opacity 300ms ease-in-out;
            font-family: 'Montserrat', sans-serif;
            font-size: 16px; 
        }
        .notification {
            padding: 1rem; /* p-4 */
            border-radius: 0.375rem; /* rounded-md */
            display: flex;
            align-items: center;
            gap: 0.75rem; /* space-x-3 */
            font-size: 0.875rem; /* text-sm */
            font-weight: 500; /* font-medium */
        }
        .notification.notification-success {
            background-color: #d1fae5; /* bg-green-100 */
            color: #065f46; /* text-green-800 */
        }
        .notification.notification-error {
            background-color: #fee2e2; /* bg-red-100 */
            color: #991b1b; /* text-red-800 */
        }
        .notification-icon {
            height: 1.25rem; /* h-5 */
            width: 1.25rem; /* w-5 */
        }
        .notification-icon-success {
            color: #10b981; /* text-green-500 */
        }
        .notification-icon-error {
            color: #ef4444; /* text-red-500 */
        }
        
/*
    * ====================================
    * Estilos del formulario y campos
    * ====================================
    */
.form {
    display: inline-flex;
    flex-direction: column;
    width:20%;
    gap: 0.5rem; /* space-y-6 */
    margin-top:  25px;
}

.form-label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */ 
    color: #9095A0FF;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin-top: 25px;
}

.input-container {
    margin-top: 0.25rem; /* mt-1 */
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); /* shadow-sm */
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #ffea2dff; /* border-indigo-500 */
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d5cc19ff; /* ring-2 ring-white ring-offset-2 ring-indigo-500 */
}

/*
    * ====================================
    * Estilos del botón de envío
    * ====================================
    */
.submit-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.625rem 1.25rem; /* py-2.5 px-5 */
    font-size: 1rem; /* text-base */
    font-weight: 600; /* font-medium */
    color: #1f2937; /* text-gray-900 */
    background-color: #facc15; /* bg-yellow-400 */
    border-radius: 0.375rem; /* rounded-md */
    border: none;
    cursor: pointer;
    transition: background-color 300ms; /* transition-colors duration-300 */
    width: 100%;
}

.submit-button:hover {
    background-color: #eab308; /* hover:bg-yellow-500 */
}

.submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #facc15; /* ring-2 ring-offset-2 ring-yellow-400 */
}


/* ==================================================
   Estilos del Tema Oscuro (Default)
================================================== */
body {
    background-color: #000000;
    color: #FFFFFF;
}

.header {
    background-color: rgb(0, 0, 0);
    box-shadow: 0px 0px 1px #171a1f12, 0px 0px 2px #171a1f1F;
}

.footer {
    background-color: #171A1FFF;
    box-shadow: 0px 0px 1px #171a1f12, 0px 0px 2px #171a1f1F;
    font-family: 'Prompt', sans-serif;
}

.header-menu-item {
    color: rgb(255, 255, 255);
}

.hero-section, .divider, .features-section, .stats-section {
    background-color: #000000;
} 

.hero-text, .section-title, .feature-title, .stat-number, .stat-label {
    color: #FFDD32FF;
}

.section-title-subscription {
    color: #FFDD32FF; 
 }

.section-subtitle, .feature-description {
    color: #9095A0FF;
}

/* Header */
.header {
    width: 100%;
    border-radius: 0px;
    padding: 0px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-right-side {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-menu {
    display: flex;
    gap: 20px;
}

.header-menu-item {
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    padding: 25px 0;
    position: relative;
    white-space: nowrap;
}

.header-menu-item.selected {
    font-weight: 700;
    color: #FFDD32FF;
}

.header-menu-item.selected .indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #FFDD32FF;
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.button {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    text-align: center;
    transition: all 0.3s ease;
}

.button.login, .button.logout, .button.signup {
    color: #1E1D16FF;
    background: #FFDD32FF;
    border: 1px solid #DEE1E6FF;
}

.button.signup {
    border: none;
}

/* Theme Toggle */
.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    position: relative;
    cursor: pointer;
    width: 50px;
    height: 25px;
    border-radius: 12.5px;
    background-color: #5D6168FF;
    transition: background-color 0.3s ease;
}

.theme-toggle .indicator {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #FFDD32FF;
    transition: transform 0.3s ease;
}

.theme-toggle.light-mode .indicator {
    transform: translateX(25px);
}

.theme-toggle-icon {
    width: 25px;
    height: 25px;
    background: transparent;
    margin: 0 0px;
}

.moon-icon {
    display: block;
}

.sun-icon {
    display: none;
}



.hero-button {
    padding: 15px 30px;
    font-size: 20px;
    line-height: 30px;
    color: #1E1D16FF;
    background: #FFDD32FF;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

/* Divider */
.divider {
    width: 100%;
    height: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0px;
    box-sizing: border-box;
}

.divider .line {
    width: 30%;
    max-width: 1411px;
    height: 1px;
    background: #E8C92EFF;
}



.section-header {
    text-align: center;
}

.section-title ,  .section-title-subscription{
    font-family: 'Prompt', sans-serif;
    font-size: 48px;
    line-height: 68px;
    font-weight: 700;
    margin-bottom: 40px;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    line-height: normal;
    font-weight: 400;
    max-width: 100%;
    margin-bottom: 100px;
    text-align: justify;
}
/* Features Section */
.features-section { 
    width: 100%;
    margin-top: 150px;
    padding: 50px 20px;
    display: block;
    flex-direction: column;
    gap: 100px;
    align-items: center;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    width: 100%;
    padding: 10px 10px;
    text-align: center;
    box-sizing: border-box;
}

/* Contenedor principal */
.header-container {
    position: relative; /* Necesario para que el posicionamiento absoluto del texto funcione */
    max-width: 2000px; /* Ajusta según el diseño */
    margin: 0 auto; /* Centra el contenedor */  
    margin-bottom: 200px;
}


/* Contenedor de texto */
.header-text-container {
    position: absolute;
    top: 600px; /* Mantiene la posición a 600px desde la parte superior */
    left: 50%; /* Centra horizontalmente */
    transform: translateX(-50%); /* Ajusta para centrar respecto al ancho del contenedor */
    width: 100%; /* Ancho flexible (puedes cambiar a un valor fijo como 1200px) */
    max-width: 1200px; /* Límite máximo para el ancho */
    padding: 20px;
    background-color: rgb(0, 0, 0);
    border-radius: 16px;
    display: flex; /* Habilita flexbox para alinear el contenido interno */
    flex-direction: column;
    align-items: center; /* Centra el texto horizontalmente dentro del contenedor */
    justify-content: center; /* Centra el texto verticalmente dentro del contenedor */
}

.hero-text {
    font-family: 'Prompt', sans-serif;
    font-size: 64px;
    line-height: 68px;
    font-weight: 600; 
   /* margin: 0 auto 50px;*/
    font-style: normal; 
    text-align: center; /* Asegura que el texto esté centrado dentro del contenedor */
}

.header-image-container {
    width: 100%;
    height: auto;
    min-height: 400px;
    background-color: rgb(0, 0, 0); 
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center; 
}
.header-image {
    width: fit-content ; 
    height:fit-content ;  
    display: block; /* Elimina espacios no deseados */
    object-fit: cover; /* Asegura que la imagen cubra el contenedor */
    mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 95%,
    transparent 100%
  );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 95%,
        transparent 100%
    );
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1400px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-content, .feature-image {
    flex: 1;
    min-width: 300px;
}

.feature-content {
    max-width: 100%;
    text-align: justify;
}

.feature-title {
    font-family: 'Prompt', sans-serif;
    font-size: 40px;
    line-height: 56px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    margin-bottom: 30px;
}

.feature-image {
    width: 700px; 
    height: auto;
    min-height: 400px;
    background-color: rgb(32, 36, 42);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9095A0FF; 
}

.button.try-now {
    padding: 10px 20px;
    font-size: 16px;
    line-height: 26px;
    color: #1E1D16FF;
    background: #FFDD32FF;
    border: none;
    border-radius: 6px;
    text-decoration: none;
}

/* Features Grid Section */
.features-grid-section {
    width: 100%;
    padding: 80px 20px;
    box-sizing: border-box;  
}

.features-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 100px;
    width:100%;

}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.feature-card .icon {
    color: #FFDD32FF;
}

.feature-card .icon svg {
    width: 40px;
    height: 40px;
}

.feature-card-title {
    font-family: 'Prompt', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFDD32FF;
    margin: 0;
}

.feature-card-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #9095A0FF;
    margin: 0;
}

/* Stats Section */
.stats-section {
    width: 100%;
    padding: 80px 20px;
    border-radius: 6px;
    box-shadow: 0px 0px 0px #171a1f12, 0px 0px 0px #171a1f1F;
    text-align: center;
    box-sizing: border-box;
}

.stats-container {
    max-width: 1411px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
}

.stat-number {
    font-family: 'Archivo', sans-serif;
    font-size: 64px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
}

.stat-label {
    font-family: 'Archivo', sans-serif;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    max-width: 280px;
    margin: 0;
}

/* Subscription Section */
.subscription-section {
    display: contents;
    width: 100%; 
    min-height: 400px;
    border-radius: 6px;
    box-shadow: 0px 0px 0px #171a1f12, 0px 0px 0px #171a1f1F; 
    justify-content: center;
    align-items: center;
    color: #9095A0FF;
    font-size: 24px;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.subscription {
    width: 100%;
    border-radius: 6px;
    padding: 0px 0px;
    text-align: center;
    box-sizing: border-box;
}
.subscription-content {
    display:contents;
    flex-direction: column;
    align-items: center;
}

.text-subscription-section {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    line-height: 28px;
    font-weight: 100;
    margin-bottom: auto;
    padding: 50px;
    background-color: rgb(0, 0, 0);
    color: #9095A0FF;
}

.general-link {
    color: #af9202ff; /* text-indigo-600 */
    font-weight: 600; /* font-semibold */
    text-decoration: none;
}

.general-link:hover {
    color: #af9202ff; /* text-indigo-600 */
    text-decoration: underline;
}


/* Footer */
.footer {
    width: 100%;
    border-radius: 6px;
    padding: 10px 50px;
    text-align: center;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.footer-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-menu-item {
    font-size: 16px;
    line-height: 30px;
    color: #565E6CFF;
    text-decoration: none;
    white-space: nowrap;
}

.footer-social-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #424955FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #424955FF;
    transition: all 0.3s ease;
}

.footer-social-button:hover {
    background-color: #424955FF;
    color: #1D2128FF;
}

.footer-social-button svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.footer-copyright {
    font-size: 12px;
    line-height: 20px;
    color: #424955FF;
}

.footer-contact {
    font-size: 16px;
    line-height: 50px;
    color: #5D6168FF;
}

/* ==================================================
   Estilos del Tema Claro
================================================== */
body.light-mode {
    background-color: rgb(255, 255, 255);
    color: #171A1FFF;
}

body.light-mode .header,
body.light-mode .footer {
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 0px 1px #DEE1E6FF, 0px 0px 2px #DEE1E6FF;
}

body.light-mode .header-menu-item {
    color: #565E6CFF;
}

body.light-mode .hero-section,
body.light-mode .divider,
body.light-mode .features-section,
body.light-mode .stats-section,
body.light-mode .subscription-section {
    background-color: #FFFFFFFF;
}

body.light-mode .hero-text,
body.light-mode .section-title,
body.light-mode  .section-title-subscription,
body.light-mode .feature-title,
body.light-mode .feature-card-title {
    color: rgb(0, 0, 0);
}

body.light-mode .section-subtitle,
body.light-mode .feature-description,
body.light-mode .feature-card-description {
    color: #5D6168FF;
}

body.light-mode .header-text-container{ 
    background-color: rgb(255, 255, 255);  
}

body.light-mode .feature-image {
    background-color: #F0F2F5FF;
    color: #9095A0FF;
}

body.light-mode .stats-section {
    box-shadow: 0px 0px 0px #DEE1E6FF, 0px 0px 0px #DEE1E6FF;
}

body.light-mode .stat-number,
body.light-mode .stat-label {
    color: rgb(180, 167, 28);
}

body.light-mode .subscription-section {
    color: #5D6168FF;
}

body.light-mode .text-subscription-section {
    background-color: rgb(255, 255, 255);
    color:#000000;

}


body.light-mode .footer {
    background-color: rgb(240, 240, 240); 
}

body.light-mode .footer-menu-item {
    color: #5D6168FF;
}

body.light-mode .footer-social-button {
    border: 1px solid #C2C7D0FF;
    color: #C2C7D0FF;
}

body.light-mode .footer-social-button:hover {
    background-color: #C2C7D0FF;
    color: #FFFFFFFF;
}

body.light-mode .footer-copyright,
body.light-mode .footer-contact {
    color: #9095A0FF;
}

body.light-mode .moon-icon {
    display: none;
}

body.light-mode .sun-icon {
    display: block;
}

/* ==================================================
   Media Queries Responsive
================================================== */
/* Extra large devices (large desktops, 1200px and down) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .hero-text {
        font-size: 48px;
        line-height: 56px;
    }

    .section-title, .section-title-subscription {
        font-size: 40px;
        line-height: 48px;
    }

    .feature-title {
        font-size: 36px;
        line-height: 44px;
    }
}

/* Large devices (desktops, 1024px and down) */
@media (max-width: 1024px) {
    .logo-image {
        width: 350px;
        height: 200px;
        object-fit: contain;
        display: block;
    }

    .hero-text, .section-title, .section-title-subscription {
        font-size: 36px;
        line-height: 50px;
    }

    .feature-title {
        font-size: 32px;
        line-height: 40px;
    }

    .feature-item, .feature-item.reverse {
        flex-direction: column;
        text-align: center;
    }

    .feature-content,
    .feature-image {
        flex-basis: auto;
    }

    .feature-content {
        text-align: center;
    }

    .header-content {
        justify-content: center;
    }

    .header-right-side {
        flex-direction: column;
        gap: 15px;
    }

    .header-buttons {
        margin-top: 15px;
        justify-content: center;
    }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 768px) {
    .logo-image {
        width: 200px;
        height: 100px;
        object-fit: contain;
        display: block;
    }

    .hero-text, .section-title, .section-title-subscription {
        font-size: 28px;
        line-height: 40px;
    }

    .section-subtitle, .feature-description {
        font-size: 16px;
    }

    .stat-number {
        font-size: 48px;
    }

    .stat-label {
        font-size: 24px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .header-menu, .header-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Small devices (mobile phones, 576px and down) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .logo-image {
        width: 150px;
        height: 80px;
    }

    .hero-text, .section-title, .section-title-subscription {
        font-size: 24px;
        line-height: 32px;
    }

    .section-subtitle, .feature-description {
        font-size: 14px;
        line-height: 22px;
    }

    .feature-title {
        font-size: 28px;
        line-height: 36px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 18px;
    }

    .hero-button, .button.try-now {
        padding: 10px 20px;
        font-size: 16px;
        line-height: 24px;
    }

    .header-menu {
        gap: 10px;
    }

    .header-buttons {
        gap: 10px;
    }

    .features-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Extra small devices (small mobile phones, 360px and down) */
@media (max-width: 360px) {
    .logo-image {
        width: 120px;
        height: 60px;
    }

    .hero-text, .section-title, .section-title-subscription {
        font-size: 20px;
        line-height: 28px;
    }

    .feature-title {
        font-size: 24px;
        line-height: 32px;
    }

    .stat-number {
        font-size: 30px;
    }

    .stat-label {
        font-size: 16px;
    }
}