:root {

    /* ========================================
       BACKGROUNDS
    ======================================== */
    --card-bg: #ffffff;
    --section-bg: #f8fafc;

    /* Usado principalmente en contacto */
    --bg-secondary: #f3f3f3;
    --bg-secondary-alpha: #f3f3f3CC;

    /* Usado por el modal */
    --soft: #f8fafc;

    /* ========================================
       BRAND COLORS
    ======================================== */
    --primary: #c81919;
    --primary-dark: #a91414;
    --navy: #1e293b;

    /* ========================================
       TEXT COLORS
    ======================================== */
    /* Variables existentes */
    --text: #475569;
    --text-a: #535b77;
    --text-soft: #94a3b8;
    --text-alternative-soft: #8892a1;

    /* Sistema homologado */
    --title-color: #1e293b;
    --muted-color: #64748b;

    /* ========================================
       BORDERS
    ======================================== */
    --border-color: #e5e7eb;

    /* ========================================
       LAYOUT / SPACING
    ======================================== */
    --section-space: 90px;
    --section-space-mobile: 65px;

    /* ========================================
       BORDER RADIUS
    ======================================== */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* ========================================
       SHADOWS
    ======================================== */
    --shadow-card:
        0 12px 30px rgba(15, 23, 42, 0.06);
    --shadow-hover:
        0 20px 40px rgba(15, 23, 42, 0.10);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    color:var(--text);
    overflow-x:hidden;
    background:
        radial-gradient(
            circle at 85% 50%,
            rgba(220, 230, 240, 0.7),
            transparent 45%
        ),
        linear-gradient(
            90deg,
            #ffffff 0%,
            #f7f9fc 100%
        );
}

a{
    color:var(--text-a)
}

/* ===== SCROLL ===== */
::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:var(--bg-secondary);
}

::-webkit-scrollbar-thumb{
    background:#4f46e5;
    border-radius:20px;
}

/* ===== GLOBAL ===== */
#img-logo{
    width: 400px;
    max-width: 400px;
}

.container{
    width:92%;
    max-width:1400px;
    margin:auto;
}

.btn-hero{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1E2A3B;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}
.btn-hero i {
    font-size: 16px;
    transition: transform 0.25s ease;
}
.btn-hero:hover {
    color: var(--primary);
}

.btn-hero:hover i {
    transform: translateX(5px);
}

.btn-cotizacion{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    background-color: #C81919;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.btn-cotizacion i {
    font-size: 20px;
}
.btn-cotizacion:hover {
    background-color: #A81212;
    color: #ffffff;
    /* transform: translateY(-2px); */
    box-shadow: 0 10px 25px rgba(200, 25, 25, 0.25);
}

/* ===== HERO ===== */
.hero{
    min-height:90vh;
    padding: 60px 0 60px;
    display:flex;
    align-items:center;
    overflow:hidden;
    position: relative;
    background:
        linear-gradient(
            110deg,
            #ffffff 0%,
            #f7f8fa 55%,
            #e9edf2 100%
        );
}

.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    right: -180px;
    top: -100px;
    background: #c8101e;
    clip-path: polygon(
        50% 0,
        100% 0,
        100% 100%,
        0 100%
    );
    opacity: .06;
}

.hero::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 100%;
    right: 42%;
    top: 0;
    background: linear-gradient(
        transparent,
        rgba(25, 45, 65, .15),
        transparent
    );
}

.hero-grid{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:80px;
    align-items:center;
    position:relative;
    z-index:2;
}
.hero-text small{
    display:inline-block;
    padding:10px 18px;
    background:rgba(255,255,255,.06);
    border:1px solid var(--border);
    border-radius:50px;
    margin-bottom:30px;
    color: var(--primary);
}
.hero-text small {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-text small::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--primary);
}
.hero-text h1{
    font-size: clamp(3.5rem, 4.8vw, 5.4rem);
    line-height: .98;
    letter-spacing: -2.5px;
    font-weight: 700;
    margin: 0 0 28px;
    margin-bottom: 34px;
}
.hero-text h1::after {
    bottom: -14px;
}
h1 span{
    color: var(--primary);
    position: relative;
}
.hero-text h1 span::after {
    content: "";
    position: absolute;
    width: 35%;
    height: 4px;
    left: 0;
    bottom: -6px;
    background: var(--primary);
}
.hero-text h2{
    color: var(--text-soft);
    margin: 0 0 32px;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 560px;
}
.hero-buttons{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 360px;
    top: -20px;
    right: -40px;
    background: var(--primary);
    clip-path: polygon(
        25% 0,
        100% 0,
        100% 100%,
        0 100%
    );
    z-index: -1;
}

