/* ====================== CUSTOM.CSS - ESTILOS PARA EXTRATUR ====================== */


/* ====================== HEADER + BANNER PARALLAX (FONDO MÁS CLARO) ====================== */

#header-wrapperbmw {
    position: relative;
    height: 92vh;
    min-height: 720px;
    background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.25)), 
                url('images/competitionport.png') center/cover no-repeat fixed;
    background-attachment: fixed;
    overflow: hidden;
}

/* Contenedor principal */
#header-wrapperbmw .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Navbar compacto */
#header-wrapperbmw #header {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    margin-top: 15px;
    padding: 10px 25px;
    border-radius: 12px;
    min-height: 68px;
}

#header-wrapperbmw #header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo más pequeño */
#header-wrapperbmw #header img {
    max-height: 52px;
    width: auto;
}

/* Menú más compacto */
#header-wrapperbmw #nav > ul > li > a {
    padding: 8px 14px !important;
    font-size: 0.93em !important;
}

/* Contenido del banner */
.banner-content {
    text-align: center;
    padding: 0 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: -40px;
}

.banner-content h1 {
    font-size: 4.9rem;
    font-weight: 800;
    letter-spacing: 3.5px;
    color: #ffcc00;
    text-shadow: 0 10px 40px rgba(0,0,0,0.95);
    margin-bottom: 18px;
}

.banner-content .subtitle {
    font-size: 1.75rem;
    margin-bottom: 45px;
    text-shadow: 0 6px 25px rgba(0,0,0,0.9);
}

.banner-buttons .button {
    margin: 0 12px;
    padding: 15px 36px;
    font-size: 1.12em;
}

/* Overlay muy suave */
#header-wrapperbmw::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18);
    z-index: 1;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 980px) {
    #header-wrapperbmw {
        background-attachment: scroll;
        height: 85vh;
    }
    .banner-content h1 {
        font-size: 3.5rem;
    }
}

/* ====================== GALERÍA Y INFORMACIÓN CENTRADAS ====================== */

.galeria-x5 {
    padding: 60px 0 40px 0;
}

.galeria-x5 .inner,
.info-x5 .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 22px;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    aspect-ratio: 16 / 9;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.galeria-item:hover img {
    transform: scale(1.12);
}

.galeria-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.galeria-item:hover .overlay {
    opacity: 1;
}

.galeria-item h3 {
    color: #ffcc00;
    font-size: 1.4rem;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}


.info-x5 {
    padding: 70px 0;
    background: #f8f8f8;
}

.info-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.info-content h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 25px;
    font-weight: 800;
}

.info-content .descripcion {
    font-size: 1.18rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 55px;
}

.especificaciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    text-align: left;
}

.spec-item {
    background: white;
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    font-size: 1.1rem;
}

.spec-item strong {
    color: #ffcc00;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .info-content h2 {
        font-size: 2.1rem;
    }
}

/* ====================== FORMULARIO DE CONTACTO -====================== */

.contact-section {
    padding: 50px 0 30px 0;          
    background: #0f0f0f;
    margin-top: -20px;               
}

.contact-section h2 {
    color: #ffcc00;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.6rem;
}

.contact-section p {
    text-align: center;
    color: #bbb;
    margin-bottom: 40px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #555;
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff;
    font-size: 1.05em;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ffcc00;
    box-shadow: 0 0 0 4px rgba(255,204,0,0.2);
}

/* Botón */
#submit-btn {
    background: #ffcc00;
    color: #111;
    padding: 16px 50px;
    font-size: 1.18em;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    max-width: 340px;
    margin: 25px auto 0;
    display: block;
}

#submit-btn:hover {
    background: #ffd633;
    transform: translateY(-3px);
}

/* Mensajes */
.form-message {
    display: none;
    text-align: center;
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 600;
}

.success { background: #1a3c1a; color: #90ff90; }
.error   { background: #3c1a1a; color: #ff9090; }

/* ====================== FOOTER - CORRECCIÓN ====================== */


#footer-wrapper {
    background: #1a1a1a !important;
    background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)), url("images/bg03.png"), url("images/bg02.png") !important;
    background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)), url("images/bg03.png"), url("images/bg02.png") !important;
    background-image: -ms-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)), url("images/bg03.png"), url("images/bg02.png") !important;
    background-image: linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)), url("images/bg03.png"), url("images/bg02.png") !important;
    background-repeat: repeat-x, no-repeat, repeat;
    background-size: 100% 100%, 100% 15em, auto auto;
    background-position: top left, top center, top left;
    padding: 7em 0 7em 0;
    color: #ddd;
}

#footer {
    color: #ddd;
}

#footer h2 {
    color: #fff;
}

#footer a {
    color: #acb2bf;
}

#footer strong {
    color: #fff;
}

/* Asegurar que el sello de seguridad se vea bien */
#footer img {
    filter: brightness(1.1);
}

/* Copyright */
#copyright {
    border-top: solid 1px rgba(255,255,255,0.1);
    color: #aaa;
}

#copyright a {
    color: #ccc;
}

/* ====================== SPLASH BANNER AL CARGAR ====================== */

.splash-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.splash-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.splash-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.splash-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #ffcc00;
    color: #111;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;     
    font-size: 34px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    z-index: 10000;
    
    /* Centrado perfecto */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.splash-close:hover {
    background: #ffd633;
    transform: scale(1.12) rotate(90deg);
    box-shadow: 0 10px 25px rgba(255,204,0,0.5);
}

/* Ocultar el banner */
.splash-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ====================== FIX PARA CAMPOS DE FORMULARIO ====================== */

/* Asegurar que los inputs sean clickeables */
.form-group input,
.form-group textarea {
    position: relative;
    z-index: 10;
    pointer-events: all !important;
}

/* Evitar que contenedores bloqueen los campos */
#contact-form,
.contact-section,
.form-group {
    pointer-events: all !important;
}

/* Forzar que los inputs tengan prioridad */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"] {
    min-height: 52px;
    cursor: text !important;
}

/* Fix para posibles superposiciones */
.row, .col-6, .col-12 {
    position: relative;
    z-index: 5;
}

/* ====================== Feed insta ====================== */
.instagram-feed {
    padding: 0 0 60px 0;           
    margin-top: -30px;             
    background: transparent;
}

.instagram-feed .inner {
    padding-top: 0;
}


.instagram-feed h2,
.instagram-feed p,
.instagram-feed .subtitle {
    text-shadow: none !important;
    color: #111;
}


#posts-recientes, 
.instagram-feed {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}


.embedsocial-instagram, 
.instagram-feed iframe,
.instagram-feed .es-widget {
    margin-top: 0 !important;
    padding-top: 0 !important;
}