/*
 * assets/css/style.css
 * Premium, mobile‑first stylesheet for spliplza (Finanzas para Empresas – Venezuela).
 * Implements the 60‑30‑10 color palette, Google Fonts (Outfit, Inter), and CRO‑focused components.
 */

/* ---------- Root variables ---------- */
:root {
    /* Colors */
    --color-bg: #F8FAFC;                 /* 60 % – clean background */
    --color-primary: #0D9488;            /* 30 % – teal primary */
    --color-primary-light: #14B8A6;      /* lighter teal for gradients */
    --color-accent: #D97706;             /* 10 % – amber CTA */
    --color-text: #1F2937;               /* Dark gray for readability */
    --color-muted: #6B7280;              /* Subtle gray */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-size-base: 1rem; /* 16px */
    --line-height-base: 1.5;

    /* Spacing */
    --space-xxs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --container-max: 1200px;
}

/* ---------- Global reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, picture, video, canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover, a:focus {
    color: var(--color-primary-light);
}

/* ---------- Layout helpers ---------- */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding: var(--space-md) var(--space-sm);
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

/* ---------- Top‑bar (Urgency) ---------- */
.top-bar {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.875rem;
    padding: var(--space-xs) 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar .email-contact a {
    color: #fff;
    font-weight: 600;
}
.top-bar .cta-call {
    background: var(--color-accent);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 0.25rem;
    font-weight: 600;
    color: #fff;
    transition: background 0.2s ease, transform 0.1s ease;
}
.top-bar .cta-call:hover {
    background: #b56505;
    transform: translateY(-1px);
}

/* ---------- Site Header ---------- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
    padding: var(--space-md) 0;
}
.site-header.shrink {
    padding: var(--space-xs) 0;
}
.site-header .logo img {
    height: 48px;
    transition: height 0.3s ease;
}
.site-header.shrink .logo img {
    height: 36px;
}
.site-header .nav-main ul {
    list-style: none;
    display: flex;
    gap: var(--space-lg);
}
.site-header .nav-main a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
}
.site-header .nav-main a:hover {
    color: var(--color-primary);
}

/* ---------- Hero Section (example) ---------- */
.hero {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    text-align: center;
    padding: calc(var(--space-xl) * 2) var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-md);
}
.hero p {
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: var(--space-lg);
}
.hero .cta-btn {
    background: var(--color-accent);
    color: #fff;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.1s ease;
}
.hero .cta-btn:hover {
    background: #b56505;
    transform: translateY(-2px);
}

/* ---------- Services Cards ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
.service-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: var(--space-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.service-card h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}
.service-card p {
    flex-grow: 1;
    margin-bottom: var(--space-md);
}
.service-card .read-more {
    margin-top: auto;
    color: var(--color-accent);
    font-weight: 600;
}

/* ---------- Form elements (CRO) ---------- */
form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
input, textarea, select {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--color-muted);
    border-radius: 0.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.2);
}
button, .btn {
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    padding: var(--space-sm) var(--space-md);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
button:hover, .btn:hover {
    background: #b56505;
    transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-primary);
    color: #fff;
    padding: var(--space-xl) 0;
    margin-top: auto;
}
.site-footer .footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}
.site-footer h4 {
    font-family: var(--font-heading);
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}
.site-footer a {
    color: #fff;
    opacity: 0.9;
}
.site-footer a:hover {
    opacity: 1;
}
.site-footer .footer-disclaimer {
    font-size: 0.75rem;
    text-align: center;
    opacity: 0.85;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
    .site-header .nav-main ul {
        flex-direction: column;
        gap: var(--space-xs);
        display: none; /* hidden by default – mobile menu will toggle via JS */
    }
    .site-header .nav-main.active ul {
        display: flex;
    }
    .top-bar {
        font-size: 0.75rem;
    }
}

/* ---------- Micro‑animations ---------- */
@keyframes pulse-green {
    0% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.4; transform: scale(0.9); }
}
.pulse-dot {
    width: 10px;
    height: 10px;
    background: #10B981; /* emerald */
    border-radius: 50%;
    animation: pulse-green 1.5s infinite;
    display: inline-block;
    margin-right: var(--space-xxs);
}

/* ---------- Cookie banner (example) ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
}
.cookie-banner button {
    background: var(--color-accent);
    margin-left: var(--space-sm);
}
