/* Variables de color y tipografía */
:root {
    --primary-color: #0b2559; /* Azul oscuro */
    --accent-color: #d31e25; /* Rojo */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografía común */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

.text-accent { color: var(--accent-color); }
.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: #081a40;
}

.btn-accent {
    background-color: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}
.btn-accent:hover {
    background-color: #b0181e;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Títulos pequeños rojos */
.over-title {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.over-title .line {
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    margin-right: 10px;
}
.over-title.justify-center {
    justify-content: center;
}
.over-title.justify-center .line {
    margin: 0 10px;
}

/* --- HEADER --- */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}
.nav-links {
    display: flex;
    gap: 30px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--font-heading);
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}
.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}
.phone-number {
    color: var(--accent-color);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 16px;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    min-height: 600px;
    position: relative;
    background: #fff;
    overflow: hidden;
}
.hero-content {
    flex: 1;
    padding: 60px 40px 60px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-text h1 {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.hero-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}
.hero-features {
    display: flex;
    gap: 30px;
    margin-top: auto;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}
.feature-item i {
    font-size: 24px;
    color: #ffd6d6; /* Icono rosado/rojo claro en la imagen */
    margin-bottom: 10px;
    /* Ajuste para que se parezca al diseño: contorno rojo, fondo transparente */
    color: var(--accent-color);
    background: #fff5f5;
    padding: 10px;
    border-radius: 50%;
}

.hero-image {
    flex: 1.2;
    position: relative;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.red-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-color: var(--accent-color);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: 10;
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- SERVICIOS --- */
.services {
    padding: 80px 0;
    background-color: var(--bg-light);
}
.services h2 {
    font-size: 36px;
    margin-bottom: 10px;
}
.services .subtitle {
    color: var(--text-light);
    margin-bottom: 50px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}
.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
}
.card-image {
    position: relative;
    height: 200px;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-icon {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    border: 3px solid #fff;
}
.card-content {
    padding: 35px 20px 20px;
}
.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.card-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    min-height: 60px;
}
.read-more {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 13px;
    font-family: var(--font-heading);
}

/* --- SOBRE NOSOTROS --- */
.about {
    padding: 80px 0;
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr 250px;
    gap: 40px;
    align-items: center;
}
.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.about-image img {
    width: 100%;
    height: auto;
    display: block;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #fff;
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}
.about-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
}
.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
}
.check-list li {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}
.check-list i {
    margin-right: 10px;
}
.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.stat-icon {
    width: 40px;
    height: 40px;
    background: #e6ebf5;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}
.stat-info strong {
    display: block;
    color: var(--primary-color);
    font-size: 20px;
    font-family: var(--font-heading);
}
.stat-info span {
    font-size: 12px;
    color: var(--text-light);
}

/* --- FOOTER CTA --- */
.bottom-cta {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 40px 0;
}
.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.cta-text h2 {
    font-size: 24px;
    margin-bottom: 5px;
}
.cta-text p {
    font-size: 14px;
    color: var(--text-light);
}
.cta-features {
    display: flex;
    gap: 30px;
}
.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dark);
}
.cta-feature i {
    font-size: 24px;
    color: var(--primary-color);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-content {
        padding: 40px 20px;
    }
    .about-container {
        grid-template-columns: 1fr 1fr;
    }
    .about-stats {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
    }
    .cta-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu, .header-contact {
        display: none; /* Oculto en móvil por defecto */
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero {
        flex-direction: column;
    }
    .hero-image {
        clip-path: none;
        height: 300px;
    }
    .red-shape {
        display: none;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-features {
        flex-wrap: wrap;
        justify-content: center;
    }
    .about-container {
        grid-template-columns: 1fr;
    }
    .about-stats {
        flex-direction: column;
    }
    .cta-features {
        flex-direction: column;
        gap: 15px;
        text-align: left;
    }
    
    /* Clase añadida por JS para mostrar menú */
    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
}