@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --title-font-family: "Lora", serif; 
    --base-font-family: 'Montserrat', sans-serif;

    --primary-color: #004682;
    --secondary-color: #BB0000;
    --tertiary-color: #34CBEE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--base-font-family);
    font-optical-sizing: auto;
    font-style: normal;
    background-color: lightgray;
    color: #333;
    padding-top: 80px; /* Espacio para navbar fijo */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--title-font-family);
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 900;
}

/*-------------------------------------------------------------------------------*/
/*----- NAVBAR SECTION -----*/
#my-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
}

.navbar-logo-box img {
    height: 50px;
}

.navbar-menu-box {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.navbar-menu-box ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.navbar-menu-box a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.navbar-menu-box a:hover {
    color: var(--primary-color);
}

.navbar-menu-box a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.navbar-menu-box a:hover::after {
    width: 100%;
}

.navbar-toggle-box {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.navbar-toggle-box span {
    width: 30px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar-toggle-box {
        display: flex;
    }

    .navbar-menu-box {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        transition: left 0.4s ease;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .navbar-menu-box.active {
        left: 0;
    }

    .navbar-menu-box ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .navbar-menu-box ul li {
        width: 80%;
        text-align: center;
        border-bottom: 1px solid lightgray;
        padding-bottom: 10px;
    }

    .navbar-menu-box ul li:last-child {
        border-bottom: none;
    }

    .navbar-menu-box a {
        font-size: 1.2rem;
    }
}

/*-------------------------------------------------------------------------------*/
/*----- CAROUSEL SECTION -----*/
#my-carousel {
    position: relative;
    width: 100vw;
    height: calc(100vh - 80px);
    overflow: hidden;
    flex-grow: 1;
}

.carousel-box {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 90%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: white;
}

.slide-content p {
    font-size: 1.8rem;
    margin-bottom: 40px;
    max-width: 800px;
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.cta-primary:hover { 
    background-color: #990000; 
}

.cta-secondary {
    background-color: rgba(255,255,255,0.2);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid white;
    transition: background 0.3s;
}

.cta-secondary:hover { 
    background-color: rgba(255,255,255,0.4); 
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    width: 60px; height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-prev:hover, .carousel-next:hover { 
    background: rgba(0,0,0,0.6); 
}

.carousel-prev { left: 30px; }
.carousel-next { right: 30px; }

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px; height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active { 
    background: white; 
}

@media (max-width: 768px) {
    .slide-content h1 { font-size: 3rem; }
    .slide-content p { font-size: 1.4rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
}

/*-------------------------------------------------------------------------------*/
/*----- FEATURED DESTINATIONS SECTION -----*/

.featured-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.featured-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.featured-title {
    font-size: 3.5rem;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.featured-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-card {
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.featured-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.featured-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    height: 100%;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.featured-nombre {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: var(--title-font-family);
}

.featured-descripcion {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.featured-boton {
    align-self: flex-start;
    background-color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.featured-boton:hover {
    background-color: #990000;
}

@media (max-width: 992px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-title { font-size: 3rem; }
}

@media (max-width: 576px) {
    .featured-grid { grid-template-columns: 1fr; }
    .featured-title { font-size: 2.5rem; }
    .featured-card { height: 320px; }
    .featured-overlay { padding: 20px; }
}

/*-------------------------------------------------------------------------------*/
/*----- CRUCEROS & PAQUETES SECTIONS -----*/

/*-------------------------------------------------------------------------------*/
/*----- CRUCEROS & PAQUETES SECTIONS -----*/

.offers-section {
    padding: 80px 20px;
}

.cruises-section { background-color: #f0f8ff; }
.packages-section { background-color: #fff8f0; }

.offers-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.offers-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.offers-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 5px;
    background-color: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.offers-subtitle {
    font-size: 1.3rem;
    margin-bottom: 60px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.offer-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    display: flex;                    /* ← Clave 1: flex en la card */
    flex-direction: column;           /* ← Clave 2: columna */
    height: 580px;                    /* ← Altura fija para uniformidad (ajusta si quieres) */
}

.offer-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.offer-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.offer-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;                   /* ← Imagen no se encoge */
}

.offer-content {
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;                     /* ← Crece para llenar espacio */
    justify-content: space-between;   /* ← Botón al fondo */
}

.offer-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.offer-duration {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 8px 0;
}

.offer-price {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 900;
    margin: 15px 0;
}

.offer-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
    flex-grow: 1;                     /* ← Descripción ocupa espacio disponible */
}

.offer-boton {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s;
    align-self: flex-start;
    margin-top: 20px;                 /* ← Espacio consistente arriba del botón */
}

.offer-boton:hover {
    background-color: #003366;
}

/* Responsive */
@media (max-width: 1200px) {
    .offers-grid { grid-template-columns: repeat(3, 1fr); }
    .offer-card { height: 560px; }
}

@media (max-width: 992px) {
    .offers-grid { grid-template-columns: repeat(2, 1fr); }
    .offers-title { font-size: 3rem; }
    .offer-card { height: 600px; }
}

@media (max-width: 576px) {
    .offers-grid { grid-template-columns: 1fr; }
    .offers-title { font-size: 2.5rem; }
    .offer-card { height: auto; min-height: 580px; }
    .offer-content { 
        text-align: center; 
    }
    .offer-boton { 
        align-self: center;
        width: 80%; 
    }
}
/*-------------------------------------------------------------------------------*/
/*----- FOOTER SECTION -----*/

.site-footer {
    background-color: #1a1a1a;
    color: #ddd;
    margin-top: auto;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--tertiary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.footer-about p {
    line-height: 1.6;
    max-width: 300px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.branch {
    margin-bottom: 25px;
}

.branch strong {
    display: block;
    margin-bottom: 8px;
    color: white;
}

.branch a {
    color: var(--tertiary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--tertiary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.3rem;
    border-radius: 50%;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-copyright {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #999;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about p {
        max-width: none;
    }
    .social-icons {
        justify-content: center;
    }
}

/*-------------------------------------------------------------------------------*/
/*----- BOTÓN FLOTANTE DE WHATSAPP (COMPONENTE) -----*/


.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Verde oficial WhatsApp */
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white !important; /* ← Fuerza el color blanco en el enlace */
    text-decoration: none;
}

.whatsapp-float i {
    color: white; /* ← Doble seguridad: color blanco directo en el icono */
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float:hover a,
.whatsapp-float:hover i {
    color: white !important; /* ← Mantiene blanco incluso en hover */
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}


/*-------------------------------------------------------------------------------*/
/*----- BOTÓN TRIGGER Y MODAL DE CONTACTO -----*/

.contact-trigger {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.contact-trigger button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-trigger button:hover {
    background-color: #003366;
    transform: translateY(-3px);
}

.contact-trigger i {
    font-size: 1.3rem;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.modal-content > p {
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#contact-form input,
#contact-form textarea {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--base-font-family);
    font-size: 1rem;
    transition: border 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 70, 130, 0.1);
}

.submit-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #990000;
}

.form-message {
    margin-top: 20px;
    font-weight: 600;
    min-height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-trigger {
        bottom: 100px; /* Arriba del botón WhatsApp */
        left: 20px;
    }
    .contact-trigger span {
        display: none; /* Solo icono en móvil */
    }
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
}

/*-------------------------------------------------------------------------------*/
/*----- SECCIÓN TESTIMONIOS CARRUSEL -----*/

.testimonials-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-title {
    font-size: 3.5rem;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.testimonials-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 5px;
    background-color: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.testimonials-slides {
    display: flex;
    transition: transform 0.6s ease;
}

.testimonial-card {
    flex: 0 0 33.333%;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--tertiary-color);
}

.testimonial-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #333;
}

.testimonial-destino {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

.testimonials-prev,
.testimonials-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.testimonials-prev:hover,
.testimonials-next:hover {
    background: var(--primary-color);
}

.testimonials-prev { left: 10px; }
.testimonials-next { right: 10px; }

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonials-dots .dot {
    width: 12px;
    height: 12px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.testimonials-dots .dot.active {
    background: var(--primary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .testimonials-title { font-size: 2.8rem; }
    .testimonial-card {
        flex: 0 0 100%;
        margin: 0 10px;
    }
    .testimonials-prev,
    .testimonials-next {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
}