/* 
   COSTA MISIONES | Premium Design System 2026
   Aesthetic: High-End Minimalist / Luxury / Modern
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Montserrat:wght@200;300;400;500;600&display=swap');

:root {
    /* Color Palette - Gold Identity */
    --p-h: 43;
    --p-s: 62%;
    --p-l: 53%;
    --primary: hsl(var(--p-h), var(--p-s), var(--p-l));
    --primary-dim: hsla(var(--p-h), var(--p-s), var(--p-l), 0.2);
    --primary-bright: hsl(var(--p-h), var(--p-s), 70%);

    /* Neutrals - Values for HSL */
    --bg-deep-val: 0, 0%, 0%;
    --bg-surface-val: 0, 0%, 7%;
    --text-pure-val: 0, 0%, 100%;
    --text-off-val: 0, 0%, 85%;
    --text-dim-val: 0, 0%, 50%;

    /* Derived Colors */
    --bg-deep: hsl(var(--bg-deep-val));
    --bg-surface: hsl(var(--bg-surface-val));
    --text-pure: hsl(var(--text-pure-val));
    --text-off: hsl(var(--text-off-val));
    --text-dim: hsl(var(--text-dim-val));

    /* Typography Architecture */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;

    /* Design Tokens / Glassmorphism */
    --glass: hsla(0, 0%, 100%, 0.03);
    --glass-heavy: hsla(0, 0%, 100%, 0.06);
    --border-light: hsla(0, 0%, 100%, 0.08);

    /* Depth & Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-hard: 0 30px 60px rgba(0, 0, 0, 0.8);
    --shadow-gold: 0 0 20px hsla(var(--p-h), var(--p-s), var(--p-l), 0.15);

    /* Performance & Experience */
    --ease-premium: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-mid: 0.6s var(--ease-premium);
    --transition-fast: 0.3s ease;
}

/* Base Foundation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-deep);
    /* Asegurar fondo desde la raíz */
}

body {
    background-color: var(--bg-deep);
    color: var(--text-off);
    font-family: var(--font-sans);
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: 300;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dim);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography Architecture */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    color: var(--primary);
    font-weight: 400;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

header {
    background: var(--bg-deep);
    padding: 0.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}


.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-img {
    height: 60px;
    transition: var(--transition-mid);
}

.logo-container:hover .logo-img {
    transform: scale(2) rotate(-5deg);
}

#navbar-logo-placeholder {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dynamic-logo {
    position: fixed;
    top: 60%;
    left: 50%;
    height: 85vh;
    /* Initial large size */
    width: auto;
    transform: translate(-50%, -50%);
    /* Centered vertically and horizontally initially */
    z-index: 3000;
    opacity: 0.04;
    pointer-events: none;
    /* Allows clicking through */
    will-change: top, left, height, opacity, transform, filter;
}



nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

nav a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-dim);
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition-mid);
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

.nav-active {
    color: #fff !important;
    font-weight: 500;
}

.nav-active::after {
    width: 100% !important;
}

/* ===== HERO con video full background ===== */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;

    /* por si el video tarda en cargar */
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Video cubriendo todo */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* clave: full cover */
    object-position: center;
    z-index: 0;
    filter: contrast(1.05) saturate(1.05);
    /* leve look premium */
}

/* Oscurece arriba del video para que el botón destaque */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.75));
}

/* Contenido encima */
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInScale 1.6s var(--ease-premium);
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 3rem;
    /* Reduced from 6rem */
    text-align: center;
}


/* Contact Section */
.contact-section {
    padding: 1rem 8%;
    background: var(--bg-deep);
}


.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    /* Tighter gap */
    max-width: 1400px;
    margin: 0 auto;
}

.info-item {
    margin-bottom: 1.5rem;
    /* Reduced from 2.2rem */
}

.info-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.9rem;
    letter-spacing: 2px;
}

.info-item p {
    font-size: 1rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form-container h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    padding: 0.65rem 0;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-mid);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Option 2: Two-column row for name + email */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Map Excellence */
.map-container {
    height: 160px;
    /* Highly reduced height "rectangulo chato" */
    filter: grayscale(1) invert(0.9);
    transition: var(--transition-mid);
    border: none;
    /* Removed border */
}

.map-container:hover {
    filter: grayscale(0) invert(0);
}

.map-container iframe {
    height: 100% !important;
}

/* Mobile Excellence */
@media (max-width: 1200px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 7rem 6%;
    }

    .form-group {
        margin-bottom: 1.6rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* Footer & Modals */
footer {
    padding: 6rem 8%;
    text-align: center;
    border-top: 1px solid var(--border-light);
    font-size: 0.7rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: auto;
    animation: fadeIn 0.4s var(--ease-premium);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    margin: 5% auto;
    padding: 5rem 3rem;
    width: 90%;
    max-width: 650px;
    position: relative;
    box-shadow: var(--shadow-hard);
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--primary);
}