.hero-card {
    position: relative;
    padding: 18px;
    background: #f7f9fb;
    border: 1px solid rgba(20, 40, 60, .08);
    border-radius: 0;
    overflow: visible;
    box-shadow:
        0 30px 70px rgba(15, 30, 45, .14);
}

.hero-card::before {
    content: "";
    position: absolute;
    top: -14px;
    left: -14px;
    width: 90px;
    height: 90px;
    border-top: 4px solid var(--primary);
    border-left: 4px solid var(--primary);
}
.hero-card img {
    width: 100%;
    display: block;
    object-fit: cover;
    filter:
        drop-shadow(0 25px 35px rgba(0,0,0,.18));
}

/* ===== BRANDS ===== */
.brands{
    padding:50px 0;
    border-top:1px solid rgba(255,255,255,.05);
    border-bottom:1px solid rgba(255,255,255,.05);
    background:var(--bg-secondary);
}
.brand {
    width: 200px;
}
.brands-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
    flex-wrap:wrap;
}
.brand{
    color:var(--text-soft);
    font-size:28px;
    font-weight:700;
    opacity:.7;
}
.extra{
        display: block;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }
    .hero::after {
        display: none;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-text h1 {
        font-size: clamp(2.7rem, 11vw, 3.4rem);
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: clamp(2.7rem, 12vw, 3.4rem);
        line-height: .95;
        letter-spacing: -1.5px;
    }
    .hero-text small {
        font-size: .68rem;
        letter-spacing: 1px;
        gap: 8px;
    }
    .hero-text small::before {
        width: 28px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 45px;
    }
    .hero-text h1 {
        font-size: 2.75rem;
    }
    .hero-text h2 {
        font-size: 1rem;
    }
    .hero-grid {
        gap: 35px;
    }
}

/* ========================================
   SECTION SYSTEM
======================================== */
.site-section {
    padding: var(--section-space) 0;
}
.section-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}
.section-header {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}
.section-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.section-header h2 {
    margin: 0 0 16px;
    color: var(--title-color);
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 750;
}
.section-header h2 span {
    color: var(--primary);
}
.section-header p {
    margin: 0;
    color: var(--muted-color);
    font-size: 17px;
    line-height: 1.6;
}

@media (max-width: 768px) {
   
    .site-section {
        padding: var(--section-space-mobile) 0;
    }
    .section-container {
        width: min(100% - 32px, 1180px);
    }
    .section-header {
        margin-bottom: 45px;
    }
    .section-description {
        font-size: 16px;
    }
}

/* =========================================
    MODAL
========================================= */
.modal-content{
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(15,23,42,.28);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 1px solid #eef0f3;
    background: #fff;
}
.modal-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1.4px;
}
.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    transition: .2s ease;
}
.modal-close:hover {
    background: #f1f5f9;
    color: var(--primary);
}
.modal-body {
    display: grid;
    grid-template-columns: 47% 53%;
    min-height: 540px;
}

/* =========================================================
RESPONSIVE CLEAN VERSION
========================================================= */
@media (max-width:1200px){    
    .hero-grid{
        grid-template-columns:1fr;
        gap:50px;
        text-align:center;
    }
    .hero-text p{
        margin:auto auto 38px;
    }
    .hero-buttons{
        justify-content:center;
    }
    .hero-card{
        max-width:800px;
        margin:auto;
    }
}

@media (max-width:992px){
    .hero{
        padding-top:180px;
        padding-bottom:80px;
    }
    .hero-text h1{
        font-size:60px;
    }
    .section-title{
        font-size:46px;
    }
}

@media (max-width:768px){
    .container{
        width:92%;
    }
    .btn-hero{
        padding:12px 18px;
        font-size:14px;
    }
    .logo h2{
        font-size:22px;
    }
    .hero{
        padding-top:140px;
        min-height:auto;
    }
    .hero-grid{
        gap:40px;
    }
    .hero-text h1{
        font-size:48px;
        line-height:1;
    }
    .hero-text p{
        font-size:18px;
    }
    .hero-buttons .btn-custom{
        width:100%;
        justify-content:center;
    }
    .hero-buttons{
        flex-direction:column;
    }
    .hero-card{
        padding:20px;
        border-radius:24px;
    }
    .brands-row{
        justify-content:center;
        gap:20px;
    }
    .brand{
        font-size:18px;
    }
    .section-title{
        font-size:36px;
    }
    .section-subtitle{
        font-size:16px;
        margin-bottom:50px;
    }
}

@media (max-width: 575px) {
    .modal-body {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100%;
    }
}

@media (max-width:480px){
    #img-logo{
        width: 300px;
    }
    
    .logo h2{
        font-size:22px;
    }
    .logo-box{
        width:48px;
        height:48px;
    }
    .section-title{
        font-size:30px;
    }
    .extra{
        display: none;
    }
    .brand {
        width: 110px;
    }
}
