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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    color: #111827;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

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

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.main-header {
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0.5rem;
}

.brand-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4b5563;
    background: #e5e7eb;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}

.brand h1 {
    font-size: clamp(1.5rem, 2.2vw + 1rem, 2.2rem);
    letter-spacing: 0.06em;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: #4b5563;
    max-width: 34rem;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.main-nav a {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.main-nav a:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    transform: translateY(-1px);
}

.hero {
    padding: 3.5rem 0 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-text h2 {
    font-size: clamp(1.7rem, 2.4vw + 1rem, 2.4rem);
    margin-bottom: 0.8rem;
}

.hero-text p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.pill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill-list li {
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.hero-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-block {
    padding: 1.4rem 1.3rem;
    border-radius: 1rem;
    background: radial-gradient(circle at top left, #e0f2fe 0, #eff6ff 40%, #ffffff 100%);
    border: 1px solid #dbeafe;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.info-block.small {
    background: #111827;
    color: #f9fafb;
    border-color: #111827;
}

.info-block h3,
.info-block h4 {
    margin-bottom: 0.6rem;
}

.section {
    padding: 3rem 0;
}

.section-alt {
    background: #f9fafb;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.section p {
    color: #4b5563;
}

.history-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: start;
}

.history-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.card {
    border-radius: 1rem;
    padding: 1.2rem 1.3rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.card h3 {
    margin-bottom: 0.4rem;
}

.card p,
.card li {
    font-size: 0.9rem;
    color: #4b5563;
}

.services-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.3rem;
}

.services-grid ul {
    margin-top: 0.5rem;
    padding-left: 1.1rem;
}

.cctv-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 2rem;
    align-items: stretch;
}

.benefits ul {
    list-style: disc;
    padding-left: 1.1rem;
    margin-top: 0.4rem;
}

.fibra-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 2rem;
    align-items: start;
}

.fibra-grid ul {
    list-style: disc;
    padding-left: 1.1rem;
    margin-top: 0.4rem;
}

.contact-section {
    border-top: 1px solid #e5e7eb;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 2rem;
}

.contact-list {
    list-style: none;
    margin-top: 0.6rem;
}

.contact-list li {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.contact-list a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.contact-note {
    background: #111827;
    color: #f9fafb;
}

.main-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.3rem 0 1.5rem;
    background: #ffffff;
    margin-top: 1rem;
}

.main-footer p {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

/* Animaciones reveal */

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-grid,
    .history-grid,
    .cctv-grid,
    .fibra-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .main-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

    .hero {
        padding-top: 2.5rem;
    }
}


/* Imágenes dentro de las tarjetas de servicios */
.service-image {
    margin-top: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}


/* Mejoras visuales de color */
body {
    background:
        radial-gradient(circle at 90% 10%, rgba(59,130,246,0.10), transparent 35%),
        radial-gradient(circle at 10% 30%, rgba(16,185,129,0.08), transparent 40%),
        #ffffff;
}
.main-header { background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); }
.brand h1 { background: linear-gradient(90deg,#0f172a,#1d4ed8,#0ea5e9); -webkit-background-clip:text; background-clip:text; color:transparent; }
.main-nav a:hover { background: linear-gradient(90deg,#dbeafe,#ecfeff); border-color:#93c5fd; }
.hero { background: linear-gradient(180deg, rgba(219,234,254,.45), rgba(236,253,245,.35) 55%, rgba(255,255,255,0) 100%); }
.hero-grid { grid-template-columns: minmax(0,1.6fr) minmax(0,1.1fr) minmax(0,1.2fr); }
.hero-visual img { width:100%; border-radius:1rem; border:1px solid #bfdbfe; box-shadow:0 20px 40px rgba(30,64,175,.18); object-fit:cover; height:100%; min-height:320px; }
.hero-badges { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.75rem; }
.hero-badges span { font-size:.78rem; padding:.35rem .65rem; border-radius:999px; background:linear-gradient(90deg,#0ea5e9,#2563eb); color:#fff; box-shadow:0 8px 16px rgba(37,99,235,.22); }
.services-grid .card:nth-child(1){border-top:3px solid #2563eb;}
.services-grid .card:nth-child(2){border-top:3px solid #0ea5e9;}
.services-grid .card:nth-child(3){border-top:3px solid #10b981;}
.services-grid .card:nth-child(4){border-top:3px solid #8b5cf6;}
.services-grid .card:nth-child(5){border-top:3px solid #ef4444;}
.services-grid .card:nth-child(6){border-top:3px solid #f59e0b;}
.services-grid .card:nth-child(7){border-top:3px solid #14b8a6;}
.section-lead { margin-bottom: 1rem; }
.gallery-grid { margin-top:1rem; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; }
.gallery-card { background:#fff; border:1px solid #dbeafe; border-radius:1rem; overflow:hidden; box-shadow:0 10px 28px rgba(30,64,175,.08);}
.gallery-card img { width:100%; height:170px; object-fit:cover; }
.gallery-card figcaption { padding:.75rem .85rem; font-size:.88rem; color:#334155; background:linear-gradient(180deg,#fff,#f8fafc);}
.contact-note { background: linear-gradient(135deg,#0f172a,#1d4ed8); }
@media (max-width:1100px){ .hero-grid{ grid-template-columns:1fr; } }
