/* ===== Grupo Racciatti — Home ===== */
:root {
    --green: #3dc43f;
    --green-dark: #1a7a08;
    --green-deep: #0d4a05;
    --black: #080a08;
    --off-black: #111411;
    --surface: #141814;
    --surface-2: #1c221c;
    --border: rgba(61, 196, 63, 0.15);
    --border-bright: rgba(61, 196, 63, 0.4);
    --text: #e8f0e8;
    --text-muted: #aab8aa;
    --text-dim: #6b786b;
    --white: #f0f5f0;
    --radius: 16px;
    --maxw: 1180px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--black);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ===== Nav ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 18px 0;
    transition: background .3s var(--ease), padding .3s var(--ease);
}
.navbar.scrolled {
    background: rgba(8, 10, 8, 0.85);
    backdrop-filter: blur(14px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { display: block; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
    padding: 9px 20px; border-radius: 100px;
    background: var(--green); color: var(--black) !important;
    font-weight: 600 !important;
}
.nav-cta:hover { background: #4ad94c; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 100px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: transform .2s var(--ease), background .2s, box-shadow .2s;
    border: 1px solid transparent;
}
.btn-primary { background: var(--green); color: var(--black); }
.btn-primary:hover { background: #4ad94c; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(61,196,63,.25); }
.btn-outline { border-color: var(--border-bright); color: var(--text); }
.btn-outline:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 120px 24px 80px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(8,10,8,0.78) 0%, rgba(8,10,8,0.72) 45%, rgba(8,10,8,0.95) 100%),
        url('hero-ranger.jpg') center center / cover no-repeat;
    background-color: var(--black);
}
.hero-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 800px; height: 800px; pointer-events: none;
    background: radial-gradient(circle, rgba(61,196,63,.1) 0%, transparent 65%);
}
.hero-content { position: relative; max-width: 760px; }
.hero-tag {
    display: inline-block; font-size: 13px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; color: var(--green);
    padding: 7px 16px; border: 1px solid var(--border-bright); border-radius: 100px;
    margin-bottom: 28px;
}
.hero-title {
    font-size: clamp(2.8rem, 8vw, 5.5rem); font-weight: 800;
    line-height: 1.02; letter-spacing: -1px; text-transform: uppercase;
    margin-bottom: 24px;
    background: linear-gradient(100deg,
        #2bb83a 0%, #3dc43f 18%, #5dff6b 36%, #d8ffe0 50%,
        #ffffff 58%, #5dff6b 72%, #3dc43f 88%, #2bb83a 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 22px rgba(61, 196, 63, 0.28));
    animation: heroGradient 7s linear infinite;
}
@keyframes heroGradient {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-title { animation: none; }
}
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--text-muted); max-width: 600px; margin: 0 auto 38px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.scroll-indicator {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim);
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--green), transparent); animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.3;transform:scaleY(.6)} 50%{opacity:1;transform:scaleY(1)} }

/* ===== Sections ===== */
section { padding: 110px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; font-size: 13px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 16px;
}
.section-title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -1px; color: var(--white); }

/* ===== Unidades ===== */
.unidades-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.unidad-card {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px 32px;
    display: flex; flex-direction: column;
    transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.unidad-card:hover { transform: translateY(-6px); border-color: var(--border-bright); background: var(--surface-2); }
.unidad-card.featured { border-color: var(--border-bright); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.unidad-badge {
    position: absolute; top: 20px; right: 20px;
    font-size: 11px; font-weight: 600; letter-spacing: .5px;
    color: var(--black); background: var(--green);
    padding: 4px 12px; border-radius: 100px;
}
.unidad-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(61,196,63,.1); color: var(--green); margin-bottom: 24px;
}
.unidad-icon svg { width: 28px; height: 28px; }
.unidad-card h3 { font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.unidad-card p { font-size: 15px; color: var(--text-muted); flex-grow: 1; margin-bottom: 24px; }
.unidad-card p strong { color: var(--text); font-weight: 700; }
.unidad-brands { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.brand-chip {
    display: inline-flex; align-items: center; justify-content: center;
    height: 30px;
}
.brand-chip img { height: 28px; width: auto; display: block; }
.brand-chip.brand-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px; line-height: 1; letter-spacing: 1.5px;
    color: var(--text);
}
.unidad-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--green); transition: gap .2s; }
.unidad-link:hover { gap: 14px; }
.unidad-link[aria-disabled="true"] { color: var(--text-dim); pointer-events: none; }

/* ===== Nosotros ===== */
.nosotros-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.nosotros-text .section-tag, .nosotros-text .section-title { text-align: left; }
.nosotros-text .section-title { margin-bottom: 24px; }
.nosotros-text p { color: var(--text-muted); margin-bottom: 16px; }
.nosotros-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.stat-number { display: block; font-size: 2.4rem; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--text-muted); }

/* ===== Contacto / CTA ===== */
.contacto { text-align: center; }
.cta-content { max-width: 680px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -1px; color: var(--white); margin-bottom: 18px; }
.cta-desc { color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; }
.contacto-datos { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.dato {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 100px; padding: 12px 22px; font-size: 15px; color: var(--text);
    transition: border-color .2s, transform .2s;
}
a.dato:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.dato svg { color: var(--green); flex-shrink: 0; }

/* ===== Footer ===== */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 32px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--green); }
.footer-bottom { padding-top: 28px; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { font-size: 13px; color: var(--text-dim); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .unidades-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .nosotros-grid { grid-template-columns: 1fr; gap: 40px; }
    .nav-links { gap: 18px; }
    .nav-links li:not(:last-child) { display: none; }
    section { padding: 80px 0; }
}
@media (max-width: 480px) {
    .nosotros-stats { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
}
