/* ══════════════════════════════════════════════════════
   global.css — Palles Consultores
   Variables, reset, tipografía, navbar, footer, whatsapp
   y componentes compartidos en todas las páginas.
══════════════════════════════════════════════════════ */

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

/* ── VARIABLES GLOBALES ── */
:root {
    --gold:        #C9A84C;
    --gold-light:  #E8C96A;
    --gold-dark:   #9A7530;
    --gold-pale:   #F5EDD6;
    --black:       #0D0D0D;
    --black-soft:  #141414;
    --black-mid:   #1E1C1A;
    --charcoal:    #2A2722;
    --off-white:   #F9F5EC;
    --text-dark:   #1a1a1a;
    --text-muted:  #6b6660;
    --geo-accent:  #9A7530;
}

/* ── RESET BASE ── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
}

/* ──────────────────────────────
   ETIQUETAS Y TIPOGRAFÍA COMPARTIDA
────────────────────────────── */
.section-label {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 16px;
}

h2.section-title { color: var(--text-dark); }

.section-body {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

/* ──────────────────────────────
   NAVBAR
────────────────────────────── */
.navbar-custom {
    position: fixed;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.25);
    padding-top: 6px;
    padding-bottom: 6px;
    transition: all 0.35s ease;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.navbar-custom.scrolled {
    padding-top: 4px;
    padding-bottom: 4px;
    background: rgba(10, 10, 10, 0.98) !important;
    border-bottom-color: rgba(201, 168, 76, 0.4);
}

.logo-wrap {
    background: rgba(5, 4, 2, 0.55);
    border-radius: 12px;
    padding: 6px 10px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(201, 168, 76, 0.25);
    display: flex;
    align-items: center;
}

.navbar-custom .navbar-brand img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8)) drop-shadow(0 0 3px rgba(0,0,0,0.9));
}

.navbar-custom.scrolled .navbar-brand img { height: 52px; }

.navbar-custom .nav-link {
    color: #d4c4a0 !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 8px 18px !important;
    position: relative;
    transition: color 0.25s ease;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 18px;
    right: 18px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active { color: var(--gold) !important; }

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after { transform: scaleX(1); }

.navbar-custom .nav-item + .nav-item {
    border-left: 1px solid rgba(201, 168, 76, 0.2);
}

.navbar-cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff !important;
    background: #B8860B;
    border: 2px solid #FFD700;
    padding: 12px 26px !important;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 18px rgba(255,215,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.navbar-cta:hover {
    background: #DAA520;
    border-color: #fff;
    box-shadow: 0 0 28px rgba(255,215,0,0.85), 0 4px 16px rgba(0,0,0,0.4);
    transform: translateY(-1px);
    color: #fff !important;
}

.navbar-toggler { border-color: rgba(201,168,76,0.5) !important; }
.navbar-toggler-icon { filter: invert(80%) sepia(30%) saturate(500%) hue-rotate(5deg); }

/* ──────────────────────────────
   BOTÓN FLOTANTE WHATSAPP
────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: #fff;
    border-radius: 50px;
    padding: 6px 14px 6px 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.whatsapp-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
}

.whatsapp-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

/* ──────────────────────────────
   FOOTER
────────────────────────────── */
footer {
    background: #0a0a0a;
    color: #e0e0e0;
    padding: 60px 0 0;
    font-family: 'Montserrat', sans-serif;
}

.footer-brand-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}

.footer-description {
    color: #999;
    font-size: 0.88rem;
    line-height: 1.8;
}

.footer-heading {
    color: #fff;
    letter-spacing: 2px;
    font-size: 0.72rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
    color: #aaa;
    line-height: 2;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
    color: #aaa;
    line-height: 2.2;
}

.footer-contact a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover { color: #fff; }

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #333;
    border-radius: 4px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    transition: border-color 0.2s, color 0.2s;
}

.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid #1e1e1e;
    margin-top: 50px;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.78rem;
    color: #555;
}

.footer-bottom a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover { color: #aaa; }

/* ──────────────────────────────
   FORMULARIO DE CONTACTO
────────────────────────────── */
.form-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 36px 32px;
    box-shadow: 0 4px 24px rgba(201, 168, 76, 0.08);
}

.form-card .form-label-top {
    font-size: 0.72rem;
    color: var(--gold);
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.form-card h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.form-card .form-control {
    border: 1px solid #d0d8e8;
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 0.88rem;
    color: #333;
    transition: border-color 0.2s;
}

.form-card .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.form-card .form-control::placeholder { color: #aaa; }

.form-card .privacy-link {
    color: var(--gold);
    font-size: 0.82rem;
    text-decoration: none;
}

.form-card .privacy-link:hover { text-decoration: underline; }

.btn-submit {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    color: var(--black);
    border: none;
    border-radius: 2px;
    padding: 13px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 100%;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.45);
}

/* ──────────────────────────────
   RESPONSIVE GLOBAL
────────────────────────────── */
@media (max-width: 768px) {
    html { font-size: 14px; }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        padding: 4px 10px 4px 6px;
    }

    .whatsapp-icon {
        width: 38px;
        height: 38px;
    }
}

@media (min-width: 1400px) {
    html { font-size: 15.5px; }
    .container { max-width: 1240px; }
}
