/* ==========================================================
   GRISKA — Hoja de estilos principal
   Archivo: css/styles.css
   Versión: 3.0
   ========================================================== */

/* ============================
   1. DESIGN TOKENS (Variables)
============================ */
:root {
    /* Colores primarios */
    --navy:       #1b2e4a;
    --navy-deep:  #12203a;
    --navy-mid:   #2a4060;
    --slate:      #3d5068;
    --steel:      #5a7184;
    --steel-lt:   #8a9db0;

    /* Bordes */
    --border:     #d8dfe6;
    --border-lt:  #e9edf2;

    /* Fondos */
    --bg-warm:    #f5f7fa;
    --bg-white:   #ffffff;
    --white:      #ffffff;

    /* Textos */
    --text-dark:  #1a2b42;
    --text-body:  #4a5d73;
    --text-muted: #7a8da0;

    /* Acento */
    --accent:     #2b7cca;
    --accent-dk:  #1d5fa0;
    --accent-lt:  #e8f1fb;

    /* Tipografía */
    --font-head:  'Playfair Display', Georgia, serif;
    --font-body:  'Outfit', sans-serif;
    --font-mono:  'IBM Plex Mono', monospace;

    /* Sombras */
    --shadow-card:       0 1px 3px rgba(27,46,74,0.06), 0 8px 28px rgba(27,46,74,0.06);
    --shadow-card-hover: 0 4px 12px rgba(27,46,74,0.08), 0 16px 48px rgba(27,46,74,0.10);
    --shadow-nav:        0 1px 0 rgba(27,46,74,0.06);

    /* Radios */
    --radius:    8px;
    --radius-lg: 12px;
}


/* ============================
   2. RESET & BASE
============================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    font-family: var(--font-body);
    background: var(--bg-white);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--white); }
img { max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-warm); }
::-webkit-scrollbar-thumb { background: var(--steel-lt); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }


/* ============================
   3. LOADER
============================ */
.page-loader {
    position: fixed; inset: 0;
    background: var(--white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.hide { opacity: 0; visibility: hidden; }
.loader-brand {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 8px;
    color: var(--navy);
}
.loader-bar {
    width: 100px; height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.loader-bar::after {
    content: '';
    display: block;
    width: 40%; height: 100%;
    background: var(--accent);
    border-radius: 2px;
    animation: slideBar 1s ease-in-out infinite;
}
@keyframes slideBar {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}


/* ============================
   4. NAVBAR
============================ */
.navbar-gk {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-nav);
    padding: 0;
    transition: all 0.3s;
}
.navbar-gk.scrolled {
    box-shadow: 0 2px 20px rgba(27,46,74,0.08);
}
.navbar-gk .container {
    padding-top: 14px;
    padding-bottom: 14px;
}
.nav-brand {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--navy) !important;
    text-decoration: none;
}
.navbar-gk .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--slate) !important;
    padding: 8px 18px !important;
    transition: color 0.25s;
}
.navbar-gk .nav-link:hover,
.navbar-gk .nav-link.active {
    color: var(--navy) !important;
}
.nav-cta {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.84rem;
    padding: 10px 28px;
    border: 2px solid var(--navy);
    border-radius: 6px;
    color: var(--navy) !important;
    text-decoration: none;
    transition: all 0.3s;
}
.nav-cta:hover {
    background: var(--navy);
    color: var(--white) !important;
}
.navbar-toggler {
    border: 1px solid var(--border);
    padding: 6px 10px;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%231b2e4a' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/* ============================
   5. HERO
============================ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        linear-gradient(135deg, rgba(18,32,58,0.82) 0%, rgba(27,46,74,0.55) 50%, rgba(18,32,58,0.40) 100%);
    background-size: cover;
    background-position: center;
}
.hero-content { position: relative; z-index: 2; padding: 80px 0; }

.hero h1 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 700px;
}
.hero .hero-sub {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.8);
    max-width: 580px;
    margin-bottom: 36px;
    line-height: 1.8;
}

/* Hero buttons */
.btn-hero {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 16px 40px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.35s;
    box-shadow: 0 4px 20px rgba(43,124,202,0.3);
}
.btn-hero:hover {
    background: var(--accent-dk);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(43,124,202,0.4);
}
.btn-hero-outline {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 16px 40px;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.35s;
}
.btn-hero-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

/* Hero stats bar */
.hero-stats-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 3;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item {
    text-align: center;
    padding: 24px 16px;
}
.stat-item .val {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--white);
    line-height: 1;
}
.stat-item .label {
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ============================
   6. SECTION UTILITIES
============================ */
.section { padding: 100px 0; }
.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.section-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-desc {
    font-weight: 400;
    font-size: 1.02rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.8;
}


/* ============================
   7. SERVICE CARDS
============================ */
.svc-card {
    background: var(--white);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius-lg);
    padding: 36px 30px 32px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
}
.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent);
}
.svc-icon-wrap {
    width: 64px; height: 64px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: all 0.35s;
}
.svc-card:hover .svc-icon-wrap {
    border-color: var(--accent);
    background: var(--accent-lt);
}
.svc-icon-wrap i {
    font-size: 1.6rem;
    color: var(--accent);
}
.svc-card h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.svc-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}


