@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding-top: 100px;
    padding-bottom: 100px;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 20px;
    margin-top: 30px;
    letter-spacing: 2px;
    overflow-wrap: break-word;
}
/*HERO*/
.hero-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 30px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    z-index: 10;
}

.logo {
    max-width: 180px;
    margin-bottom: 50px;
}

.hero-text h1 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 80px;
    color: #aaaaaa;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
}

.nav-links span {
    cursor: pointer;
    transition: color 0.3s ease;
}

/*añade un puntito para separar lo que hace*/
.nav-links span:not(:last-child)::after {
    content: "•";
    margin-left: 15px;
    color: #888;
}

/*imagenes inclinadas*/
.hero-images {
    position: relative;
    width: 100%;
    height: 600px;
}

.ferrari-frame {
    position: absolute;
    width: 320px;
    height: 450px;
    overflow: hidden;
    transform: skew(-10deg);
    border: 3px solid #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.ferrari-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: skew(10deg) scale(1.3);
}

.ferrari-yellow {
    top: 100px;
    right: 200px;
    z-index: 1;
}

.ferrari-red {
    top: 0;
    right: 0;
    z-index: 2;
}

/*ABOUT ME*/
.about-section {
    text-align: center;
}

.video-showcase {
    width: 100%;
    max-width: 900px;
    height: 450px;
    margin: 0 auto;
    margin-bottom: 20px;
    background-image: url('assets/epica_1.webp');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-showcase::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    border-radius: 20px;
}

.video-showcase:hover {
    transform: scale(1.02);
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
    z-index: 2;
}

.video-showcase p {
    z-index: 2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*SERVICES*/
.services-section {
    background-image: url('assets/cascada.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 15, 15, 0.85);
}

.services-section h2, .services-grid {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 30px;
    align-items: center;
}

.services-perks p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.service-name {
    font-size: 1.1rem;
    font-weight: 300;
}

.service-label {
    font-size: 0.9rem;
    font-weight: 300;
    color: #aaaaaa;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.btn-reservar {
    padding: 15px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: auto;
    text-decoration: none;
    text-align: center;
    display: block;
}

.btn-reservar:hover {
    background: #dddddd;
}

/* DISEÑO DEL CARRUSEL */
#carousel img {
    height: 350px;
    width: auto;
    object-fit: cover;
    border-radius: 10px;
    cursor: zoom-in;
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.1);
}

/* flechas carousel */
.flipster__button {
    color: #ffffff !important;
}

/* DISEÑO DEL MODAL DE FOTO */
.modal-content-img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 5px 40px rgba(0,0,0,0.8);
    object-fit: contain;
}

/*VIDEOS PORTFOLIO*/
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.videos-section h2 {
    margin-top: 40px;
    padding-top: 40px;
    padding-left: 0;
    text-align: left;
}

.videos-section {
    margin-top: -50px;
}

.video-thumbnail {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    border-radius: 15px;
}

.video-thumbnail:hover {
    transform: translateY(-5px);
}

.video-thumbnail .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    font-size: 18px;
    margin: 0;
}

.video-thumbnail p {
    position: relative;
    z-index: 2;
    font-weight: 700;
    letter-spacing: 1px;
}

/*OPINIONES*/
.opinions-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.opinion-text blockquote {
    font-size: 1.8rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 30px;
}

.opinion-text cite {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #aaaaaa;
}

.opinion-gallery {
    display: grid;
    gap: 20px;
}

.opinion-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

/*CONTACTO Y FOOTER*/
.contact-section {
    margin-top: 25px;
    background-image: url('assets/espaldas.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, #0a0a0a, rgba(10,10,10,0.8));
}

.contact-section h2, .contact-layout, .footer-data {
    position: relative;
    z-index: 2;
}

.contact-section h2 {
    text-align: left;
    margin-bottom: 20px;
}

.contact-layout {
    max-width: 600px;
    margin-bottom: 80px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #ffffff;
}

.btn-enviar {
    width: 100%;
    padding: 15px;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-enviar:hover {
    background: #ffffff;
    color: #000000;
}

.footer-data {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    font-size: 0.9rem;
}

.footer-data strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

/*ICON SOCIAL*/
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.icono-social {
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.3s ease;
}

.social-icons a {
    color: #ffffff;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover .icono-social {
    transform: translateY(-3px);
}

/*FONDOS CONCRETOS*/
.tarjeta-anillos .card-img {
    background-image: url('assets/anillos.webp');
}

.tarjeta-moto .card-img {
    background-image: url('assets/motoArena_1.webp');
}

.miniatura-hyundai {
    background-image: url('assets/hyundai.webp');
}

.miniatura-alfa {
    background-image: url('assets/alfaRomeo.webp');
}

.miniatura-yamaha {
    background-image: url('assets/motoMovimiento.webp');
}


/*MODAL DE VÍDEO (Pop-up)*/
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 5px 40px rgba(0,0,0,0.8);
}

.close-modal {
    position: absolute;
    top: -45px;
    right: 0;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ffd700;
}

/* BANNER DE COOKIES */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Oculto por defecto abajo del todo */
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    color: white;
    padding: 25px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner p {
    margin: 0 0 20px 0;
    font-size: 0.85rem;
    max-width: 900px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-banner a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.btn-rechazar {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-rechazar:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#caja-privacidad {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    text-align: left;
    font-size: 0.85rem;
}

#caja-privacidad input {
    width: auto !important;
    margin-top: 3px;
    cursor: pointer;
}

#caja-privacidad label {
    cursor: pointer;
    line-height: 1.4;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 20px 50px;
    }
    .cookie-banner p {
        margin: 0 20px 0 0;
    }
}


/*MEDIA QUERIES*/
@media (max-width: 992px) {
    .hero-text h1 { font-size: 4rem; }
    .hero-images { height: 400px; }
    .ferrari-frame { width: 250px; height: 350px; }
    .ferrari-yellow { right: 100px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .services-perks { grid-column: span 2; text-align: center; display: flex; justify-content: center; gap: 30px;}
}

@media (max-width: 768px) {
    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    section h2 { font-size: 2.5rem; text-align: center; }

    .hero-layout { grid-template-columns: 1fr; text-align: center; gap: 60px; }
    .logo { margin: 0 auto 30px auto; }
    .nav-links {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    .nav-links span:not(:last-child)::after {
        display: none;
    }
    .hero-images {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
        margin-top: 0;
        margin-bottom: 20px;
    }
    .ferrari-yellow { right: auto; left: 10%; }
    .ferrari-red { right: 10%; }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
        margin: 0 auto 60px auto;
    }
    .container {
        padding: 0 20px;
    }
    .services-perks { grid-column: span 1; flex-direction: column; gap: 10px; }

    #carousel img {
        height: 250px;
    }

    .videos-grid { grid-template-columns: 1fr; }
    .videos-section h2 {
        margin-top: 0;
        padding-top: 0;
        padding-left: 0;
        text-align: left;
    }
    .opinions-layout { grid-template-columns: 1fr; text-align: center; }

    .footer-data {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-data strong {
        text-align: center;
        margin-bottom: 5px;
    }
    .contact-section h2 { text-align: center; }
    .contact-layout { margin: 0 auto 50px auto; }
}