/* =============================================================
   ARCHIVO : assets/css/main.css
   PROYECTO: Cobranza Efectiva - cobranzaefectiva.com
   FUNCIÓN : Estilos globales del sitio
   -------------------------------------------------------------
   BITÁCORA DE CAMBIOS
   2025-07-01 | v1.0 | Creación inicial
   ============================================================= */

/* ---------------------------------------------------------------
   VARIABLES (paleta extraída del logo)
--------------------------------------------------------------- */
:root {
    --navy:       #0F2344;
    --navy-light: #1a3560;
    --gold:       #C8922A;
    --gold-light: #e0a93a;
    --cream:      #F7F5F0;
    --white:      #FFFFFF;
    --text:       #1A1A2E;
    --text-muted: #6B7280;
    --border:     #E2DDD6;
    --success:    #1B6B3A;

    --font-display: 'Sora', sans-serif;
    --font-body:    'Inter', sans-serif;

    --radius:  8px;
    --shadow:  0 4px 24px rgba(15,35,68,0.10);
    --trans:   0.2s ease;
}

/* ---------------------------------------------------------------
   RESET Y BASE
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ---------------------------------------------------------------
   TIPOGRAFÍA
--------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3rem);   font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

.gold   { color: var(--gold); }
.muted  { color: var(--text-muted); }

/* ---------------------------------------------------------------
   LAYOUT HELPERS
--------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section--gray {
    background: var(--cream);
}

.section__header {
    text-align: center;
    margin-bottom: 56px;
}

.section__header p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------------------
   BOTONES
--------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
    border: 2px solid transparent;
    text-align: center;
}

.btn--primary {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}
.btn--primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(200,146,42,0.35);
}

.btn--outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn--outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn--outline-white:hover {
    background: var(--white);
    color: var(--navy);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* ---------------------------------------------------------------
   HEADER / NAV
--------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: var(--trans);
    letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.10);
}

.nav-links .btn--primary {
    padding: 9px 20px;
    font-size: 0.88rem;
}

.nav-tel {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hamburger mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--trans);
}

/* ---------------------------------------------------------------
   FOOTER
--------------------------------------------------------------- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-brand img {
    height: 56px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.60);
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    transition: var(--trans);
}
.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--gold);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.70);
    transition: var(--trans);
}
.footer-social a:hover {
    background: var(--gold);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

/* ---------------------------------------------------------------
   WHATSAPP FLOTANTE
--------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.45);
    transition: var(--trans);
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}

/* ---------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------- */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 16px 24px 24px;
        gap: 4px;
        border-top: 1px solid rgba(255,255,255,0.10);
    }
    .nav-links.open { display: flex; }
    .nav-links a { width: 100%; padding: 12px 16px; }
    .nav-toggle { display: flex; }
    .nav-tel { display: none; }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
