/* RESET & ELEMENTOS GENERALES */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    background: #fff;
    color: #1c1c1e;
    overflow-x: hidden;
    line-height: 1.6;
}

/* BRANDING & NAVBAR SUPERIOR */
.porsche-navbar {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    z-index: 100;
    transition: background 0.3s;
}
.porsche-navbar:hover {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}
.porsche-logo {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 7px;
    font-family: 'Times New Roman', serif;
}

/* MENÚ HORIZONTAL GENERAL */
.horizontal-menu {
    background: #111;
    border-block: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 15px 0;
}
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.horizontal-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.horizontal-menu ul li a {
    color: #a0a0a2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s, border-color 0.2s;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
.horizontal-menu ul li a:hover {
    color: #fff;
    border-color: #fff;
}

/* SECCIÓN INTRO (VIDEO HERO) */
.intro {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}
#intro-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.intro-overlay {
    position: absolute;
    inset: 0; /* Reemplaza top, left, width, height: 100% */
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}
.intro-content {
    position: absolute;
    bottom: 12%; left: 8%;
    z-index: 2;
    max-width: 600px;
}
.intro-title {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

/* BOTONES PREMIUM (Agrupados y estilizados juntos) */
.btn-hero, .btn-submit, .btn-porsche, #video-btn {
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    border-radius: 4px;
}
.btn-hero {
    display: inline-block;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-hero:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}
.video-controls { position: absolute; bottom: 5px; right: 40px; z-index: 2; }
#video-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
#video-btn:hover, .btn-submit:hover { background: #d5001c; }

/* MAQUETACIÓN DE CONTENIDO Y TEXTOS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.section-title {
    font-size: 28px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 40px; text-align: center;
}
.section-title::after {
    content: ''; display: block; width: 50px; height: 3px;
    background: #111; margin: 12px auto 0;
}
.text-block { max-width: 800px; margin: 0 auto; }
.text-block p { font-size: 16px; color: #4a4a4a; margin-bottom: 20px; text-align: justify; }
.divider { border: none; border-top: 1px solid #e5e5e5; margin: 20px 0; }

/* REJILLA DE MODELOS (GRID MODERNIZADO) */
.models-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.model-card { background: #f8f9fa; border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.model-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
.model-img-container { width: 100%; height: 200px; overflow: hidden; background: #eaeaea; }
.model-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.model-card:hover .model-img-container img { transform: scale(1.06); }
.model-info { padding: 20px; text-align: center; }
.model-info h3 { font-size: 20px; margin-bottom: 8px; }
.model-info .tag { font-size: 14px; color: #666; }

/* FORMULARIO DE CONFIGURACIÓN */
.form-container { max-width: 650px; margin: 0 auto; background: #fdfdfd; padding: 40px; border: 1px solid #e5e5e5; border-radius: 4px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.form-group select { width: 100%; padding: 12px; border: 1px solid #ccc; font-size: 15px; outline: none; border-radius: 4px; }
.form-group select:focus { border-color: #111; }
.radio-container { display: flex; flex-direction: column; gap: 12px; }
.radio-label { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.radio-label input { display: none; }
.custom-radio {
    width: 20px;
    height: 20px;
    min-width: 20px; /* Evita que el flexbox lo deforme o lo aplaste */
    min-height: 20px; /* Asegura un círculo perfecto */
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #cccccc;
    transition: transform 0.2s, box-shadow 0.2s;
}.radio-label input:checked + .custom-radio { transform: scale(1.2); box-shadow: 0 0 0 2px #111; }

/* PALETA DE COLORES */
.color-red { background: #d5001c; } .color-yellow { background: #f7c300; } .color-blue { background: #002c5b; }
.color-silver { background: #ccc; } .color-crayon { background: #e3e1dc; } .color-shark { background: #0065b3; }

.btn-submit { width: 100%; padding: 15px; background: #111; color: #fff; border: none; font-size: 15px; }

/* PIE DE PÁGINA (FOOTER) */
.porsche-footer { background: #111; color: #fff; padding: 60px 40px 20px; margin-top: 40px; }
.footer-section { margin-bottom: 30px; }
.footer-section h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-links a { color: #a0a0a2; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #222; padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: 12px; color: #666; }

/* POPUP COOKIES */
#cookie-banner { border: none; border-radius: 6px; box-shadow: 0 12px 48px rgba(0,0,0,0.35); padding: 26px; margin: auto; max-width: 520px; }
#cookie-banner::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.cookie-content h2 { margin-bottom: 8px; font-size: 18px; color: #111; }
.cookie-content p { font-size: 14px; color: #333; margin-bottom: 14px; }
.cookie-content .privacy-notice { font-size: 13px; color: #444; margin-bottom: 18px; }
.cookie-content .privacy-notice a { color: #d5001c; text-decoration: underline; }
.btn-porsche { padding: 10px 20px; background: #111; color: #fff; border: none; border-radius: 4px; }
.btn-porsche:hover { background: #333; }

/* VIDEO PROMPT */
.video-prompt { font-size: 16px; background: rgba(0,0,0,0.55); color: #fff; padding: 0.75rem 1rem; border-radius: 8px; }

/* DISEÑO RESPONSIVO (MOBILE) */
@media (max-width: 768px) {
    #cookie-banner { max-width: 92%; padding: 18px; }
    .cookie-content h2 { font-size: 16px; }
    .cookie-content p { font-size: 13px; }
    .cookie-content .privacy-notice { font-size: 12px; }
    .video-prompt { font-size: 14px; padding: 10px 12px; border-radius: 6px; }
    .intro-title { font-size: clamp(1.8rem, 6vw, 3rem); bottom: 18%; }
    .video-controls { right: 20px; bottom: 15px; }
    #video-btn { width: 40px; height: 40px; }
    .intro-content { left: 6%; right: 6%; bottom: 10%; max-width: 90%; }
    .menu-container { padding: 0 12px; }
    .horizontal-menu ul { gap: 16px; }
    .porsche-navbar { padding: 0 12px; height: 56px; }
    .models-grid { gap: 18px; }
    .form-container { padding: 24px; }
    .footer-links { flex-direction: column; gap: 12px; }
}

@media (max-width: 420px) {
    .video-prompt { font-size: 13px; padding: 8px 10px; }
    #video-btn { width: 36px; height: 36px; }
    .intro-title { font-size: 1.6rem; }
    #cookie-banner { padding: 14px; }
}