/* --- Reseteo básico y variables --- */
:root {
    --primary-color: #3B4CCA; /* Azul de tu app */
    --secondary-color: #FFDE00; /* Amarillo de Pokémon */
    --dark-text: #2c3e50;
    --light-text: #ffffff;
    --bg-color: #f0f2f5; /* Un fondo gris claro que complementa tu app */
    --success-color: #2ecc71;
    --text-color-app: #4a4a4a; /* Color de texto que veo en tu app */
    --app-bg-color: #f4f7f6; /* Fondo de la app (casi blanco) */
    --app-header-color: #ffffff; /* Color de la barra superior de tu app (Blanco) */
    --app-filter-button-color: #3f51b5; /* Azul del botón filtrar */
    
    /* Colores de tipo (para el mockup) */
    --type-fire: #F08030;
    --type-water: #6890F0;
    --type-grass: #78C850;
    --type-electric: #F8D030;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background: var(--bg-color);
    
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: auto;
    background: var(--light-text);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    overflow: hidden;
    position: relative;
}

/* --- Cabecera y Logo --- */
header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 15px; /* Aumentado para el icono */
}

/* ==== AÑADIDO: Estilo para el icono del logo ==== */
.logo-icon {
    width: 40px; /* Ajusta el tamaño según veas */
    height: 40px;
    /* Para que el navegador lo renderice nítido */
    image-rendering: -webkit-optimize-contrast; 
    image-rendering: crisp-edges;
}

/* --- Sección Hero y Contador --- */
.hero {
    text-align: center;
    margin-bottom: 3.5rem;
}

.hero h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    color: var(--dark-text);
}

.hero .subtitle {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 3rem;
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin-bottom: 3.5rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    color: var(--dark-text);
    border: 1px solid #e7e7e7;
    padding: 1.2rem 1.8rem;
    border-radius: 15px;
    min-width: 110px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-out;
}

.time-block:hover {
    transform: translateY(-5px);
}

.time-block span:first-child {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--primary-color);
}

.time-block .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-top: 0.3rem;
    color: #777;
}

/* --- Formulario "Avísame" --- */
#newsletter-form {
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
}

#newsletter-form p {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
}

/* ==== CAMBIO: Formulario unificado ==== */
#notify-form {
    display: flex;
    gap: 0; /* Sin espacio */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden; /* Clave para unificar bordes */
    border: 2px solid #ddd; /* Borde en el contenedor */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff; /* Fondo blanco unificado */
}

/* Efecto de foco en el formulario */
#notify-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 76, 202, 0.2);
}

#email-input {
    flex-grow: 1;
    border: none; /* Sin borde propio */
    padding: 1.1rem;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    border-radius: 0; /* Sin bordes redondeados */
    border-right: 1px solid #eee; /* Separador sutil */
    background: transparent; /* Fondo transparente */
}

/* Se elimina el :focus del input, ahora lo gestiona el form */
#email-input:focus {
    box-shadow: none;
}

.cta-button {
    border: none;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 0; /* Sin bordes redondeados */
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.3s ease, transform 0.2s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
/* Fin del formulario unificado */


.cta-button:hover {
    background: #2a37a0;
    transform: translateY(0); /* Deshabilitamos el hover de botón individual */
    box-shadow: none;
}

/* Botón secundario SÍ mantiene sus bordes y hover */
.cta-button.secondary-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: calc(1.1rem - 2px) calc(2rem - 2px); 
    border-radius: 12px; /* Mantiene su radio */
}

.cta-button.secondary-button:hover {
    background: rgba(59, 76, 202, 0.08);
    color: var(--primary-color);
    transform: translateY(-3px); /* Mantiene su hover */
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}


#form-message {
    margin-top: 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

/* --- Contenido (Features + Mockup) --- */
.content-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin: 5rem 0;
}

.features {
    flex: 1;
}

.features h3 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    font-weight: 900;
}

.features ul {
    list-style: none;
}

.features li {
    font-size: 1.15rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    color: var(--text-color-app);
}

.features li .icon {
    font-size: 1.5rem;
    background: rgba(59, 76, 202, 0.08);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.features li:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.features li strong {
    display: block;
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 0.3rem;
}


/* --- Mockup del Teléfono (Fino y Moderno) --- */
.phone-preview {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    border: 10px solid #111;
    border-radius: 40px;
    background: #111;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0,0,0,0.1);
    transition: transform 0.5s ease-in-out;
    transform: rotateY(-10deg) rotateX(5deg);
    padding: 0; 
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-8px);
}

