/* --- FUENTES --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- VARIABLES --- */
:root {
    --primary-color: #0a4a6b; /* Un azul marino */
    --secondary-color: #ff6600; /* Naranja para los detalles */
    --white-color: #ffffff;
    --dark-color: #222222;
    --font-family: 'Poppins', sans-serif;
    --header-height: 160px; /* Altura del header fijo */
}

/* --- RESET Y ESTILOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--dark-color);
    background-image: url('img/fondoweb.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

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

.section {
    max-width: 1200px; /* Ancho máximo para el contenido */
    margin: 20px auto; /* Centra la sección horizontalmente */
    padding: 60px 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.section__subtitle {
    text-align: center;
    font-size: 1rem;
    color: #666;
    max-width: 800px;
    margin: -2rem auto 3rem auto;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e65c00;
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 30px;
}

.header__logo img {
    height: 150px;
}

.nav__list {
    display: flex;
}

.nav__item {
    margin: 0 20px;
}

.nav__link {
    font-weight: 600;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--secondary-color);
}

.header__social {
    display: flex;
    align-items: center;
}

.social__link {
    color: var(--secondary-color); /* Color naranja para redes sociales */
    font-size: 1.2rem;
    margin-left: 20px;
    transition: color 0.3s;
}

.social__link:hover {
    color: var(--primary-color);
}

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

main {
    padding-top: var(--header-height); /* Evita que el header tape el contenido */
}

/* Offset para anclas: evita que los títulos queden ocultos bajo el header fijo */
[id] {
    scroll-margin-top: calc(var(--header-height) + 10px);
}

/* --- HERO SECTION --- */
#hero {
    background-image: url('img/cullera.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 90vh;
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin: 20px auto; /* Centra la sección */
    max-width: 1200px; /* Iguala el ancho con otras secciones */
    border-radius: 10px; /* Añade bordes redondeados */
}

.hero__content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero__content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* --- EMBARCACIONES --- */
.boat {
    max-width: 900px;
    margin: auto;
}

.boat__name {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.boat__details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.boat__details span {
    background-color: #f2f2f2;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1rem;
    color: var(--dark-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.boat__details span i {
    color: var(--secondary-color);
}

.boat__pricing {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.price-card {
    background-color: var(--white-color);
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.price-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.price-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.price-card .time {
    font-size: 0.9rem;
    color: #777;
}

.fuel-note {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
    font-style: italic;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.fuel-note i {
    color: var(--secondary-color);
}

.boat-gallery {
    position: relative; /* Clave para contener los botones */
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden; /* Oculta las diapositivas adyacentes */
}

/* Ocultar flechas por defecto y mostrarlas al pasar el ratón */
.boat-gallery .swiper-button-next,
.boat-gallery .swiper-button-prev {
    color: var(--white-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.boat-gallery:hover .swiper-button-next,
.boat-gallery:hover .swiper-button-prev {
    opacity: 1;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boat__details {
    text-align: left;
    font-size: 1.1rem;
}

/* --- EXPERIENCIAS --- */
.experiences__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.experience-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.experience-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.experience-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- FORMULARIO DE CONTACTO --- */
.contact-form {
    max-width: 600px;
    margin: auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
}

/* --- UBICACIÓN Y CONTACTO --- */
.location__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-top: 40px;
}

.location__details h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.location__details p {
    margin-bottom: 20px;
}

.location__details ul {
    list-style: none;
    padding: 0;
}

.location__details ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.location__details ul li i {
    color: var(--secondary-color);
    margin-right: 15px;
    width: 20px; /* Alinea los iconos */
}

.location__map iframe {
    border-radius: 10px;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 30px 20px;
    text-align: center;
}

.footer__container {
    max-width: 1200px;
    margin: auto;
}

.footer__links a {
    color: var(--white-color);
    margin: 0 15px;
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--secondary-color);
}

.footer__copyright {
    margin-top: 20px;
    font-size: 0.9rem;
}

/* --- HONEYPOT ACCESIBLE --- */
.hidden-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* --- COOKIE CONSENT --- */
.cookie-consent {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2147483647; /* Max z-index para quedar por encima de todo */
    background: rgba(34,34,34,0.95);
    color: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    pointer-events: auto !important;
}
.cookie-consent[hidden] { display: none !important; }
.cookie-consent, .cookie-consent * { pointer-events: auto !important; }
.cookie-consent .cookie-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    pointer-events: auto !important;
}
.cookie-consent a { color: #fff; text-decoration: underline; }
.cookie-consent .btn { background: var(--secondary-color); border: 0; cursor: pointer; position: relative; z-index: 2147483647 !important; pointer-events: auto !important; }
.cookie-consent .btn:hover { filter: brightness(0.95); }
.cookie-consent .btn--secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    :root { 
        --header-height: 100px; /* Altura menor en móvil */
    }
    .header__container {
        padding: 0 20px;
    }

    .nav__toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white-color);
        transition: right 0.4s;
    }

    .nav.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
    }

    .nav__item {
        margin: 20px 0;
    }

    .header__social {
        display: flex; /* Mostrar iconos en móvil */
        gap: 12px;
    }
    .social__link { font-size: 1.1rem; margin-left: 12px; }
    .header__logo img { height: 90px; }

    .hero__content h1 {
        font-size: 2.5rem;
    }

    .hero__content p {
        font-size: 1.2rem;
    }

    .section__title {
        font-size: 2rem;
    }

    .location__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .location__details {
        text-align: center;
    }
}
