html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden; /* Bloquea el scroll horizontal */
}

* {
    box-sizing: border-box;
}

body {
    max-width: 100%;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.top-wrapper {
    background: #1c1c3c url('header-texture.jpg') repeat;
    color: white;
    padding: 10px 0 0 0;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    flex-wrap: wrap;
}

.top-bar-left img {
    height: 80px;
}

.top-bar-right a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
}

header {
    text-align: center;
    padding: 10px 0;
}

    header img {
        height: 120px;
    }

nav {
    display: flex;
    justify-content: center;
    background-color: transparent;
    border-top: 2px solid white;
    padding: 10px 0;
    gap: 40px;
    flex-wrap: wrap;
}

    nav a {
        color: white;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        padding-bottom: 5px;
        border-bottom: 2px solid transparent;
    }

        nav a:hover {
            border-color: white;
        }

.hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.carousel-images img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .carousel-images img.active {
        opacity: 1;
        z-index: 1;
    }

.hero-text {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    z-index: 2;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.servicios-section {
    background-color: #fff;
    padding: 30px 20px;
    width: 100%;
}

    .servicios-section h2 {
        font-size: 32px;
        color: white;
        margin-bottom: 40px;
        text-align: center;
    }

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 12px;
    border-left: 4px solid #a71e22;
    min-height: 90px;
}

    .servicio-item i {
        font-size: 28px;
        color: #1c1c3c;
        margin-bottom: 8px;
    }

    .servicio-item span {
        font-size: 14px;
        color: #1c1c3c;
        font-weight: 500;
        line-height: 1.4;
    }

.btn-restaurante {
    display: block;
    margin: 40px auto 0;
    padding: 12px 24px;
    background: linear-gradient(to right, #3d85c6, #003f87);
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    text-align: center;
    width: fit-content;
}

.amenidades-section {
    padding: 60px 20px;
    background: #fff;
}

    .amenidades-section h2 {
        font-size: 32px;
        color: #1c1c3c;
        margin-bottom: 40px;
        text-align: center;
    }

.restaurante-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
    justify-content: center;
}

    .restaurante-box img.restaurant-img {
        width: 100%;
        max-width: 300px;
        border-radius: 10px;
    }

.restaurante-details {
    max-width: 500px;
    padding: 10px;
}

    .restaurante-details img {
        height: 50px;
        margin-bottom: 10px;
    }

    .restaurante-details p {
        font-size: 14px;
        color: #333;
        margin: 4px 0;
    }

footer {
    background-color: #1c1c3c;
    color: white;
    padding: 40px 20px;
    font-size: 14px;
}

    footer img {
        margin: 0 0.9px;
        height: 40px;
    }

    footer .footer-inner {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        justify-content: space-between;
    }

    footer h4 {
        color: white;
        margin-bottom: 10px;
    }

    footer ul {
        list-style: none;
        padding: 0;
        margin: 0;
        line-height: 1.8;
    }

        footer ul li a, footer p a {
            color: white;
            text-decoration: none;
        }

    footer .footer-bottom {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid #444;
        margin-top: 40px;
    }

@media (max-width: 768px) {
    .top-bar, nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-text {
        font-size: 20px;
        bottom: 10px;
        right: 10px;
    }

    .restaurante-box {
        flex-direction: column;
    }

    nav a {
        margin: 10px 0;
    }
}

.hero-reserva {
    position: absolute;
    bottom: 100px; /* altura conservada */
    right: 0px; /* pegado al borde derecho */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    z-index: 3;
    background: rgba(0, 0, 0, 0.4); /* fondo translúcido opcional */
    padding: 10px 20px;
    border-radius: 10px;
    justify-content: flex-end;
}