.phone-notch {
    display: none;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--app-bg-color);
    border-radius: 30px; 
    overflow: hidden;
    position: relative;
    padding-bottom: 0;
}

/* --- Contenido simulado de la App (Minimalista con Tarjetas) --- */
.app-content-mockup {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color-app);
}

.mock-header {
    background-color: var(--app-header-color);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1;
}
.mock-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==== ELIMINADO: .pokeball-icon ==== */

/* ==== AÑADIDO: Estilo para el icono del header del móvil ==== */
.mock-header-icon {
    width: 25px;
    height: 25px;
    image-rendering: -webkit-optimize-contrast; 
    image-rendering: crisp-edges;
}

.mock-search-bar {
    display: flex;
    padding: 12px 15px;
    background-color: var(--app-header-color);
    border-bottom: 1px solid #eee;
    gap: 10px;
    align-items: center;
}
.mock-search-bar input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    background-color: var(--app-bg-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

.mock-search-bar .mock-filter-button {
    background-color: transparent;
    color: var(--primary-color);
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 5px;
}
.mock-search-bar .mock-filter-button:hover {
    transform: scale(1.1);
}

/* Lista de tarjetas */
.mock-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px 15px;
    background-color: var(--app-bg-color);
}

.mock-list-item-detail {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mock-list-item-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.mock-item-info {
    display: flex;
    flex-direction: column;
}

.mock-list-item-detail .name {
    font-weight: 700;
    color: var(--dark-text);
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.mock-list-item-detail .type {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    color: #fff;
}
.type.fire { background-color: var(--type-fire); }
.type.water { background-color: var(--type-water); }
.type.grass { background-color: var(--type-grass); }
.type.electric { background-color: var(--type-electric); }


.mock-stats {
    display: flex;
    gap: 15px;
    text-align: right;
}
.mock-stats div {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: #777;
}
.mock-stats .value {
    font-weight: 700;
    font-size: 0.95rem;
}
.mock-stats .attack .value { color: var(--app-list-attack); }
.mock-stats .defense .value { color: var(--app-list-defense); }


/* Botón Flotante (FAB) */
.mock-add-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    font-weight: 400;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding: 0;
    text-align: center;
    border: none;
}
.mock-add-button:hover {
    transform: scale(1.05);
    background-color: #2a37a0;
}


/* --- Footer --- */
footer {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 2.5rem;
    margin-top: 3rem;
    font-size: 0.95rem;
    color: #888;
}

/* ==== CAMBIO: Animaciones CSS eliminadas ==== */
/* Las clases .animate-in, @keyframes, etc., ya no son necesarias 
   si GSAP las maneja al inicio, pero no molestan si se quedan. 
   Las dejo comentadas por si acaso, pero no se usan.
*/
/*
@keyframes slideInUp { ... }
@keyframes slideInLeft { ... }
@keyframes slideInRight { ... }
.animate-in { ... }
.animate-left { ... }
.animate-right { ... }
.hero .subtitle { animation-delay: 0.2s; }
...
*/


/* --- Responsividad --- */
@media (max-width: 992px) {
    .content-split {
        flex-direction: column-reverse;
        gap: 3rem;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .hero .subtitle {
        font-size: 1.2rem;
    }
    .container {
        padding: 2.5rem;
    }
    .phone-mockup {
        transform: none;
    }
    .phone-mockup:hover {
        transform: translateY(-5px);
    }
}
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }
    /* Icono de logo en móvil */
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero .subtitle {
        font-size: 1rem;
    }
    #countdown {
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    .time-block {
        padding: 1rem 1.2rem;
        min-width: 90px;
    }
    .time-block span:first-child {
        font-size: 2.5rem;
    }
    .features h3 {
        font-size: 1.8rem;
    }
    .features li {
        font-size: 1rem;
    }
    .features li strong {
        font-size: 1.1rem;
    }
    .features li .icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Formulario unificado en móvil */
    #notify-form {
        flex-direction: column;
        border-radius: 12px;
        border: 2px solid #ddd;
        box-shadow: none;
    }
    #email-input {
        text-align: center;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .cta-button {
        border-radius: 0;
        padding: 1rem 1.5rem;
    }
    
    .cta-button.secondary-button {
        width: 100%;
        border-radius: 12px;
        padding: calc(1rem - 2px) 1.5rem;
    }
}