/* FS Maquetes — Custom Styles */

/* Tailwind CDN does NOT include custom colors, so we define them as CSS variables + utilities */

:root {
    /* Gold palette */
    --gold-50: #fdf8e8;
    --gold-100: #faefc5;
    --gold-200: #f5df8e;
    --gold-300: #f0cf57;
    --gold-400: #e8bf2a;
    --gold-500: #c9a020;
    --gold-600: #a07a18;
    --gold-700: #785b13;
    --gold-800: #503d0d;
    --gold-900: #2a1f07;
    /* Dark palette */
    --dark-50: #f5f5f5;
    --dark-100: #e0e0e0;
    --dark-200: #b0b0b0;
    --dark-300: #808080;
    --dark-400: #505050;
    --dark-500: #303030;
    --dark-600: #252525;
    --dark-700: #1a1a1a;
    --dark-800: #111111;
    --dark-900: #0a0a0a;
    --dark-950: #050505;
}

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--dark-900);
    color: var(--dark-100);
}

/* Container */
.container-custom {
    max-width: 80rem; /* 1280px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) {
    .container-custom { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    .container-custom { padding-left: 2rem; padding-right: 2rem; }
}

/* Gold gradient text */
.text-gradient-gold {
    background: linear-gradient(135deg, #c9a020 0%, #e8bf2a 50%, #c9a020 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gold-500);
    color: var(--dark-900);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-gold:hover { background-color: var(--gold-400); }

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold-500);
    color: var(--gold-500);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
}
.btn-outline-gold:hover {
    background-color: var(--gold-500);
    color: var(--dark-900);
}

/* Header scroll states */
.header-default {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
}
.header-scrolled {
    background-color: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}
.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Card hover */
.card-default {
    background-color: var(--dark-800);
    border: 1px solid var(--dark-600);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s;
}
.card-default:hover { border-color: rgba(201, 160, 32, 0.5); }
.card-default:hover .card-image { transform: scale(1.05); }
.card-default:hover .card-title { color: var(--gold-400); }

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card-title {
    color: #fff;
    transition: color 0.3s;
}

/* Instagram card overlay */
.card-instagram { position: relative; overflow: hidden; border-radius: 0.5rem; background-color: var(--dark-800); }
.card-instagram:hover .card-image { transform: scale(1.05); }
.card-instagram:hover .card-instagram-overlay { opacity: 1; }
.card-instagram:hover .card-title { color: var(--gold-400); }

.card-instagram-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
    opacity: 0.8;
    transition: opacity 0.3s;
}

/* Flash messages */
.flash-message {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: flash-in 0.3s ease;
}
.flash-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.flash-error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes flash-in {
    from { opacity: 0; transform: translateY(-0.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section title decorator */
.section-decorator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.75rem;
}
.section-decorator-line {
    height: 1px;
    width: 3rem;
    background-color: var(--gold-500);
}
.section-decorator-dot {
    height: 0.375rem;
    width: 0.375rem;
    border-radius: 50%;
    background-color: var(--gold-500);
}

/* WhatsApp button */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #22c55e;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
    transition: all 0.3s;
    text-decoration: none;
}
.whatsapp-btn:hover {
    background-color: #16a34a;
    transform: scale(1.1);
}

/* Loading spinner */
.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 4px solid rgba(201, 160, 32, 0.3);
    border-top-color: var(--gold-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Leaflet overrides */
.leaflet-tooltip-custom {
    background: #1a1a2e !important;
    color: #fff !important;
    border: 1px solid #d4a012 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
.leaflet-tooltip-custom::before { border-top-color: #d4a012 !important; }
.leaflet-container { width: 100%; height: 100%; }

/* Nav active underline */
.nav-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background-color: var(--gold-500);
    border-radius: 9999px;
    transition: width 0.3s;
}

/* Utility: aspect ratios for cards */
.aspect-3-2 { aspect-ratio: 3 / 2; }
.aspect-4-5 { aspect-ratio: 4 / 5; }
