:root {
    --goma-black: #121212;
    --goma-gray: #F5F5F7;
    --goma-text: #2A2A2A;
    /* ===== MODO CLARO ===== */
    --bg-primary: #f6f7fb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #18181b;
    --text-secondary: #6b7280;
    --border-color: rgba(0,0,0,.08);
    --goma-red: #d62839;
    --goma-red-dark: #b91c2f;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
    --navbar-bg: rgba(255,255,255,.88);
    --footer-bg: #111827;
}

[data-theme="dark"] {
    /* ===== MODO OBSCURO ===== */
    --bg-primary: #0f1115;
    --bg-secondary: #181b22;
    --bg-card: #20242c;
    --text-primary: #f5f5f5;
    --text-secondary: #b3bac5;
    --border-color: rgba(255,255,255,.08);
    --goma-red: #e23b4f;
    --goma-red-dark: #c62c40;
    --shadow: 0 10px 30px rgba(0,0,0,.45);
    --navbar-bg: rgba(24,27,34,.88);
    --footer-bg: #090b0f;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background .35s ease, color .35s ease;
    overflow-x: hidden;
    padding-top: 110px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .4;
    background-image: url('/images/backgrounds/goma-pattern.svg');
    background-repeat: repeat;
    background-size: 450px;
}

first-section {
    padding: 50px 0;
}

section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}

.section-subtitle {
    color: var(--goma-red);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .85rem;
    font-weight: 700;
}

.navbar-goma {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    transition: .35s;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
    border-radius: 25px;
    margin: 20px;
    padding: 15px 30px;
}

.navbar-toggler {
    border: none;
    font-size: 1.8rem;
    color: var(--text-primary);
}

[data-theme="dark"] .navbar-toggler {
    color: #fff;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-navbar {
    height: 65px;
}

.nav-item {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.nav-link {
    font-weight: 600;
    margin: 0 8px;
}

.nav-link:hover {
    color: var(--goma-red);
}

.nav-link:focus,
.nav-link:active {
    color: var(--goma-red) !important;
}

.btn-goma {
    background: linear-gradient( 135deg, var(--goma-red), var(--goma-red-dark));
    color: white;
    border-radius: 14px;
    padding: 14px 26px;
    font-weight: 600;
}

.btn-goma:hover {
    color: white;
    transform: translateY(-2px);
}

.btn-outline-goma {
    border: 2px solid var(--goma-red);
    color: var(--goma-red);
    border-radius: 14px;
    padding: 14px 26px;
}

.footer-goma {
    background: linear-gradient( 90deg, #0f0f0f, #1b1b1b);
    color: white;
    padding: 40px 0;
}

.footer-logo {
    height: 30px;
}

.social-icons i {
    font-size: 1.4rem;
    margin-left: 20px;
    cursor: pointer;
}

@media (max-width: 991px) {

    .section-title {
        font-size: 2.2rem;
    }

    .navbar-goma {
        margin: 10px;
        border-radius: 18px;
    }

    body {
        padding-top: 90px;
    }
}

/* HERO */

.hero-section {
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: transparent;
}

.hero-badge {
    display: inline-block;
    background: rgba(198,40,57,.12);
    color: var(--goma-red);
    font-weight: 700;
    border-radius: 50px;
    padding: 10px 18px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.05;
    color: var(--text-primary);
}

.hero-title span {
    color: var(--goma-red);
}

.hero-description {
    font-size: 1.15rem;
    color: #666;
    margin-top: 30px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-carousel img,
.hero-slide img,
.carousel-item img {
    width: 100%;
    
    object-fit: cover;
    object-position: top center;
    border-radius: 35px;
    box-shadow: 0 25px 60px rgba(0,0,0,.15);
}

.hero-stats {
    margin-top: 45px;
}

.stat-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--goma-red);
}

.stat-label {
    color: #666;
    font-size: .9rem;
}

.brand-pill {
    display: inline-block;
    margin-right: 12px;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 50px;
    background: var(--bg-primary);
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    font-weight: 700;
}

@media(max-width:991px) {
    .hero-title {
        font-size: 2.9rem;
    }

    .hero-section {
        padding-top: 40px;
    }
}

/* ==========================
   QUIÉNES SOMOS
========================== */

.about-section {
    background: var(--bg-primary);
}

.about-text {
    color: #666;
    font-size: 1.08rem;
    line-height: 1.9;
}

.about-card {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 35px;
    height: 100%;
    box-shadow: 0 20px 45px rgba(0,0,0,.08);
    transition: all .30s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,.12);
}

.about-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
}

.icon-red {
    background: linear-gradient( 135deg, var(--goma-red), var(--goma-red-dark));
}

.icon-black {
    background: linear-gradient( 135deg, #1b1b1b, #3a3a3a);
}

.brand-card {
    background: var(--bg-secondary);
    border-radius: 25px;
    padding: 30px;
    height: 100%;
}

.brand-logo {
    height: 55px;
    margin-bottom: 20px;
}

.brand-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.brand-description {
    color: #666;
    line-height: 1.8;
}

.timeline-line {
    width: 100%;
    height: 4px;
    background: linear-gradient( 90deg, var(--goma-red), var(--goma-red-dark));
    border-radius: 100px;
    margin: 60px 0;
}

/* ==========================
   GOMA PROMOTIONS
========================== */

.promotions-section {
    background: var(--bg-primary);
}

.service-card {
    border-radius: 30px;
    overflow: hidden;
    height: 100%;

    background: var(--bg-card);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: .35s;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,.14);
}

