/* CONFIGURACIÓN CORPORATIVA */
:root {
    --primary: #0077c8;
    --accent: #00b0ca;
    --nav-height: 75px;
    --light-gray: #f8f9fa;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body { font-family: 'Montserrat', sans-serif; color: #333; overflow-x: hidden; }

/* NAVBAR */
.navbar-brand { color: var(--primary) !important; font-size: 1.4rem; letter-spacing: -0.5px; }
.nav-link { font-weight: 600; color: #444 !important; font-size: 0.9rem; margin: 0 5px; }
.nav-link:hover { color: var(--primary) !important; }

.social-icon-nav { color: var(--primary); font-size: 1.2rem; transition: 0.3s; }
.social-icon-nav:hover { color: var(--accent); transform: scale(1.1); }

/* BOTÓN PREMIUM */
.btn-primary-custom {
    background: var(--accent); color: white; border-radius: 50px;
    padding: 10px 25px; font-weight: 700; border: none; transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,176,202,0.3);
}
.btn-primary-custom:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* SLIDER */
.carousel-item { height: 75vh; background-size: cover; background-position: center; }

/* TÍTULOS */
.section-title-premium {
    font-weight: 700; color: var(--primary); position: relative; display: inline-block; padding-bottom: 15px;
}
.section-title-premium::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px; background: var(--accent); border-radius: 10px;
}

#instalacionesSlider .carousel-item {
    height: 420px; /* puedes ajustar */
}

#instalacionesSlider .carousel-item img {
    height: 100%;
    object-fit: cover;
}

#instalacionesSlider .img-completa {
    object-fit: contain !important;
    background-color: #f8f9fa;
}

/* CARDS MISIÓN/VISIÓN */
.card-premium { border-radius: 20px; border: none; transition: 0.4s; min-height: 200px; display: flex; flex-direction: column; justify-content: center; }
.card-premium:hover { transform: translateY(-5px); }

/* ESPECIALIDADES */
.bg-light-blue { background-color: #f8fbff; }
.specialty-card-premium {
    background: white; padding: 30px 20px; border-radius: 20px; transition: 0.4s; border: 1px solid #eee; height: 100%;
}
.specialty-card-premium:hover { background: var(--primary); color: white; transform: translateY(-10px); }
.card-icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 15px; transition: 0.4s; }
.specialty-card-premium:hover .card-icon { color: white; }
.specialty-card-premium p { font-size: 0.85rem; line-height: 1.5; }

/* STAFF */
/* STAFF MEJORADO */
.staff-card-v2 {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    border: 1px solid #eee;
    transition: 0.4s ease;
}

.staff-img-wrapper {
    width: 100%;
    height: 320px; /* tamaño estándar */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
}

.staff-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* muestra la imagen completa */
    transition: transform 0.5s ease;
}

.staff-details {
    padding: 15px;
}
.text-accent { color: var(--accent); }

/* FOOTER */
.footer-text-light { color: #e2e8f0; font-size: 0.95rem; line-height: 1.7; }
.text-light { color: #f8f9fa !important; }
.text-accent { color: var(--accent) !important; }

/* WHATSAPP */
.whatsapp-btn {
    position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white;
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 30px; z-index: 1000; text-decoration: none; box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: 0.3s;
}
.whatsapp-btn:hover { transform: scale(1.1); color: white; }

/* Hover efecto premium */
.staff-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.staff-card-v2:hover img {
    transform: scale(1.08);
}


/*LOGO */
.logo-navbar {
    height: 48px;   /* un poco más grande */
    width: auto;
    transition: all 0.3s ease;
}

.logo-navbar:hover {
    transform: scale(1.04);
}

/* Tablet */
@media (max-width: 992px) {
    .logo-navbar {
        height: 40px;
    }
}

/* Móvil */
@media (max-width: 576px) {
    .logo-navbar {
        height: 34px;
    }
}

/* WHATSAPP */
/* CONTENEDOR */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* Tooltip estilo chat */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    bottom: 10px;
    background: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

/* Flechita del chat */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

/* Mostrar al hover */
.whatsapp-container:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Teléfono navbar */
.nav-phone-wrapper {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Ícono mismo color que redes */
.phone-icon {
    color: var(--primary);
    margin-right: 8px;
    font-size: 1.05rem;
}

/* Número mismo color que redes */
.nav-phone-text {
    color: var(--primary);
}

/* SECCIÓN ESTADÍSTICAS REFINADA */
.stats-section {
    padding: 40px 0; /* menos alto */
}

.stat-number {
    font-size: 2rem; /* más discreto */
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .carousel-item { height: 60vh; }
    .display-3 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .staff-img-wrapper {
        height: 250px;
    }
}

/* ESTADÍSTICAS ANIMACIÓN PREMIUM */

.stat-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bounce final sutil */
@keyframes countBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.stat-number.bounce {
    animation: countBounce 0.4s ease;
}

/* =========================
   RESEÑAS PROFESIONALES
========================= */

.reviews-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.google-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stars {
    color: #ffc107;
    font-size: 1rem;
    letter-spacing: 2px;
}

.review-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.review-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.review-card strong {
    font-size: 0.9rem;
    color: var(--primary);
}

/* Responsive ajuste */
@media (max-width: 768px) {
    .reviews-section {
        padding: 60px 0;
    }
}