#admin-password {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
    font-family: var(--font-sans);
    letter-spacing: 4px;
    transition: var(--transition-mid);
    margin-bottom: 2rem;
}

#admin-password:focus {
    outline: none;
    border-color: var(--primary);
    background: hsla(var(--p-h), var(--p-s), var(--p-l), 0.05);
}

.upload-container {
    border: 1px dashed var(--border-light);
    padding: 6rem 2rem;
    text-align: center;
    transition: var(--transition-mid);
    background: hsla(0, 0%, 100%, 0.02);
    cursor: pointer;
}

.upload-container:hover,
.upload-container.drag-active {
    border-color: var(--primary);
    background: hsla(var(--p-h), var(--p-s), var(--p-l), 0.05);
}

#upload-status {
    font-family: var(--font-sans);
    letter-spacing: 1px;
    font-weight: 400;
}


/* Mobile Excellence */
@media (max-width: 1200px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 6rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 4%;
        justify-content: center;
        /* Centered on mobile since logo is hidden */
    }

    .logo-container {
        position: relative;
        left: 0;
    }

    nav {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    nav ul {
        justify-content: center;
        gap: 1.2rem;
        padding-left: 0;
        /* Center content and reset padding */
    }

    nav a {
        font-size: 0.65rem;
        letter-spacing: 1.2px;
    }

    .hero-content h1 {
        font-size: 4rem;
        letter-spacing: 8px;
    }

    .logo-img {
        height: 40px;
    }

    /* Hide logo in navbar for mobile as requested */
    .logo-container {
        display: none !important;
    }
}

/* ===== Contact left column: Dirección arriba, Teléfono debajo, Mapa abajo ===== */
.contact-info .info-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* stack vertical */
    gap: 2.2rem;
    align-items: start;
}

/* Map stays below and full width of the left column */
.contact-info .map-container {
    grid-column: 1 / -1;
    /* Height handled by .map-container class above */
    margin-top: 0.5rem;
    /* Border handled by class above */
}

/* Tighten info items a bit */


/* Mobile: same (already stacked) */
@media (max-width: 768px) {
    .contact-info .map-container {
        height: 240px;
    }
}

/* Social Links & Floating Icons */
.info-item a:hover {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--bg-surface);
    color: var(--text-dim);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 4000;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--border-light);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
    background-color: #25d366;
    color: #fff;
    border-color: #25d366;
}

/* Instagram Highlight Bar */
.instagram-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(45deg, hsla(var(--p-h), var(--p-s), var(--p-l), 0.1), transparent);
    border: 1px solid hsla(var(--p-h), var(--p-s), var(--p-l), 0.3);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    /* Reduced from 3rem */
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-mid);
    text-decoration: none;
    width: fit-content;
}

.instagram-bar i {
    font-size: 2rem;
    color: var(--primary);
    /* Gold */
    transition: var(--transition-fast);
}

.instagram-bar span {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-pure);
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.instagram-bar:hover {
    border-color: var(--primary);
    background: linear-gradient(45deg, hsla(var(--p-h), var(--p-s), var(--p-l), 0.2), rgba(0, 0, 0, 0.5));
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.instagram-bar:hover i {
    transform: scale(1.1) rotate(5deg);
    text-shadow: 0 0 10px var(--primary);
}

.instagram-bar:hover span {
    color: #fff;
    text-shadow: 0 0 10px hsla(var(--p-h), var(--p-s), var(--p-l), 0.5);
}

/* Button CTA Premium */
.btn-cta {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: var(--transition-mid);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary);
    transition: var(--transition-mid);
    z-index: -1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.btn-cta:hover {
    color: #000;
}

.btn-cta:hover::before {
    width: 300%;
    height: 300%;
}

.btn-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    animation: bounceIn 1.2s var(--ease-premium);
}

.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid var(--primary);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 20px hsla(var(--p-h), var(--p-s), var(--p-l), 0.15);
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    animation: scrollAni 1.6s infinite;
}

.scroll-text {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    font-family: var(--font-sans);
    opacity: 0.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.scroll-text.text-large {
    font-size: 0.85rem;
    letter-spacing: 6px;
    opacity: 0.9;
}

.arrow-down-icon {
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    animation: arrowAni 1.6s infinite;
}

@keyframes scrollAni {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(14px);
        opacity: 0;
    }
}

@keyframes arrowAni {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

@keyframes bounceIn {
    0% {
        transform: translate(-50%, 50px);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}