.service-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.service-body {
    padding: 30px;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.service-description {
    color: #666;
    line-height: 1.8;
}

.service-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    background: linear-gradient( 135deg, var(--goma-red), var(--goma-red-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.promotions-banner {
    background: linear-gradient( 135deg, var(--goma-red), var(--goma-red-dark));
    color: white;
    border-radius: 35px;
    padding: 50px;
    margin-bottom: 70px;
}

.promotions-banner h3 {
    font-size: 2.3rem;
    font-weight: 800;
}

.promotions-banner p {
    opacity: .95;
    line-height: 1.9;
}

@media(max-width:991px) {
    .service-image {
        height: 220px;
    }

    .promotions-banner {
        padding: 35px;
    }

    .promotions-banner h3 {
        font-size: 1.8rem;
    }
}

/* ==========================
   G GRAPHIC
========================== */

.ggraphic-section {
    background: var(--bg-primary);
}

.ggraphic-banner {
    background: linear-gradient( 135deg, #1B1B1B, #3B3B3B);
    color: white;
    border-radius: 35px;
    padding: 50px;
    margin-bottom: 70px;
}

.ggraphic-banner h3 {
    font-size: 2.3rem;
    font-weight: 800;
}

.ggraphic-banner p {
    opacity: .95;
    line-height: 1.9;
}

.ggraphic-card {
    background: var(--bg-card);
    border-radius: 30px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    transition: all .35s ease;
}

.ggraphic-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,.14);
}

.ggraphic-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.ggraphic-body {
    padding: 30px;
}

.ggraphic-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.ggraphic-description {
    color: #666;
    line-height: 1.8;
}

.ggraphic-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    background: linear-gradient( 135deg, #1B1B1B, #3B3B3B);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

@media(max-width:991px) {
    .ggraphic-banner {
        padding: 35px;
    }

    .ggraphic-banner h3 {
        font-size: 1.8rem;
    }

    .ggraphic-image {
        height: 220px;
    }
}

/* ==========================
   CLIENTES
========================== */

.clients-section {
    background: var(--bg-primary);
}

.client-metric {
    background: white;
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    height: 100%;
}

.client-metric-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--goma-red);
}

.client-metric-label {
    color: #666;
    margin-top: 10px;
}

.logo-slider {
    overflow: hidden;
    position: relative;
    margin: 80px 0;
}

.logo-track {
    display: flex;
    width: calc(200px * 16);
    animation: scroll-logos 35s linear infinite;
}

.logo-slide {
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.logo-slide img {
    max-width: 150px;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: .7;
    transition: all .30s ease;
}

.logo-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

@keyframes scroll-logos {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    background: var(--bg-secondary);
    border-radius: 35px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
    text-align: center;
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #555;
    font-style: italic;
}

.testimonial-author {
    margin-top: 30px;
    font-weight: 800;
}

.testimonial-role {
    color: var(--goma-red);
}

@media(max-width:991px) {
    .testimonial-card {
        padding: 35px;
    }

    .logo-slide {
        width: 150px;
    }

    .logo-track {
        width: calc(150px * 16);
    }
}

/* ==========================
   CONTACTO
========================== */

.contact-section {
    background: transparent;
}

.contact-cta {
    background: linear-gradient( 135deg, var(--goma-red), var(--goma-red-dark));
    color: white;
    border-radius: 40px;
    padding: 70px 50px;
    margin-bottom: 80px;
    overflow: hidden;
}

.contact-cta h2 {
    font-size: 3rem;
    font-weight: 900;
}

.contact-cta p {
    font-size: 1.1rem;
    opacity: .95;
    margin-top: 20px;
}

.contact-card {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 35px;
    height: 100%;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient( 135deg, var(--goma-red), var(--goma-red-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.contact-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 12px;
    color: #666;
}

.contact-item a {
    color: var(--goma-red);
    text-decoration: none;
}

.contact-form {
    background: white;
    border-radius: 35px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.form-control {
    border-radius: 15px;
    padding: 14px 18px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--goma-red);
    box-shadow: 0 0 0 .25rem rgba(198,40,57,.15);
}

.map-container {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

@media(max-width:991px) {
    .contact-cta {
        padding: 40px 30px;
    }

    .contact-cta h2 {
        font-size: 2.2rem;
    }

    .contact-form {
        padding: 30px;
    }
}

/* ==========================
   WHATSAPP FLOATING BUTTON
========================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    z-index: 9999;
    transition: transform .35s ease, opacity .35s ease, visibility .35s ease;
    animation: whatsappPulse 2.5s infinite;
    will-change: transform, opacity;
}

.whatsapp-float:hover {
    color: white;
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    animation: none;
}

.whatsapp-float.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(.85);
    pointer-events: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 85px;
    white-space: nowrap;
    background: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes whatsappPulse {

    0% {
        box-shadow: 0 0 0 0 rgba(37,211,102,.40), 0 15px 40px rgba(0,0,0,.25);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(37,211,102,0), 0 15px 40px rgba(0,0,0,.25);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 15px 40px rgba(0,0,0,.25);
    }
}

@media (max-width:768px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 1.8rem;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* ==========================
   MODO OBSCURO
========================== */

.btn-theme {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .35s;
}

.btn-theme:hover {
    transform: translateY(-2px);
    background: var(--goma-red);
    color: white;
}

[data-theme="dark"] body::before {
    opacity: .08;
    filter: brightness(.7);
}