:root {
    --primary-blue: #066fd1;
    --accent-red: #dd1c04;
    --accent-yellow: #fcd75e;
    --accent-green: #4ec590;
    --accent-cyan: #2484bb;
    --text-dark: #32393f;
    --text-light: #6c757d;
    --bg-color: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Color Bar Superior */
.top-color-bar {
    width: 100%;
    height: 5px;
    display: flex;
}
.top-color-bar > div {
    flex: 1;
}
.bar-red { background-color: var(--accent-red); }
.bar-yellow { background-color: var(--accent-yellow); }
.bar-green { background-color: var(--accent-green); }
.bar-blue { background-color: var(--accent-cyan); }

/* Header Minimalista */
.header {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-container img {
    height: 65px; /* Para el escudo (2da imagen) */
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text h1 span {
    color: var(--primary-blue);
}

/* Hero con Video de Fondo */
.hero {
    position: relative;
    padding: 7rem 2rem 5rem;
    text-align: center;
    color: var(--white);
    background-color: #32393f;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 400;
}

/* Services Minimalist Grid */
.services-container {
    max-width: 1100px;
    margin: -3rem auto 5rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-top: 4px solid var(--primary-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:nth-child(4n+1) { border-top-color: var(--primary-blue); }
.service-card:nth-child(4n+2) { border-top-color: var(--accent-red); }
.service-card:nth-child(4n+3) { border-top-color: var(--accent-green); }
.service-card:nth-child(4n+4) { border-top-color: var(--accent-yellow); }

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    transition: color 0.2s ease;
}

.service-card:nth-child(4n+1):hover .service-icon { color: var(--primary-blue); }
.service-card:nth-child(4n+2):hover .service-icon { color: var(--accent-red); }
.service-card:nth-child(4n+3):hover .service-icon { color: var(--accent-green); }
.service-card:nth-child(4n+4):hover .service-icon { color: var(--accent-yellow); }

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Footer con Beneficios */
.footer {
    margin-top: auto;
    background: var(--primary-blue);
    color: var(--white);
    padding: 2.5rem 5% 1rem;
}

.footer-benefits-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 1.5rem;
}

.footer-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    max-width: 200px;
    color: var(--white);
}

.benefits-list {
    display: flex;
    flex: 1;
    justify-content: space-evenly;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.benefit-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-width: 130px;
}

.benefit-item i {
    font-size: 2rem;
    color: var(--white);
    opacity: 0.9;
}

.icon-247 {
    width: 35px;
    height: 35px;
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    opacity: 0.9;
}

.benefit-item p {
    font-size: 0.85rem;
    line-height: 1.3;
    opacity: 0.85;
}

.footer-slogan {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slogan-seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 5px;
    transform: rotate(-4deg);
    color: var(--white);
}

.seal-top {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.seal-bottom {
    font-family: 'Pacifico', cursive, sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--accent-yellow);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .header {
        padding: 1rem 3%;
    }
}

@media (max-width: 900px) {
    .footer-benefits-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .footer-title h3 {
        text-align: center;
        max-width: none;
    }
    .slogan-seal {
        transform: rotate(0deg);
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    .hero {
        padding: 4rem 1.5rem 3.5rem;
    }
    .hero-content h2 {
        font-size: 2.2rem;
    }
    .services-container {
        padding: 0 1.5rem;
        margin-top: -2.5rem;
    }
    .footer {
        padding: 2rem 5% 1rem;
    }
}

@media (max-width: 480px) {
    .logo-container img {
        height: 55px;
    }
    .logo-text h1 {
        font-size: 1rem;
    }
    .header > div:last-child {
        font-size: 0.8rem;
    }
    .hero {
        padding: 3rem 1rem 2.5rem;
    }
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .services-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin-top: -2rem;
    }
    .benefits-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .seal-bottom {
        font-size: 1.4rem;
    }
}
