/* styles.css */
:root {
    /* Color Palette - Premium Nautical */
    --clr-primary: #0A192F;
    /* Deep Navy */
    --clr-primary-light: #112240;
    --clr-accent: #C5A880;
    /* Elegant Sand/Gold */
    --clr-accent-hover: #D8BD98;
    --clr-white: #FFFFFF;
    --clr-gray-100: #F8F9FA;
    --clr-gray-200: #E9ECEF;
    --clr-gray-800: #343A40;
    --clr-text: #333333;
    --clr-text-light: #6C757D;

    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Variables */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 32px rgba(10, 25, 47, 0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* CSS Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--clr-text);
    background-color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Classes */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--clr-primary);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
}

/* Base Utilities */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    font-family: var(--font-sans);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-primary);
    border-color: var(--clr-accent);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    border-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-white);
    border-color: var(--clr-white);
}

.btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--clr-primary);
    color: var(--clr-gray-200);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.top-bar a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-white);
}

.top-bar a:hover {
    color: var(--clr-accent);
}

/* Header Styles */
.header {
    position: fixed;
    top: 36px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    top: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 100px;
    /* Tamaño ajustable según el logo */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.header.scrolled .logo-img {
    height: 80px;
    /* Se hace un poco más pequeño al hacer scroll */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a:not(.btn) {
    color: var(--clr-white);
    font-weight: 500;
    position: relative;
    opacity: 0.9;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-accent);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    opacity: 1;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.lang-toggle {
    margin-left: 1rem;
    padding: 0.5rem 0.8rem;
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    color: var(--clr-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('Hero.jpg');
    /* Boat repair image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.6) 50%, rgba(10, 25, 47, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--clr-white);
    padding-top: 80px;
}

.hero-brand-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--clr-white);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    display: block;
    font-family: var(--font-sans);
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: var(--clr-gray-200);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-actions {
        flex-direction: column;
    }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--clr-gray-100);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    color: var(--clr-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--clr-white);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-primary);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: translateY(0);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(197, 168, 128, 0.1);
    color: var(--clr-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-media {
    width: 100%;
    height: 180px;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-card:hover .service-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--clr-white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--clr-primary);
    transition: var(--transition);
}

.service-card:hover h3,
.service-card:hover p {
    color: var(--clr-white);
}

.service-card p {
    color: var(--clr-text-light);
    font-size: 0.95rem;
    transition: var(--transition);
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h2 {
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--clr-text-light);
    font-size: 1.05rem;
}

.features-list {
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.features-list i {
    color: var(--clr-accent);
    background-color: rgba(197, 168, 128, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    position: relative;
}

.contact .section-title {
    color: var(--clr-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card i {
    font-size: 2rem;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

.contact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--clr-white);
}

.contact-card p,
.contact-card a {
    color: var(--clr-gray-200);
}

.contact-card a:hover {
    color: var(--clr-accent);
}

.domain-highlight {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-accent);
    text-decoration: underline;
}

.contact-form {
    background-color: var(--clr-white);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--clr-gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.file-upload-group {
    background-color: var(--clr-gray-100);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--clr-gray-200);
}

.file-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--clr-primary);
}

.file-input {
    padding: 0.5rem;
    background-color: var(--clr-white);
    border: 1px solid var(--clr-gray-200);
}

.file-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--clr-text-light);
}

.file-error {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #e74c3c;
    font-weight: 500;
}

.contact-form .btn {
    width: 100%;
}

/* Map Section */
.map-section {
    width: 100%;
    display: flex;
    /* Removes inline spacing */
}

.map-section iframe {
    width: 100%;
    min-height: 450px;
}

/* Footer Additions */
.footer {
    background-color: var(--clr-primary-light);
    color: var(--clr-gray-200);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: var(--clr-white);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: var(--clr-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--clr-text-light);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--clr-primary);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--clr-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

/* Prevent scrolling while loading */
body.no-scroll {
    overflow: hidden;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    width: 250px;
    max-width: 80vw;
    animation: pulseFloat 3s infinite ease-in-out;
    filter: drop-shadow(0 0 20px rgba(197, 168, 128, 0.3));
}

@keyframes pulseFloat {
    0% {
        transform: translateY(0px) scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-10px) scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 0 25px rgba(197, 168, 128, 0.6));
    }

    100% {
        transform: translateY(0px) scale(0.95);
        opacity: 0.8;
    }
}

/* Custom Cursor */
body {
    cursor: none;
    /* Hide default cursor */
}

a,
button,
.btn,
input,
textarea {
    cursor: none;
    /* Hide default cursor on interactables */
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--clr-accent);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(197, 168, 128, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease-out, height 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 168, 128, 0.1);
    border-color: var(--clr-accent);
}

.cursor-dot.hover {
    transform: translate(-50%, -50%) scale(0.5);
}

/* Fallback for touch devices where we don't want the custom cursor */
@media (hover: none) and (pointer: coarse) {

    body,
    a,
    button,
    .btn,
    input,
    textarea {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}