/* ============================
   8. ABOUT SECTION
============================ */
.about-section { padding: 100px 0; background: var(--bg-warm); }

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.about-tag::before {
    content: '';
    width: 28px; height: 2px;
    background: var(--accent);
}

.about-feat {
    display: flex;
    gap: 18px;
    margin-bottom: 26px;
}
.about-feat-ico {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--accent-lt);
    color: var(--accent);
    font-size: 1.1rem;
}
.about-feat h4 {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}
.about-feat p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* Info boxes */
.info-box {
    background: var(--white);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    transition: all 0.35s;
}
.info-box:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--accent);
}
.info-box i {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}
.info-box h5 {
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.info-box p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}


/* ============================
   9. VALUES SECTION
============================ */
.values-section { padding: 100px 0; }
.val-card {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid var(--border-lt);
    border-radius: var(--radius-lg);
    background: var(--white);
    height: 100%;
    transition: all 0.35s;
}
.val-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}
.val-ico {
    width: 60px; height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--accent-lt);
    color: var(--accent);
    font-size: 1.3rem;
    transition: all 0.3s;
}
.val-card:hover .val-ico {
    background: var(--accent);
    color: var(--white);
}
.val-card h4 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.val-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}


/* ============================
   10. CERTIFICATIONS
============================ */
.certs-section { padding: 80px 0; background: var(--bg-warm); }
.cert-badge {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--white);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius);
    transition: all 0.3s;
    height: 100%;
}
.cert-badge:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
}
.cert-badge .cb-ico {
    flex-shrink: 0;
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--white);
    font-size: 1.2rem;
}
.cert-badge h5 {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}
.cert-badge p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}


/* ============================
   11. CONTACT SECTION
============================ */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(170deg, var(--navy-deep) 0%, var(--navy) 100%);
    position: relative;
}
.contact-form-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
}

/* Form fields */
.form-floating > .form-control,
.form-floating > .form-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    padding: 1.2rem 1rem;
    height: auto;
    transition: all 0.3s;
}
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(43,124,202,0.15);
    background: rgba(43,124,202,0.06);
    color: var(--white);
}
.form-floating > label {
    color: rgba(255,255,255,0.45);
    font-size: 0.88rem;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--accent);
}
.form-select option {
    background: var(--navy-deep);
    color: var(--white);
}
textarea.form-control { min-height: 120px; }

.btn-submit {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    padding: 16px 36px;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: var(--white);
    transition: all 0.35s;
    box-shadow: 0 4px 20px rgba(43,124,202,0.25);
}
.btn-submit:hover {
    background: var(--accent-dk);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(43,124,202,0.35);
}

/* Contact info blocks */
.ci-block {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.ci-block .ico {
    flex-shrink: 0;
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(43,124,202,0.12);
    color: var(--accent);
    font-size: 1rem;
}
.ci-block h5 {
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 3px;
}
.ci-block p, .ci-block a {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
    text-decoration: none;
    transition: color 0.3s;
}
.ci-block a:hover { color: var(--accent); }

/* Social */
.social-dot {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
}
.social-dot:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* CAPTCHA box */
.captcha-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 18px;
}
.captcha-label {
    display: block;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.captcha-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 6px;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}
.captcha-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.74rem;
    color: rgba(255,255,255,0.35);
}

/* Alerts */
.form-alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    display: none;
}
.form-alert.success {
    background: rgba(39,174,96,0.1);
    border: 1px solid rgba(39,174,96,0.2);
    color: #27ae60;
}
.form-alert.error {
    background: rgba(192,57,43,0.08);
    border: 1px solid rgba(192,57,43,0.18);
    color: #c0392b;
}


/* ============================
   12. FOOTER
============================ */
.site-footer {
    background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 56px 0 24px;
}
.footer-brand {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--white);
}
.footer-col-title {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 16px;
}
.footer-link {
    display: block;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.25s;
}
.footer-link:hover { color: var(--accent); }
.footer-copy {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
}
.footer-copy p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    margin: 0;
}
.footer-copy a {
    color: var(--accent);
    text-decoration: none;
}


/* ============================
   13. WHATSAPP FLOAT
============================ */
.wa-float {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 58px; height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    font-size: 1.7rem;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s;
}
.wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37,211,102,0.5);
    color: #fff;
}


/* ============================
   14. RESPONSIVE
============================ */
@media (max-width: 991px) {
    .hero { min-height: 70vh; }
    .hero-stats-bar .row { gap: 0; }
    .stat-item { padding: 16px 8px; }
    .stat-item .val { font-size: 1.4rem; }
}

@media (max-width: 767px) {
    .hero h1 { font-size: 2rem; }
    .hero-stats-bar { display: none; }
    .section { padding: 70px 0; }
    .contact-form-box { padding: 28px 20px; }
}
