/* CSS Variables y Configuracion General */
:root {
    --primary-blue: #133458;
    --secondary-gold: #D99B21;
    --bg-white: #ffffff;
    --text-dark: #222222;
    --text-light: #f5f5f5;
    --font-script: 'Edwardian Script ITC', 'Great Vibes', cursive;
    --font-serif: 'Times New Roman', Times, serif;
}

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

body {
    font-family: var(--font-serif);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografía y Utilidades */
.text-blue { color: var(--primary-blue); }
.text-gold { color: var(--secondary-gold); }
.text-white { color: var(--text-light); }
.text-center { text-align: center; }
.mt-4 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 1rem; }

/* Navbar Fixed */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 90px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: #eee; /* Placeholder bg */
    border-radius: 4px;
}

.brand-title {
    font-family: var(--font-script);
    color: var(--primary-blue);
    font-size: 2.8rem;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-item {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--secondary-gold);
}

.lang-switcher {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lang-label {
    font-size: 0.8rem;
    margin-bottom: 4px;
    font-weight: bold;
}

.flags {
    display: flex;
    gap: 10px;
}

.flag-btn {
    cursor: pointer;
    width: 30px;
    transition: transform 0.2s;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.flag-btn:hover {
    transform: scale(1.1);
}

/* Page Views Logic (SPA) */
.page-view {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Inicio / Hero Video */
.video-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
    background-color: #000;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}





.hero-subtitle {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.btn-transparent {
    background: transparent;
    border: 2px solid var(--secondary-gold);
    color: var(--text-light);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: var(--font-serif);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.btn-transparent:hover {
    background: var(--secondary-gold);
    color: #fff;
}

/* Sections Structure */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.split-layout.align-center {
    align-items: center;
}

.flex-reverse {
    flex-direction: row-reverse;
}

.left-col, .right-col {
    flex: 1;
    min-width: 300px;
}

.text-block p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: justify;
}

.content-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-height: 300px;
    background: #f0f0f0;
}

.shadow-img {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.header-image-container {
    position: relative;
    width: 100%;
    height: 40vh;
    background: #111;
}

.full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.header-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

.header-overlay-text h2 {
    color: var(--secondary-gold);
    font-size: 2.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Lists */
.elegant-list {
    font-size: 1.2rem;
    padding-left: 20px;
}

.elegant-list li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.elegant-list.bulleted li::marker {
    color: var(--secondary-gold);
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--secondary-gold);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    background: #f4f4f4;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.btn-solid-blue {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: var(--font-serif);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-solid-blue:hover {
    background: #0d2540;
}

.btn-back {
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.btn-back:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* Gallery Adicionales */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.images-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Contacto */
.bg-blue {
    background-color: var(--primary-blue);
}

.contact-info {
    padding: 50px;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-social {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    color: #fff;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    transition: opacity 0.3s;
}

.btn-social:hover { opacity: 0.8; }
.wa-btn { background-color: #25D366; }
.fb-btn { background-color: #1877F2; }

.map-container {
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    list-style: none;
}

.carousel-slide {
    min-width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    /* MODIFIED: Added pointer cursor for clickable images */
    cursor: pointer; 
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(19, 52, 88, 0.7);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover { background: var(--secondary-gold); }
.carousel-btn.prev { left: 0; border-radius: 0 4px 4px 0; }
.carousel-btn.next { right: 0; border-radius: 4px 0 0 4px; }

/* MODIFIED: Modal Styles for Image Zoom */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
}

.modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #0d2540;
    padding: 20px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 900px) {
    .navbar { flex-direction: column; height: auto; padding: 15px; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .split-layout { flex-direction: column; }
    .flex-reverse { flex-direction: column; }
    .contact-info { padding: 30px 20px; }
    .modal-content { width: 95%; } /* Adjust modal for mobile */

    /* Ajuste Repatriacion para celulares */
    .header-image-container {
        height: auto;
        display: flex;
        flex-direction: column;
        background-color: #111;
    }
    .header-image-container .full-img {
        height: 250px;
        opacity: 1;
    }
    .header-overlay-text {
        position: static;
        transform: none;
        width: 100%;
        padding: 30px 20px;
    }
    .header-overlay-text h2 {
        font-size: 1.6rem;
    }

}

/* Image Placeholder Styling */
img {
    background-color: #f4f4f4;
    color: var(--secondary-gold);
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    line-height: 200px; /* Aligns text vertically for missing images */
}

.content-img {
    line-height: 300px;
}


/* Splash Screen Styles */
.intro-splash {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.8s ease;
}

.splash-logo {
    width: 200px; /* Adjust if needed */
    height: auto;
    margin-bottom: 20px;
    background-color: transparent;
}

.splash-title {
    font-family: var(--font-script);
    color: var(--primary-blue);
    font-size: 5rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    /* Initially hidden for splash */
    display: none; 
    opacity: 0; 
    transition: opacity 1.5s ease;
}

.hero-title {
    color: var(--secondary-gold);
    font-family: var(--font-serif);
    font-weight: bold;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
