/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --yellow: #F5C518;
    --yellow-dark: #d4a90f;
    --dark: #0D1117;
    --dark2: #161B22;
    --dark3: #21262D;
    --gray: #8B949E;
    --light: #F0F6FC;
    --white: #FFFFFF;
    --green-wa: #25D366;
    --green-wa-dark: #1ebe5a;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--yellow);
    color: var(--dark);
}
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,197,24,0.35); }

.btn-whatsapp {
    background: var(--green-wa);
    color: var(--white);
}
.btn-whatsapp:hover { background: var(--green-wa-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.35); }

.btn-nav {
    background: var(--green-wa);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.875rem;
}
.btn-nav:hover { background: var(--green-wa-dark); }

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(13,17,23,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(13,17,23,0.99);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon { font-size: 1.5rem; }

.logo-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--yellow);
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-sub {
    display: block;
    font-size: 0.65rem;
    color: var(--gray);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--yellow); }

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    margin-left: auto;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--dark2);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-mobile.open { display: flex; }
.nav-mobile li a {
    display: block;
    padding: 14px 24px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.2s, background 0.2s;
}
.nav-mobile li a:hover { color: var(--yellow); background: rgba(245,197,24,0.05); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0D1117 0%, #161B22 50%, #1a1f2e 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 68px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(245,197,24,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37,211,102,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-overlay { position: absolute; inset: 0; }

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 24px;
    max-width: 760px;
}

.hero-badge {
    display: inline-block;
    background: rgba(245,197,24,0.12);
    color: var(--yellow);
    border: 1px solid rgba(245,197,24,0.25);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.highlight { color: var(--yellow); }

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    max-width: 580px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.12);
}

/* ===== SECTION BASE ===== */
.section { padding: 96px 0; }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    margin: 8px 0 14px;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 480px;
    margin: 0 auto;
}

.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.6); }

.section-badge {
    display: inline-block;
    background: rgba(245,197,24,0.1);
    color: var(--yellow-dark);
    border: 1px solid rgba(245,197,24,0.2);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-badge.alt {
    background: rgba(245,197,24,0.15);
    color: var(--yellow);
    border-color: rgba(245,197,24,0.3);
}

/* ===== SOBRE ===== */
.sobre { background: var(--white); }

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.sobre-text .section-badge { margin-bottom: 12px; }

.sobre-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.sobre-text p {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 16px;
}

.pilares {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
}

.pilar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.pilar-icon { font-size: 1.1rem; }

.mision-vision {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mv-card {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.06);
}

.mv-icon { font-size: 1.6rem; margin-bottom: 12px; }

.mv-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.mv-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}

/* ===== SERVICIOS ===== */
.servicios { background: #F8F9FA; }

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.servicio-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid #E9ECEF;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--yellow);
}

.servicio-card.featured {
    background: var(--dark);
    border-color: var(--yellow);
    box-shadow: 0 0 0 1px var(--yellow), var(--shadow);
}

.servicio-card.featured h3 { color: var(--white); }
.servicio-card.featured p { color: rgba(255,255,255,0.55); }
.servicio-card.featured li { color: rgba(255,255,255,0.75); }
.servicio-card.featured li::before { color: var(--yellow); }

.featured-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--yellow);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0 var(--radius) 0 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.servicio-icon { font-size: 2rem; margin-bottom: 16px; }

.servicio-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.servicio-card > p {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 16px;
}

.servicio-card ul { display: flex; flex-direction: column; gap: 6px; }

.servicio-card li {
    font-size: 0.85rem;
    color: #555;
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.servicio-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--yellow-dark);
    font-weight: 700;
}

/* ===== DIFERENCIALES ===== */
.diferenciales {
    background: var(--dark);
}

.diferenciales-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.diferencial {
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.25s;
}

.diferencial:hover {
    border-color: var(--yellow);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245,197,24,0.1);
}

.dif-icon { font-size: 1.8rem; display: block; margin-bottom: 14px; }

.diferencial h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.diferencial p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, var(--yellow) 0%, #e8b800 100%);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.25;
}

.cta-content p {
    font-size: 1.05rem;
    color: rgba(13,17,23,0.65);
    margin-bottom: 36px;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: var(--dark);
    color: var(--white);
}

.cta .btn-primary:hover {
    background: #1a1f2e;
    box-shadow: 0 6px 20px rgba(13,17,23,0.25);
}

/* ===== CONTACTO ===== */
.contacto { background: var(--white); }

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacto-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contacto-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

.contacto-item h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    margin-bottom: 4px;
}

.contacto-item a,
.contacto-item span {
    display: block;
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.2s;
}

.contacto-item a:hover { color: var(--yellow-dark); }

/* FORM */
.contacto-form {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid rgba(255,255,255,0.06);
}

.contacto-form h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--white);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--yellow);
    background: rgba(245,197,24,0.05);
}

.form-group select option { background: var(--dark2); color: var(--white); }
.form-group textarea { resize: vertical; }

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray);
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--yellow); }

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ===== WhatsApp flotante ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    background: var(--green-wa);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    transition: all 0.25s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: var(--green-wa-dark);
    transform: scale(1.08);
    animation: none;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* ===== TRABAJOS REALIZADOS ===== */
.trabajos { background: #F8F9FA; }

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.galeria-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: #e0e0e0;
    position: relative;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
    display: block;
}

.galeria-item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(13,17,23,0.45);
    opacity: 0;
    transition: opacity 0.25s;
}

.galeria-item:hover img { transform: scale(1.07); filter: brightness(0.85); }
.galeria-item:hover::after { opacity: 1; }

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.lightbox.active { display: flex; }

.lightbox-img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 60px rgba(0,0,0,0.6);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    font-size: 1.3rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 52px; height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(245,197,24,0.35); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
    .servicios-grid { grid-template-columns: repeat(2, 1fr); }
    .diferenciales-grid { grid-template-columns: repeat(2, 1fr); }
    .contacto-grid { grid-template-columns: 1fr; }
    .galeria-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .nav-links, .btn-nav { display: none; }
    .hamburger { display: block; }
    .section { padding: 64px 0; }
    .servicios-grid { grid-template-columns: 1fr; }
    .diferenciales-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    .hero-stats { gap: 16px; }
    .galeria-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-num { font-size: 1.4rem; }
    .cta-btns { flex-direction: column; align-items: center; }
    .contacto-form { padding: 24px 20px; }
    .footer-links { gap: 16px; }
}
