/* ================= VARIABLES Y RESET ================= */
:root {
    --bg-color: #fbfbfd;
    --text-black: #000000;
    --text-red: #da291c; /* Rojo estilo Claro */
    --primary-color: #da291c;
    --btn-hover: #b52217;
    --gray: #333333; /* Gris muy oscuro, casi negro para contraste */
    --light-gray: #f5f5f7;
    --border-color: #d2d2d7;
}

* {
    font-style: oblique 40deg;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-black);
    line-height: 1.5;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ================= LOGO CLARO ================= */
.logo-container {
    /* filter: brightness(0) invert(1); */
    mix-blend-mode: multiply;
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 100;
}
#logo-claro {
    width: 160px; /* Ajusta este tamaño según necesites */
    height: auto;
}

/* ================= HERO SECTION ================= */
.hero {
    font-style: oblique 40deg;
    text-align: center;
    padding: 1rem 1rem 3rem; /* Espacio extra arriba por el logo */
}
.hero h1 {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
    color: var(--text-red); /* Título en rojo */
}
.hero p {
    font-size: 1.5rem;
    color: var(--text-black); /* Texto en negro */
    margin-bottom: 2rem;
}

/* ================= BOTONES ================= */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 980px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #000000; /* Botón primario fondo rojo, letras negras */
}
.btn-primary:hover {
    background-color: var(--btn-hover);
    transform: scale(1.02);
    color: #ffffff;
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-red); /* Letras rojas */
    border: 1px solid var(--primary-color); /* Borde rojo */
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff; /* Letras negras al pasar el mouse */
}

/* ================= SLIDER ================= */
.slider-container {
    object-fit: cover; 
    position: relative;
    max-width: 1200px;
    /* AQUÍ AUMENTAMOS EL ESPACIO INFERIOR (10rem) PARA SEPARARLO DE LA SIGUIENTE SECCIÓN */
    margin: 0 auto 10rem; 
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: #fff;
}
.slider-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}
.slide {
    min-width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
}
.slide img {
    image-rendering: pixelated;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: var(--text-black);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: 0.2s;
}
.slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); color: var(--text-red); }
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* ================= SECCIÓN DE ESPECIFICACIONES ================= */
.specs-section {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}
.specs-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}
.specs-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 450px;
}

/* Caja de Colores */
.color-box {
    background-color: var(--light-gray);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1rem;
}
.color-box p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}
.color-box strong { font-weight: bold; color: var(--text-red); } /* Nombre de color en rojo */

.swatches {
    display: flex;
    gap: 15px;
    align-items: center;
}
.swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
    transition: outline-offset 0.2s ease;
}
.swatch.active {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}
.c-blue { background-color: #e5f0fa; }
.c-black { background-color: #1a1a1c; }

/* Acordeón */
.accordion-item {
    border-radius: 30px;
    background-color: var(--light-gray);
    overflow: hidden;
    margin-bottom: 5px;
}
.accordion-btn {
    width: 100%;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    color: var(--text-black); /* Botón del acordeón en negro */
    transition: background 0.3s;
}
.accordion-btn:hover { background-color: #e8e8ed; color: var(--text-red); } /* Se vuelve rojo al pasar el mouse */
.icon-plus {
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--text-red); /* Círculo rojo */
    color: var(--text-red); /* Signo más rojo */
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
}
.accordion-btn.active .icon-plus {
    transform: rotate(45deg); 
    background-color: var(--text-red);
    color: #ffffff;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 24px 0 60px; 
    color: var(--text-black);
    font-size: 0.95rem;
}

/* Columna Derecha (Imagen del Teléfono) */
.specs-right {
    mix-blend-mode: multiply;
    flex: 1.5;
    position: sticky; 
    top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.specs-image-container {
    width: 100%;
    max-width: 900px;
}
.specs-image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease-in-out; 
    opacity: 1;
}

/* ================= FORMULARIO (ENCUESTA) ================= */
.survey-section {
    background-color: #fff;
    padding: 5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: none; 
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.survey-container {
    max-width: 600px;
    margin: 0 auto;
}
.survey-container h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    color: var(--text-red); /* Título de encuesta en rojo */
}
.survey-container p.subtitle {
    text-align: center;
    color: var(--text-black); /* Subtítulo negro */
    margin-bottom: 3rem;
}
.form-group {
    margin-bottom: 1.8rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-red); /* Labels del formulario rojos */
}
input[type="text"], select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-black); /* Texto que escribe el usuario en negro */
    outline: none;
    transition: border 0.3s;
}
input[type="text"]:focus, select:focus {
    border-color: var(--primary-color);
}
.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
    color: var(--text-black); /* Letras de opciones radio en negro */
}
input[type="radio"] {
    transform: scale(1.2);
    accent-color: var(--primary-color); /* Botones de radio en rojo */
}
.price-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-red); /* Precio en rojo */
    margin-top: 0.5rem;
    display: block;
}
input[type="range"] {
    width: 100%;
    margin-top: 1rem;
    accent-color: var(--primary-color); /* Control de rango en rojo */
}
#plazos-group {
    display: none; 
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color); /* Línea roja */
}
.submit-btn {
    width: 100%;
    margin-top: 2rem;
    padding: 1.2rem;
    font-size: 1.2rem;
}

/* ================= MEDIA QUERIES (RESPONSIVE) ================= */
@media (max-width: 900px) {
    .specs-container { 
        flex-direction: column-reverse; 
    }
    .specs-right { 
        position: relative; 
        top: 0; 
        margin-bottom: 3rem; /* Espacio extra abajo de la imagen en celular */
    }
    .specs-left { 
        max-width: 100%; 
    }
    .slide { 
        height: 400px; /* Slider más pequeño en móviles */ 
    }
    .logo-container {
        position: relative;
        top: 0; left: 0;
        text-align: center;
        padding: 20px 0;
    }
    .hero {
        padding-top: 2rem;
    }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.2rem; }
    .slide { height: 300px; }
    .radio-group { flex-direction: column; gap: 1rem; }
}

/* --- POPUP DE AGRADECIMIENTO CREATIVO --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px); /* Desenfoque de fondo elegante */
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.4s ease forwards;
}

.popup-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.8);
    opacity: 0;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s forwards;
}

.popup-icon {
    font-size: 55px;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s infinite;
}

.popup-content h3 {
    font-size: 24px;
    color: #1d1d1f; /* Color gris oscuro característico de Apple */
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.popup-content p {
    font-size: 15px;
    color: #86868b;
    line-height: 1.5;
    margin-bottom: 25px;
}

.btn-popup {
    background: #0071e3; /* Azul Apple */
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-popup:hover {
    background: #0077ed;
    transform: translateY(-1px);
}

/* --- ANIMACIONES --- */
@keyframes fadeIn {
    to { background: rgba(0, 0, 0, 0.5); }
}

@keyframes popIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}