/* ======== CONFIGURACIÓN GENERAL Y VARIABLES ======== */
:root {
    --primary-color: #80c443;
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

hr{
    margin: 20px 0;
}

.no-scroll{
    overflow: hidden;
}

/* ======== COMPONENTES REUTILIZABLES ======== */
a, a:hover{
    color: var(--text-color);
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #222036;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #fff;
}

/* ======== HEADER ======== */
.header {
    background: rgba(34, 32, 54, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100vw;
    top: 0;
    z-index: 100;
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    min-width: 160px;
    max-width: 200px;
}

/* ======== SECCIÓN HERO ======== */
.hero {
    position: relative;
    text-align: center;
    padding: 180px 0 100px 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/imgs/img-hero.jpg') no-repeat top center/cover;
    opacity: 0.3;
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.hero-app-img {
    margin: 60px auto 0 auto;
    max-width: 800px;
}
.hero-app-img img {
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}


/* ======== SECCIÓN DE CARACTERÍSTICAS ======== */
.features {
    padding: 100px 20px;
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.feature.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature.reverse .feature-text {
    order: 2;
}

.feature.reverse .feature-image {
    order: 1;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.feature-image img {
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* ======== SECCIÓN CTA FINAL ======== */
.cta {
    background-color: var(--dark-surface);
    text-align: center;
    padding: 80px 20px;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ======== FOOTER ======== */
.footer {
    background-color: #000;
    text-align: center;
    padding: 25px 0;
    color: var(--text-muted);
}

/* ======== MODAL ======== */
.modal {
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--dark-surface); /* Reutiliza tu variable de color */
    color: var(--text-color); /* Reutiliza tu variable de color */
    margin: auto;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

/* Contenedor del contenido para manejar el padding interno */
.modal-content {
    position: relative;
}

.modal-content h3{
    margin: 10px 0;
}

.modal-content li{
    margin-left: 16px;
}

/* El botón de cierre 'X' */
.modal-close-btn {
    position: absolute;
    top: -1rem;  /* Ajusta para que quede alineado con el padding */
    right: -0.5rem; /* Ajusta para que quede alineado con el padding */
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--primary-color);
}


/* ======== DISEÑO RESPONSIVE (MÓVILES) ======== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature, .feature.reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature.reverse .feature-text {
        order: 1;
    }
    
    .feature.reverse .feature-image {
        order: 2;
    }
}

@media (max-width: 600px) {
    .modal {
        width: 100%;
        height: 100%;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        margin: unset;
    }

    .modal-close-btn {
        top: 0.5rem;
        right: 1rem;
    }
}

@media (min-width: 800px) {
    .modal{
        animation-duration: 0.8s;
        animation-timing-function: ease-out;
        animation-fill-mode: forwards; 
        animation-name: slidein;
    }
}


@keyframes slidein {
 from {
    transform: translateY(-200px);
  }
  to {
    transform: translateY(auto);
  }
}