/* Estilos específicos para empresa.html */
.empresa-hero {
    background-color: #103464;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.empresa-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.empresa-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
}

.historia {
    padding: 80px 0;
}

.historia-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.historia-text {
    flex: 1;
}

.historia-text h2 {
    color: #103464;
    margin-bottom: 20px;
}

.historia-image {
    flex: 1;
}

.historia-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.porque-elegirnos {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.porque-elegirnos h2 {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.porque-elegirnos h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: #FFD700;
}

.razones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.razon-item {
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid #103464;
}

.razon-item:hover {
    transform: translateY(-5px);
}

.razon-item h3 {
    color: #103464;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.contacto-empresa {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contacto-empresa h3 {
    color: #103464;
    margin-bottom: 15px;
}

.btn-primary {
    display: inline-block;
    background-color: #FFD700;
    color: #103464;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #e6c200;
}

/* Sección de Estadísticas Mejorada */
.estadisticas-mejoradas {
    padding: 100px 0;
    background: linear-gradient(135deg, #0c2a4d 0%, #103464 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.estadisticas-mejoradas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.05"><circle cx="50" cy="50" r="40" stroke="%23FFD700" stroke-width="2" fill="none" /></svg>');
    background-size: 120px 120px;
}

.estadisticas-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
    position: relative;
}

.estadisticas-titulo::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

.estadisticas-subtitulo {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.stats-grid-mejorado {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item-mejorado {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-item-mejorado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #103464, #FFD700);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item-mejorado:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-item-mejorado:hover::before {
    opacity: 1;
}

.stat-icono {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.stat-contenedor-numero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.stat-numero {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFD700;
    line-height: 1;
}

.stat-mas {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFD700;
    margin-left: 5px;
}

.stat-numero-telefono {
    font-size: 2.2rem;
    font-weight: 700;
    color: #FFD700;
    letter-spacing: 1.5px;
}

.stat-etiqueta {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFD700;
}

.stat-descripcion {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
}

.estadisticas-nota {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
    margin-top: 30px;
}

/* Efectos de conteo animado (se activarán con JavaScript) */
.stat-numero.contando {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* -------- RESPONSIVE -------- */

/* Tablets (pantallas menores a 992px) */
@media (max-width: 991px) {
    .empresa-hero {
        padding: 70px 20px;
    }

    .empresa-hero h1 {
        font-size: 2.2rem;
    }

    .empresa-hero p {
        font-size: 1.1rem;
    }

    .historia {
        padding: 60px 20px;
    }

    .historia-content {
        flex-direction: column;
        text-align: center;
    }

    .historia-image {
        margin-top: 25px;
    }

    .porque-elegirnos {
        padding: 60px 20px;
    }

    .estadisticas-mejoradas {
        padding: 70px 20px;
    }

    .estadisticas-titulo {
        font-size: 2rem;
    }

    .estadisticas-subtitulo {
        font-size: 1rem;
    }
}

/* Móviles (pantallas menores a 600px) */
@media (max-width: 600px) {
    .empresa-hero {
        padding: 50px 15px;
    }

    .empresa-hero h1 {
        font-size: 1.8rem;
    }

    .empresa-hero p {
        font-size: 1rem;
    }

    .historia {
        padding: 40px 15px;
    }

    .porque-elegirnos h2 {
        font-size: 1.6rem;
    }

    .razones-grid {
        grid-template-columns: 1fr;
    }

    .contacto-empresa {
        padding: 25px 15px;
    }

    .estadisticas-titulo {
        font-size: 1.8rem;
    }

    .estadisticas-subtitulo {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .stats-grid-mejorado {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stat-numero {
        font-size: 2.5rem;
    }

    .stat-mas {
        font-size: 1.8rem;
    }

    .stat-etiqueta {
        font-size: 1rem;
    }
}