/* =========================================
   VARIABLES Y ESTILOS BASE
   ========================================= */
:root {
    --primary-blue: #0a2342;
    --gold-details: #caad4f;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --whatsapp-green: #25d366;
}

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

html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Roboto', sans-serif; 
    background: var(--white); 
    line-height: 1.6;
    color: #333;
}

/* =========================================
   NAVEGACIÓN
   ========================================= */
.navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 20px 10%; 
    background: var(--primary-blue); 
    color: white;
    position: sticky; 
    top: 0; 
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.6rem; 
    font-weight: bold; 
}

.logo span { 
    color: var(--gold-details); 
}

.nav-links { 
    list-style: none; 
    display: flex; 
    align-items: center;
}

.nav-links li { 
    margin-left: 25px; 
}

.nav-links a { 
    color: white; 
    text-decoration: none; 
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--gold-details);
}

.btn-contact { 
    background: var(--gold-details); 
    padding: 8px 18px; 
    border-radius: 4px; 
    color: var(--primary-blue) !important; 
    font-weight: bold; 
}

.btn-contact:hover {
    background: var(--white);
}

/* =========================================
   HERO (ENCABEZADO PRINCIPAL)
   ========================================= */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(10, 35, 66, 0.65), rgba(10, 35, 66, 0.65)), 
                url('../img/barco.jpg') center/cover no-repeat;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: white; 
    text-align: center;
}

.hero h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 4rem; 
    margin-bottom: 10px; 
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.btn-main { 
    display: inline-block; 
    margin-top: 30px; 
    padding: 15px 40px; 
    background: var(--white); 
    color: var(--primary-blue); 
    text-decoration: none; 
    font-weight: bold; 
    transition: 0.3s;
}

.btn-main:hover {
    background: var(--gold-details);
    color: white;
}

/* =========================================
   SECCIÓN DE PRODUCTOS
   ========================================= */
.products { 
    padding: 80px 10%; 
    background: var(--light-gray); 
}

.section-title { 
    text-align: center; 
    font-family: 'Playfair Display', serif; 
    font-size: 2.5rem; 
    margin-bottom: 10px; 
}

.section-subtitle { 
    text-align: center; 
    color: #666; 
    margin-bottom: 50px; 
}

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.product-card { 
    background: white; 
    padding: 20px; 
    border-radius: 10px; 
    text-align: center; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    transition: transform 0.3s ease;
}

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

/* Contenedor de Imagen y Slider */
.img-container { 
    height: 240px; 
    overflow: hidden; 
    position: relative; 
    border-radius: 5px; 
    margin-bottom: 15px; 
    background: #eee; 
}

.slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0; 
    transition: opacity 0.5s; 
}

.slide.active { 
    opacity: 1; 
    position: relative; 
}

.img-container video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* Flechas del Slider */
.nav { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0,0,0,0.5); 
    color: white; 
    border: none; 
    padding: 12px; 
    cursor: pointer; 
    z-index: 5; 
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev { left: 10px; } 
.next { right: 10px; }

.btn-price { 
    display: block; 
    margin-top: 15px; 
    padding: 12px; 
    border: 2px solid var(--primary-blue); 
    color: var(--primary-blue); 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 5px; 
    transition: 0.3s;
}

.btn-price:hover { 
    background: var(--primary-blue); 
    color: white; 
}

/* =========================================
   CONTACTO FINAL Y FOOTER
   ========================================= */
.final-contact { 
    padding: 80px 10%; 
    text-align: center; 
}

.contact-box { 
    max-width: 600px; 
    margin: 0 auto; 
    border: 2px solid var(--gold-details); 
    padding: 40px; 
    border-radius: 10px; 
}

.btn-whatsapp-large { 
    display: inline-block; 
    margin-top: 20px; 
    padding: 15px 30px; 
    background: var(--whatsapp-green); 
    color: white; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 5px; 
    transition: 0.3s;
}

.btn-whatsapp-large:hover {
    background: #1eb954;
    transform: scale(1.05);
}

/* Botón flotante WhatsApp */
.whatsapp-float-left {
    position: fixed; 
    bottom: 30px; 
    left: 30px; 
    width: 60px; 
    height: 60px; 
    background: var(--whatsapp-green); 
    border-radius: 50%;
    display: flex; 
    justify-content: center; 
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    z-index: 1000;
    transition: 0.3s;
}

.whatsapp-float-left:hover {
    transform: scale(1.1);
}

.whatsapp-float-left img { 
    width: 35px; 
}

footer { 
    background: var(--primary-blue); 
    color: white; 
    text-align: center; 
    padding: 30px; 
}

/* =========================================
   DISEÑO RESPONSIVO (MOBILE FIRST)
   ========================================= */

/* Ajustes para tablets (menor a 992px) */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .products, .final-contact { padding: 60px 5%; }
}

/* Ajustes para móviles (menor a 768px) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 5%;
    }

    .logo { margin-bottom: 15px; }

    .nav-links {
        width: 100%;
        justify-content: space-around;
        padding-bottom: 10px;
    }

    .nav-links li { margin: 0; }

    .hero { height: 60vh; }
    
    .hero h1 { 
        font-size: 2.2rem; 
        padding: 0 15px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Un producto por fila */
    }

    .section-title { font-size: 2rem; }

    .contact-box {
        padding: 30px 15px;
    }

    .whatsapp-float-left {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
}

/* Ajustes para móviles muy pequeños (menor a 480px) */
@media (max-width: 480px) {
    .nav-links {
        font-size: 0.85rem;
    }
    
    .btn-contact {
        padding: 5px 10px;
    }

    .btn-whatsapp-large {
        width: 100%;
    }
}