/* ======== CONFIGURACIÓN GLOBAL Y VARIABLES ======== */
:root {
    --color-gold: #C7A14A;
    --color-white: #FFFFFF;
    --color-blue: #0C1A3A;
    --font-title: 'Montserrat', sans-serif;
    --font-text: 'Poppins', sans-serif;
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-text);
    background-color: var(--color-white);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* ======== GESTIÓN DE IDIOMAS ======== */
.lang {
    display: none;
}

body.lang-es .lang.es,
body.lang-en .lang.en,
body.lang-fr .lang.fr {
    display: inline;
}

.btn .lang,
.btn-pc-book .lang,
.btn-pc-text .lang {
    display: none;
}

body.lang-es .btn .lang.es,
body.lang-es .btn-pc-book .lang.es,
body.lang-es .btn-pc-text .lang.es,
body.lang-en .btn .lang.en,
body.lang-en .btn-pc-book .lang.en,
body.lang-en .btn-pc-text .lang.en,
body.lang-fr .btn .lang.fr,
body.lang-fr .btn-pc-book .lang.fr,
body.lang-fr .btn-pc-text .lang.fr {
    display: inline-block;
}

/* ======== CABECERA Y NAVEGACIÓN (HÍBRIDA) ======== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-speed);
}

.main-header.scrolled {
    background-color: var(--color-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    position: relative;
    transition: padding var(--transition-speed);
}

.main-header.scrolled .main-nav {
    padding: 10px 20px;
}

.logo-container .logo {
    height: 60px;
    opacity: 0;
    transform: translateY(-10px);
    transition: height var(--transition-speed), opacity var(--transition-speed), transform var(--transition-speed);
}

.main-header.scrolled .logo-container .logo {
    height: 60px;
    opacity: 1;
    transform: translateY(0);
}

.nav-links-left,
.nav-links-right,
.nav-right-group {
    display: flex;
    align-items: center;
}

.nav-links-left {
    position: absolute;
    left: 20px;
}

.nav-right-group {
    position: absolute;
    right: 20px;
}

.main-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    margin: 0 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    font-size: 1.5rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.lang-flag {
    display: block;
    width: 30px;
    height: 22px;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-speed);
    opacity: 0.7;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lang-flag:hover,
.lang-flag.active {
    opacity: 1;
    transform: scale(1.1);
}

.lang-flag.active {
    box-shadow: 0 0 0 2px var(--color-gold);
}

.lang-flag svg {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    display: block;
}

/* ======== MENÚ OVERLAY (PARA MÓVIL) ======== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 26, 58, 0.98);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
}

.nav-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-content {
    text-align: center;
}

.nav-overlay-content a {
    display: block;
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 2.5rem;
    padding: 15px;
}

.nav-overlay-content a:hover {
    color: var(--color-gold);
}

.nav-overlay-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 3rem;
    cursor: pointer;
}

/* ======== SECCIÓN HERO ======== */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 26, 58, 0.6);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.hero-logo {
    max-height: 120px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* ======== BOTONES ======== */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: all var(--transition-speed);
    display: inline-block;
    border: 2px solid transparent;
    text-decoration: none;
    margin: 0 10px;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-blue);
}

.btn-tertiary {
    color: var(--color-blue);
    border-color: var(--color-gold);
    background: transparent;
}

.btn-tertiary:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

/* ======== ESTILOS GENERALES DE SECCIÓN Y CONTENIDO ======== */
.content-section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.bg-dark {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.bg-dark .section-title,
.bg-dark .section-subtitle {
    color: var(--color-white);
}

.section-title {
    text-align: center;
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--color-blue);
    margin-bottom: 50px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.image-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

.quote {
    margin-top: 20px;
    padding-left: 20px;
    border-left: 4px solid var(--color-gold);
    font-style: italic;
}

.parallax-section {
    background-image: url('img/airport-transfers-barcelona-21.jpg');
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.parallax-content {
    background-color: rgba(12, 26, 58, 0.7);
    padding: 40px;
    border-radius: 10px;
}

.parallax-content h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.fleet-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--color-white);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .btn-tertiary {
    margin-top: auto;
}

.service-card i {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.service-card h4 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- ESTILO IFRAME AUTOAJUSTABLE --- */
.nomada-iframe-container {
    position: relative;
    width: 100%;
    height: 850px; /* Esta altura inicial actuará como un placeholder mientras carga */
    min-height: 500px;
    border: 1px solid var(--color-gold);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* La propiedad 'transition' ha sido eliminada para un ajuste instantáneo */
}

.nomada-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.fleet-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.fleet-card img {
    width: 100%;
    display: block;
    height: 250px;
    object-fit: cover;
}

.fleet-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(12, 26, 58, 0.9), transparent);
    color: var(--color-white);
    padding: 30px 20px 20px;
}

.fleet-info h5 {
    font-size: 1.4rem;
    color: var(--color-gold);
}

