:root {
    --bg: #0b0f19;
    --bg-image: linear-gradient(180deg, rgba(9, 13, 22, 0.82) 0%, rgba(9, 13, 22, 0.95) 100%), 
                url('https://images.unsplash.com/photo-1558002038-1055907df827?auto=format&fit=crop&w=1920&q=80');
    --surface: rgba(17, 24, 39, 0.75);
    --surface-card: rgba(31, 41, 55, 0.65);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.12);
    --header-bg: rgba(9, 13, 22, 0.85);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    --logo-bg-from: #ff5500;
    --logo-bg-to: #84ae04;
    --logo-text-color: #ffffff;
    --nav-link-color: #94a3b8;
    --nav-link-hover: #ff5500;
    --badge-guardia-bg: rgba(34, 197, 94, 0.15);
    --badge-guardia-text: #22c55e;
    --hero-title-accent: #ff5500;
    --service-title-color: #9fc50a;
    --service-desc-color: #e2e8f0;
    --service-card-hover-border: #ff5500;
    --stat-number-color: #ff5500;
    --stat-label-color: #94a3b8;
    --check-list-icon: #25eb46;
    --btn-wa-bg-from: #25d366;
    --btn-wa-bg-to: #128c7e;
}

[data-theme="light"] {
    --bg: #f1f5f9;
    --bg-image: linear-gradient(180deg, rgba(241, 245, 249, 0.88) 0%, rgba(241, 245, 249, 0.95) 100%), 
                url('https://images.unsplash.com/photo-1558002038-1055907df827?auto=format&fit=crop&w=1920&q=80');
    --surface: rgba(255, 255, 255, 0.85);
    --surface-card: rgba(255, 255, 255, 0.9);
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.88);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --logo-text-color: #0f172a;
    --nav-link-color: #475569;
    --service-desc-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg);
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER & NAVBAR */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--logo-text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: linear-gradient(135deg, var(--logo-bg-from), var(--logo-bg-to));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--nav-link-color);
    text-decoration: none;
    font-weight: 600;
}

.theme-toggle, .mobile-toggle {
    background: var(--surface-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: none;
}

/* HERO SECTION */
.hero-banner {
    padding: 4rem 2rem 2rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* BADGE CON RADAR */
.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--badge-guardia-bg);
    border: 1px solid var(--badge-guardia-text);
    color: var(--badge-guardia-text);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--badge-guardia-text);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--badge-guardia-text);
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.hero-title span {
    color: var(--hero-title-accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 1.5rem;
}

/* BANNER PRINCIPAL (HERO) - Imagen libre y rectangular sin afectar el diseño */
.hero-image-container {
    width: 100%;
    max-width: 690px; /* Ancho que tenías originalmente */
    height: 420px;    /* Aumentá o disminuí este valor para hacerla más rectangular a tu gusto */
    transform: translateY(0px); /* Cambiá este valor (ej: -20px para subirla o 20px para bajarla) */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    justify-self: end;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* BOTONES HERO - Achicados y desplazados un poco hacia la derecha */
.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    margin-left: 15px; /* Los desplaza sutilmente hacia la derecha */
}

.hero-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px; /* Botones más compactos y finos */
    border-radius: 8px;
    font-size: 0.9rem; /* Letra un poco más chica */
    font-weight: 700;
    text-decoration: none;
    color: #ffffff !important;
}

.btn-hero-call { background-color: #c91818 !important; }
.btn-hero-wa { background-color: #25d366 !important; }

/* SECCIÓN SERVICIOS */
.services-section {
    padding: 3rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 3px;
    background: linear-gradient(90deg, #ff5500, #84ae04);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #ff5500;
    box-shadow: none !important;
}

.card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .card-img-wrapper img {
    transform: scale(1.06);
}

.card-body {
    padding: 30px;
}

.card-body h3 {
    color: var(--service-title-color);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card-body p {
    color: var(--service-desc-color);
}

/* ESTADÍSTICAS */
.stats-horizontal-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-cloud {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-cloud:hover {
    transform: translateY(-4px);
    border-color: #ff5500;
    box-shadow: none !important;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--stat-number-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--stat-label-color);
}

/* SECCIÓN EMPRESA */
.why-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 5rem 2rem;
}

.why-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-list {
    list-style: none;
    margin-top: 30px;
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.why-list i {
    color: var(--check-list-icon);
}

.why-image img {
    width: 100%;
    border-radius: 20px;
}

/* EFECTOS PARA LOS BOTONES DEL HERO */
.hero-actions .btn-hero {
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.hero-actions .btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: none !important;
}

.hero-actions .btn-hero-call:hover {
    border-color: #ff5500;
}

.hero-actions .btn-hero-wa:hover {
    border-color: #25d366;
}

/* FOOTER & BOTONES FLOTANTES (ABAJO A LA DERECHA) */
.footer {
    position: relative;
    padding: 4rem 2rem 3rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    background: var(--header-bg);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.floating-buttons-container {
    position: absolute;
    right: 20px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.btn-float {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.btn-float:hover {
    transform: scale(1.08);
    border-color: #ff5500;
    box-shadow: none !important;
}

.btn-float-call { background-color: #c91818; }
.btn-float-wa { background-color: #25d366; }