/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(0, 82, 156, 0.9), 
        rgba(0, 128, 255, 0.8)), 
        url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 82, 156, 0.9), rgba(0, 128, 255, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 20px;
}

.logo h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-text h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-text h3 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    margin-bottom: 15px;
    color: #FFD700;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.price-highlight {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 25px;
    margin: 25px 0;
    display: inline-block;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #FFD700;
}

.period {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Buttons */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.btn-primary.large {
    padding: 22px 45px;
    font-size: 1.2rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* WhatsApp Icon Styles */
.whatsapp-icon {
    width: 1.4rem;
    height: 1.4rem;
    margin-right: 8px;
    vertical-align: middle;
    fill: white; /* Para SVG */
    transition: all 0.3s ease;
}

.whatsapp-icon-float {
    width: 2rem;
    height: 2rem;
    fill: white; /* Para SVG */
    transition: all 0.3s ease;
}

/* Hover effects para las imágenes de WhatsApp */
.btn-primary:hover .whatsapp-icon {
    transform: scale(1.1);
}

.whatsapp-float:hover .whatsapp-icon-float {
    transform: scale(1.1);
}

/* Fallback por si la imagen no carga */
.whatsapp-icon::after,
.whatsapp-icon-float::after {
    content: "📱";
    display: none;
    font-size: inherit;
}

.whatsapp-icon[alt]:empty::after,
.whatsapp-icon-float[alt]:empty::after {
    display: inline;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: white;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Yates Section */
.yates-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 15px;
    color: #1e293b;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 60px;
}

.yacht-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.yacht-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.yacht-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.yacht-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.yacht-card:hover .yacht-image img {
    transform: scale(1.05);
}

.yacht-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.yacht-info {
    padding: 30px;
}

.yacht-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1e293b;
}

.yacht-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #475569;
}

.feature .icon {
    font-size: 1.2rem;
}

.yacht-description {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
}

.yacht-price {
    margin-bottom: 25px;
}

.yacht-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: #0ea5e9;
}

.yacht-price .period {
    font-size: 1.1rem;
    color: #64748b;
}

.btn-yacht {
    background: linear-gradient(45deg, #0ea5e9, #0284c7);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-yacht:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-info {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-info p {
    margin: 0;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-contact p,
.footer-social a {
    margin-bottom: 8px;
    opacity: 0.8;
    color: white;
    text-decoration: none;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    opacity: 0.7;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-float a {
    display: block;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: rgba(0, 82, 156, 0.1);
    transform: scale(1.1);
}

.lang-btn.active {
    background: rgba(0, 82, 156, 0.2);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        padding: 20px;
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .cta-buttons {
        width: 100%;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }
    
    .btn-secondary {
        display: none; /* Ocultar en móvil para simplificar la experiencia */
    }
    
    .yacht-card {
        margin: 20px 10px;
    }
    
    .yacht-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .yacht-info {
        padding: 20px;
    }
    
    .price-highlight {
        padding: 12px 20px;
    }
    
    .price {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .yacht-info h3 {
        font-size: 1.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
    }
    
    .hero-text h3 {
        font-size: 1.2rem;
    }
    
    .whatsapp-icon {
        width: 1.2rem;
        height: 1.2rem;
    }
    
    .whatsapp-icon-float {
        width: 1.8rem;
        height: 1.8rem;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .yacht-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        align-items: center;
    }
    
    .yacht-card.reverse {
        direction: rtl;
    }
    
    .yacht-card.reverse > * {
        direction: ltr;
    }
    
    .yacht-image {
        height: 350px;
    }
    
    .btn-secondary {
        display: inline-flex; /* Mostrar en tablet */
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .yacht-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        align-items: center;
        max-width: 1000px;
        margin: 40px auto;
    }
    
    .yacht-card.reverse {
        direction: rtl;
    }
    
    .yacht-card.reverse > * {
        direction: ltr;
    }
    
    .yacht-image {
        height: 400px;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .btn-secondary {
        display: inline-flex; /* Mostrar en desktop */
    }
    
    .contact-info {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }
}