.guarantees-section {
    background-color: var(--color-gold);
    padding: 30px 0;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    color: var(--color-blue);
    text-align: center;
    gap: 20px;
}

.guarantee-item i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.guarantee-item .lang {
    display: none;
}

body.lang-es .guarantee-item .lang.es,
body.lang-en .guarantee-item .lang.en,
body.lang-fr .guarantee-item .lang.fr {
    display: block;
    font-weight: 500;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform var(--transition-speed);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.faq-answer p {
    padding: 0 20px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--color-gold);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: var(--font-text);
}

/* ======== FOOTER Y ANIMACIONES ======== */
.main-footer {
    background-color: var(--color-blue);
    color: var(--color-white);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.logo-footer {
    height: 70px;
    margin-bottom: 10px;
}

.footer-links h4,
.footer-social h4 {
    color: var(--color-gold);
    margin-bottom: 15px;
}

.footer-links a,
.footer-social a {
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--color-gold);
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
}

.footer-social a {
    font-size: 1.5rem;
    margin-right: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 20px 0;
}

.footer-bottom a {
    color: var(--color-gold);
}

.fade-in {
    animation: fadeInAnimation 1s ease-in-out forwards;
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======== BOTONES FLOTANTES ======== */
.floating-btn-container {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.floating-btn-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-whatsapp-floating,
.btn-mobile-book,
.btn-pc-book {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.btn-whatsapp-floating .btn-pc-text {
    display: none;
}

.btn-mobile-book,
.btn-pc-book {
    display: none;
}

/*
=================================================================
REGLAS RESPONSIVE - Optimizadas para todos los dispositivos
=================================================================
*/

/* --- PORTÁTILES Y TABLETS GRANDES (Hasta 1200px) --- */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.2rem;
    }
    .content-section {
        padding: 60px 0;
    }
}

/* --- TABLETS EN VERTICAL Y MÓVILES GRANDES (Hasta 992px) --- */
@media (max-width: 992px) {
    /* --- AJUSTE DE TAMAÑO PARA CABECERA MÓVIL --- */
    html {
        scroll-padding-top: 80px;
    }
    .main-nav {
        padding: 15px 20px;
    }
    .logo-container .logo,
    .main-header.scrolled .logo-container .logo {
        height: 40px;
    }
    /* --- HEADER MÓVIL --- */
    .nav-links-left,
    .nav-links-right {
        display: none;
    }
    .main-nav {
        justify-content: space-between;
    }
    .mobile-menu-btn {
        display: block;
    }
    .logo-container {
        position: static;
        transform: none;
    }
    .nav-right-group {
        position: static;
    }
    .language-selector {
        gap: 8px;
        margin-left: 0;
    }
    .lang-flag {
        width: 24px;
        height: 18px;
    }
    /* --- BOTONES FLOTANTES MÓVIL --- */
    .btn-mobile-book {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 85px;
        right: 20px;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        background-color: var(--color-gold);
        color: var(--color-white);
        font-size: 1.6rem;
    }
    .btn-whatsapp-floating {
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        background-color: #25D366;
        color: var(--color-white);
        font-size: 1.8rem;
    }
    /* --- OTROS AJUSTES GENERALES --- */
    .nav-overlay-content a {
        font-size: 1.8rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- MÓVILES (Hasta 768px) --- */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    .hero-logo {
        max-height: 80px;
    }
    .section-title {
        font-size: 2rem;
    }
    .grid-2,
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    .image-content {
        margin-top: 30px;
    }
    .footer-content {
        text-align: center;
    }
    .parallax-section {
        background-attachment: scroll;
    }
}

/* --- BOTONES FLOTANTES SOLO EN ESCRITORIO --- */
@media (min-width: 993px) {
    .btn-pc-book {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        bottom: 95px;
        right: 20px;
        background-color: var(--color-gold);
        color: var(--color-white);
        padding: 12px 25px;
        border-radius: 50px;
        font-weight: 500;
        transition: transform var(--transition-speed);
        white-space: nowrap;
    }
    .btn-whatsapp-floating {
        position: fixed;
        display: flex;
        align-items: center;
        gap: 10px;
        bottom: 20px;
        right: 20px;
        width: auto;
        height: auto;
        border-radius: 50px;
        background-color: #25D366;
        color: var(--color-white);
        padding: 12px 25px;
        font-size: 1rem;
        transition: transform var(--transition-speed);
        white-space: nowrap;
    }
    .btn-pc-book:hover,
    .btn-whatsapp-floating:hover {
        transform: scale(1.05);
    }
    .btn-pc-book i {
        font-size: 1.2rem;
    }
    .btn-whatsapp-floating i {
        font-size: 1.8rem;
    }
    .btn-whatsapp-floating .btn-pc-text {
        display: inline;
        font-weight: 500;
    }
}