.reserva-box {
    background: rgba(0,0,0,0.7);
    border: 1px solid white;
    padding: 14px 18px;
    color: black;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    min-width: 150px;
    height: 75px;
    justify-content: center;
}

    .reserva-box label {
        font-size: 14px;
        color: white;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .reserva-box input[type=\"date\"] {
        background: transparent;
        border: none;
        color: black;
        font-size: 16px;
        font-weight: bold;
        outline: none;
        font-family: 'Segoe UI', sans-serif;
        width: 90%;
    }

        /* Remove native date arrow icon in some browsers */
        .reserva-box input[type=\"date\"]::-webkit-calendar-picker-indicator {
            filter: invert(1);
        }

.reserva-boton {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #1c1c3c;
    font-weight: bold;
    padding: 14px 24px;
    height: 75px;
    text-decoration: none;
    font-size: 16px;
    border: none;
    white-space: nowrap;
}

.hero {
    position: relative;
    height: 75vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.extras-marina {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    padding: 60px 20px;
    background-color: white;
    text-align: center;
}

.extra-item {
    max-width: 300px;
    color: #1c1c3c;
}

    .extra-item i {
        font-size: 60px;
        color: #003f87;
        margin-bottom: 20px;
    }

    .extra-item h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .extra-item a {
        font-style: italic;
        color: #003f87;
        text-decoration: none;
        font-size: 14px;
        display: inline-block;
    }

    .extra-item p {
        font-size: 16px;
        color: #444;
        margin: 0;
    }

main {
    padding: 10px 0;
}

.restaurants {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.restaurant {
    flex: 1 1 calc(20% - 20px);
    box-sizing: border-box;
    margin: 10px;
}

    .restaurant img {
        width: 100%; /* Ajusta el tamaño de la imagen al 100% del contenedor */
        max-width: 300px; /* Establece un ancho máximo para evitar que la imagen sea demasiado grande en dispositivos móviles */
        height: auto;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

        .restaurant img:hover {
            transform: scale(1.05);
        }

footer {
    background-color: white;
    padding: 20px 0;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .restaurant {
        flex: 1 1 calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    .restaurant {
        flex: 1 1 calc(50% - 20px);
    }

    header h1 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .restaurant {
        flex: 1 1 100%;
    }

    header h1 {
        font-size: 1.2em;
    }

        header h1 span {
            font-size: 1em;
        }
}
/* Specific styles for restaurant rows */
.restaurants .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
}

.instagram-carousel {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

.historia-marina {
    background-color: #ffffff;
    padding: 60px 20px;
}

.historia-contenido {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    gap: 40px;
}

.historia-imagen img {
    width: 100%;
    max-width: 500px;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.historia-texto {
    flex: 1;
    min-width: 280px;
    color: #1c1c3c;
}

    .historia-texto h2 {
        font-size: 32px;
        margin-bottom: 20px;
        color: #1c1c3c;
    }

    .historia-texto p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 16px;
        color: #333;
    }

@media (max-width: 768px) {
    .historia-contenido {
        flex-direction: column;
        text-align: center;
    }

    .historia-texto h2 {
        font-size: 28px;
    }
}

.btn-historia {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(to right, #3d85c6, #003f87);
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    transition: background 0.3s ease;
}

    .btn-historia:hover {
        background: linear-gradient(to right, #004a99, #002d5f);
    }

.clima-section {
    background-color: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
    color: #1c1c3c;
}

    .clima-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
        color: #1c1c3c;
    }

.clima-contenedor {
    max-width: 1000px;
    margin: 0 auto;
}

.widget-clima {
    border: 1px solid #ccc;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow-x: auto;
}
/* Modal fondo */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

/* Contenido del modal */
.modal-contenido {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 5px;
    width: 90%;
    max-width: 800px;
    font-family: 'Segoe UI', sans-serif;
    color: #092753;
    line-height: 1.6;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

/* Botón cerrar */
.cerrar {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #092753;
    cursor: pointer;
}

/* Botón historia */
.btn-historia {
    display: inline-block;
    background-color: #092753;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
}

    .btn-historia:hover {
        background-color: #133875;
    }

.blog-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.blog-header h2 {
    background-color: #B71C1C;
    color: white;
    padding: 10px 20px;
    font-size: 24px;
    margin-bottom: 20px;
    display: inline-block;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.blog-item {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

    .blog-item img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 4px;
        margin-bottom: 12px;
    }

.blog-title {
    font-size: 16px;
    color: #002855;
    font-weight: bold;
    margin-bottom: 8px;
    font-style: italic;
    text-transform: uppercase;
}

.blog-snippet {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid white;
    color: white;
    font-size: 20px;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: auto;
}

.servicios-grid, .extras-marina, .restaurants .row {
    box-sizing: border-box;
    padding: 0 10px;
}

@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        background-color: #1c1c3c;
        padding: 10px 20px;
        gap: 10px;
    }

        nav.show {
            display: flex;
        }

    .menu-toggle {
        display: block;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-bar-right {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 10px;
    }
}

.menu-toggle {
    display: none;
    background: none;
    color: white;
    font-size: 28px;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 90%;
    transform: translateX(-50%);
    z-index: 1000;
}



.top-bar-right-mobile {
    display: none;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav.menu {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: #1c1c3c;
        padding: 20px 0;
        width: 100%;
    }

        nav.menu a {
            color: white;
            text-decoration: none;
            padding: 10px 0;
        }

        nav.menu.show {
            display: flex;
        }

    .top-bar-right-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

.auto-style1 {
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.auto-style2 {
    text-decoration: underline;
}

