/* ========================================================================== 
   CONFIGURACIONES DE COLOR E IDENTIDAD DE MARCA 
   ========================================================================== */ 
:root { 
    --gradient-brand: linear-gradient(135deg, #E91E63 0%, #8E24AA 50%, #303F9F 100%); 
    --purple-main: #8E24AA;        
    --pink-accent: #E91E63;        
    --blue-accent: #303F9F;        
    --purple-light: #F3E5F5;       
    --dark-text: #2B2B30; 
    --gray-muted: #5F5F64; 
    --white: #ffffff; 
    --gray-light: #F9FAFC; 
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
} 
 
/* --- ESTILOS BASE Y RESETS --- */ 
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
} 
 
html { 
    scroll-behavior: smooth; 
} 
 
body { 
    color: var(--dark-text); 
    line-height: 1.6; 
    position: relative; 
    overflow-x: hidden; 
} 
 
/* ========================================================================== 
   FONDO GENERAL 
   ========================================================================== */ 
.main-site-body { 
    background-color: #8E24AA; 
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
        url("img/fondo.png"); 
         
    background-attachment: fixed; 
    background-size: 240px auto, auto; 
    min-height: 100vh; 
} 
 
a { 
    text-decoration: none; 
    color: inherit; 
} 
 
ul { 
    list-style: none; 
} 
 
.container { 
    width: 92%; 
    max-width: 1200px; 
    margin: 0 auto; 
} 
 
/* ========================================================================== 
   BOTONES
   ========================================================================== */ 
.btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    padding: 14px 34px; 
    color: var(--white); 
    border-radius: 50px; 
    font-weight: 600; 
    border: none; 
    cursor: pointer; 
    transition: var(--transition-smooth); 
    box-shadow: 0 5px 20px rgba(123, 31, 162, 0.25); 
} 
 
.btn-gradient { 
    background: var(--gradient-brand) !important; 
} 
 
.btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(206, 26, 122, 0.4); 
    opacity: 0.95; 
} 
 
.btn-white { 
    background: var(--white); 
    color: var(--purple-main); 
} 
 
.btn-white:hover { 
    background: var(--purple-light); 
} 
 
.btn-whatsapp { 
    background: #25D366; 
    color: var(--white); 
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2); 
} 
 
.btn-whatsapp:hover { 
    background: #20ba59; 
} 
 
.btn-nav { 
    padding: 10px 22px; 
    font-size: 14px; 
} 
 
/* ========================================================================== 
   CABECERA Y LOGO 
   ========================================================================== */ 
.main-header { 
    background-color: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(12px); 
    box-shadow: 0 4px 30px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
} 
 
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 0; 
} 
 
.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
} 
 
.logo img { 
    height: 150px; 
    width: auto; 
} 
 
.logo-text { 
    font-size: 22px; 
    font-weight: 700; 
    background: var(--gradient-brand); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    display: block; 
} 
 
.logo-text small { 
    display: block; 
    font-size: 12px; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    font-weight: 500; 
    color: var(--blue-accent); 
} 
 
.nav-menu { 
    display: flex; 
    gap: 25px; 
} 
 
.nav-link { 
    font-weight: 600; 
    font-size: 15px; 
    color: var(--dark-text); 
    transition: var(--transition-smooth); 
    padding: 8px 0; 
    position: relative; 
} 
 
.nav-link:hover, .nav-link.active { 
    color: var(--pink-accent); 
} 
 
.nav-link::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 3px; 
    background: var(--gradient-brand); 
    transition: var(--transition-smooth); 
} 
 
.nav-link:hover::after, .nav-link.active::after { 
    width: 100%; 
} 
 
.menu-toggle { 
    display: none; 
    font-size: 26px; 
    background: none; 
    border: none; 
    color: var(--purple-main); 
    cursor: pointer; 
} 
 
/* ========================================================================== 
   SECCIÓN INICIO (HERO) 
   ========================================================================== */ 
.hero { 
    padding: 60px 0; 
} 
 
.hero-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: center; 
} 
 
.hero-subtitle { 
    display: inline-block; 
    font-weight: 600; 
    color: #ffffff; 
    background-color: rgba(233, 30, 99, 0.9); 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-size: 14px; 
    margin-bottom: 20px; 
} 
 
.hero-text h1 { 
    font-size: 42px; 
    color: var(--purple-main); 
    line-height: 1.2; 
    margin-bottom: 25px; 
    font-weight: 700; 
} 
 
.hero-text p { 
    font-size: 17px; 
    margin-bottom: 35px; 
    color: var(--dark-text); 
} 
 
.hero-buttons { 
    display: flex; 
    gap: 15px; 
} 
 
.carousel-container { 
    position: relative; 
    width: 100%; 
    height: 400px; 
    border-radius: 24px; 
    overflow: hidden; 
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15); 
    border: 6px solid var(--white); 
} 
 
.carousel-slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 0.8s ease-in-out; 
} 
 
.carousel-slide.active { 
    opacity: 1; 
    z-index: 2; 
} 
 
.carousel-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
} 
 
.carousel-caption { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: linear-gradient(transparent, rgba(0,0,0,0.75)); 
    color: var(--white); 
    padding: 25px 20px; 
    font-size: 16px; 
    font-weight: 600; 
    text-align: center; 
} 
 
.carousel-arrow { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(255, 255, 255, 0.9); 
    color: var(--purple-main); 
    border: none; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    font-size: 16px; 
    cursor: pointer; 
    z-index: 10; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
} 
 
.carousel-arrow.prev { left: 15px; } 
.carousel-arrow.next { right: 15px; } 
 
.carousel-dots { 
    position: absolute; 
    bottom: 15px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 10; 
    display: flex; 
    gap: 8px; 
} 
 
.carousel-dots .dot { 
    width: 10px; 
    height: 10px; 
    background: rgba(255, 255, 255, 0.5); 
    border-radius: 50%; 
    cursor: pointer; 
} 
 
.carousel-dots .dot.active { 
    background: var(--white); 
} 
 
/* ========================================================================== 
   ESTILOS DE BLOQUES CONTENEDORES INTERNOS 
   ========================================================================== */ 
.about, .services, .diplomas-section, .comments-section, .contact, .cta-section { 
    padding: 60px 40px; 
    text-align: center; 
    border-radius: 24px; 
    margin: 45px auto; 
    width: 92%; 
    max-width: 1200px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.12); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
} 
 
/* SECCIONES PREMIUM CON DEGRADADO Y MARCA */ 
.box-premium-degradado { 
    background-image: 
        linear-gradient(135deg, rgba(233, 30, 99, 0.82) 0%, rgba(142, 36, 170, 0.85) 50%, rgba(48, 63, 159, 0.85) 100%), 
        url("img/degradado fondo con perro 1.jpeg") !important; 
} 
 
.text-white { color: var(--white) !important; } 
.text-white-muted { color: rgba(255, 255, 255, 0.92) !important; } 
.text-shadow-strong { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); } 
 
/* Fondo Alternativo Alternado */ 
.box-bg-perro2 { 
    background-image: 
        linear-gradient(135deg, rgba(233,30,99,0.82) 0%, rgba(142,36,170,0.85) 50%, rgba(48,63,159,0.85) 100%), 
        url("img/degradado y fondo perrro.png"); 
} 
.box-bg-perro2 .section-title { 
    color: var(--white); 
    text-shadow: 0 2px 10px rgba(0,0,0,0.25); 
} 
.box-bg-perro2 .section-description.white-text { 
    color: rgba(255,255,255,0.9); 
} 
 
/* ========================================================================== 
   SISTEMA DE DISEÑO DE GRILLA FLEXIBLE (FILAS RIGIDAS REESTRUCTURADAS)
   ========================================================================== */ 
.custom-block-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.custom-row-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; 
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    width: 100%;
}

/* Tamaños proporcionales iniciales para PC */
.row-3-items > * { 
    width: calc(33.333% - 17px); 
    max-width: 350px; 
}

.row-2-items > * { 
    width: calc(50% - 13px); 
    max-width: 350px; 
}

.row-1-item > * { 
    width: calc(33.333% - 17px); 
    max-width: 350px; 
}

/* ========================================================================== 
   ESTILOS DE TARJETAS INDIVIDUALES 
   ========================================================================== */ 
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
} 
 
.service-card { 
    background-color: rgba(255, 255, 255, 0.95); 
    padding: 40px 30px; 
    border-radius: 20px; 
    text-align: center; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.04); 
    border: 1px solid #F0F0F0; 
    transition: var(--transition-smooth); 
} 
 
.service-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(123, 31, 162, 0.15); 
} 
 
.service-card.featured { border: 3px solid var(--pink-accent); } 
 
.service-tag { 
    background: var(--pink-accent); 
    color: var(--white); 
    font-size: 11px; 
    font-weight: 700; 
    padding: 4px 12px; 
    border-radius: 20px; 
    display: inline-block; 
    margin-bottom: 15px; 
} 
 
.service-icon { 
    width: 70px; 
    height: 70px; 
    background-color: var(--purple-light); 
    color: var(--purple-main); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 28px; 
    margin: 0 auto 20px auto; 
} 
 

/* =========================================================
CARDS GIRATORIAS DIPLOMAS
===========================================================*/
/* Contenedor del efecto giro */
.flip-card {
    width: 300px; height: 280px;
    perspective: 1000px;
    background-color: transparent;
    margin: 10px;
    display: inline-block;
}

.flip-card-inner {
    position: relative; width: 100%; height: 100%;
    text-align: center; transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* El giro se activa aquí */
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }

.card-front, .card-back {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden; border: 1px solid #ddd;
    background: #fff;
}

/* Espacio exacto de 5px */
.diploma-wrapper {
    height: 230px; /* Altura total - altura recuadro dorado */
    padding: 5px;  /* Espaciado de 5px en todos los lados */
    display: flex; align-items: center; justify-content: center;
}

.diploma-wrapper img {
    width: 100%; height: 100%; object-fit: contain;
}

/* Recuadro dorado compacto */
.gold-label {
    height: 60px; /* Recuadro más bajo */
    background: linear-gradient(135deg, rgb(53, 13, 146), rgb(53, 13, 146));
    display: flex; align-items: center; justify-content: center;
}

.gold-label h5 {
    color: #fff; margin: 0; font-size: 18px; 
    text-transform: uppercase; font-weight: 700;
}

/* Reverso */
.card-back {
    background: #05000e; color: #ffffff;
    transform: rotateY(180deg);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; font-size: 14px;
}


/* 
CARRUSEL
*/

.carrusel-section {
    width: 100%;
    overflow: hidden; /* Oculta lo que se sale del ancho de pantalla */
    padding: 20px 0;
    background: #111;
}

.carrusel-fila {
    display: flex;
    margin-bottom: 20px;
}

.track {
    display: flex;
    width: max-content; /* Se ajusta al ancho de las 10 imágenes */
    animation: scroll linear infinite;
}

/* Velocidad del movimiento */
#fila-1 .track { animation-duration: 40s; }
#fila-2 .track { animation-duration: 40s; animation-direction: reverse; }

.track img {
    width: 20vw; /* 5 imágenes visibles (100 / 5 = 20vw) */
    height: 300px;
    object-fit: cover;
    padding: 0 10px;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* Mueve la mitad del track (5 imágenes) */
}

/* ========================================================================== 
   CONTACTO COMBINADO 
   ========================================================================== */ 
.contact-combined-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    text-align: left; 
} 
 
.contact-form-side h3, .contact-map-side h3 { 
    font-size: 24px; 
    color: var(rgb(250, 249, 249)); 
    margin-bottom: 25px; 
} 
 
.styled-form .form-group { margin-bottom: 20px; } 
 
.styled-form label { 
    display: block; 
    font-size: 14px; 
    font-weight: 600; 
    margin-bottom: 6px; 
    color: var(--dark-text); 
} 
 
.styled-form input, .styled-form select, .styled-form textarea { 
    width: 100%; 
    padding: 12px 18px; 
    border: 2px solid #f8f6f6; 
    border-radius: 12px; 
    font-size: 15px; 
    outline: none; 
    transition: var(--transition-smooth); 
} 
 
.styled-form input:focus, .styled-form select:focus, .styled-form textarea:focus { 
    border-color: var(--pink-accent); 
} 
 
.btn-block { 
    width: 100%; 
    justify-content: center; 
    border-radius: 12px; 
    padding: 15px; 
} 
 
.quick-info-box { 
    background: var(--gradient-brand); 
    color: var(rgb(248, 244, 244)); 
    padding: 25px; 
    border-radius: 15px; 
    margin-bottom: 20px; 
} 
 
.quick-info-box p { 
    margin-bottom: 12px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
} 
 
.map-container { 
    height: 280px; 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgb(241, 240, 240); 
} 
 
/* ========================================================================== 
   FOOTER 
   ========================================================================== */ 
.main-footer { 
    background-color: #111114; 
    color: #A0A0A5; 
    padding: 40px 0 20px 0; 
    text-align: center; 
} 
 
.footer-socials { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-bottom: 20px; 
} 
 
.footer-socials a { 
    width: 40px; 
    height: 40px; 
    background-color: #1F1F24; 
    color: var(--white); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: var(--transition-smooth); 
} 
 
.footer-socials a:hover { 
    background: var(--gradient-brand); 
    transform: translateY(-3px); 
} 

/* ========================================================================== 
   MEDIA QUERIES (RESPONSIVE SE ADAPTA AUTOMÁTICAMENTE)
   ========================================================================== */ 
@media (max-width: 992px) { 
    .hero-grid, .contact-combined-grid {  
        grid-template-columns: 1fr;  
        text-align: center;  
        gap: 35px;
    } 
    .hero-buttons, .cta-buttons { justify-content: center; } 
    .hero-text h1 { font-size: 34px; } 
    .about, .services, .diplomas-section, .comments-section, .contact { padding: 40px 20px; } 
    
    .contact-form-side h3, .contact-map-side h3 { text-align: center; }

    /* En tablets, permitimos que las filas flexionen a 2 columnas */
    .custom-row-flex { flex-wrap: wrap !important; }
    .row-3-items > *, .row-2-items > *, .row-1-item > * { 
        width: calc(50% - 15px) !important; 
    } 
} 
 
@media (max-width: 768px) { 
    .menu-toggle { display: block; } 
    .btn-nav { display: none; } 
    
    /* Corrección de posicionamiento absoluto para el desplegable flotante */
    .nav-navigation { 
        position: absolute;  
        top: 100%;  
        left: 0;  
        width: 100%;  
        background-color: rgba(255, 255, 255, 0.98);  
        box-shadow: 0 15px 25px rgba(0,0,0,0.1);  
        max-height: 0;  
        overflow: hidden;  
        transition: max-height 0.4s ease-in-out; 
        z-index: 999;
    } 
    
    .nav-navigation.open { 
        max-height: 400px; 
    } 
    
    .nav-menu { 
        flex-direction: column; 
        padding: 30px 20px; 
        gap: 20px; 
        align-items: center;
    } 
    
    .nav-link {
        display: block;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }
    
    /* Adaptación de los botones principales en móviles */
    .hero-buttons, .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .hero-buttons .btn, .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* En celulares van todas en lista única vertical centrada */
    .custom-row-flex {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .row-3-items > *, .row-2-items > *, .row-1-item > * { 
        width: 100% !important; 
        max-width: 340px; 
    } 
    
    .comment-card img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}





/* Contenedor principal que obliga al 3x2 */
.comentarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
    gap: 20px; /* Separación entre tarjetas */
    margin-top: 40px;
    width: 100%;
}

.comment-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #EAEAEA;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    height: 300px; /* ALTURA FIJA: Esto es lo que soluciona tu desorden */
    transition: transform 0.3s ease;
}

.comment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para que llene el recuadro sin deformarse */
    display: block;
}

.comment-card:hover {
    transform: scale(1.03);
}

/* Ajuste para tablets (2 columnas) y móviles (1 columna) */
@media (max-width: 992px) {
    .comentarios-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .comentarios-grid { grid-template-columns: 1fr; }
    .comment-card { height: 250px; }
}

/* Nueva clase para el fondo degradado de los diplomas */
.diplomas-section.bg-degradado {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.9), rgba(142, 36, 170, 0.9), rgba(48, 63, 159, 0.9));
    color: white; /* Para que los textos resalten */
}

/* Ajuste: Si el fondo es oscuro, que el título también sea blanco */
.diplomas-section.bg-degradado .section-title {
    color: white;
}

.carrusel-section {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    /* Degradado en lugar de negro */
    background: linear-gradient(135deg, #E91E63, #8E24AA, #303F9F);
}

/* Opcional: Para darle un toque más elegante al carrusel */
.track img {
    width: 20vw;
    height: 250px; /* Un poco más compacto */
    object-fit: cover;
    padding: 0 10px;
    border-radius: 10px; /* Bordes redondeados para las fotos */
    filter: brightness(0.9); /* Un ligero oscurecimiento para dar contraste */
    transition: filter 0.3s;
}

.track img:hover {
    filter: brightness(1.1); /* Se iluminan al pasar el mouse */
}


/* Ajuste de colores para la sección Hero con degradado */
.hero.box-premium-degradado h1 {
    color: var(--white); /* Título blanco sobre el degradado */
}

.hero.box-premium-degradado p {
    color: rgba(255, 255, 255, 0.9); /* Texto con opacidad para leerse bien */
}

/* Para que la transición de los botones destaque sobre el fondo degradado */
.hero.box-premium-degradado .btn-white {
    background: var(--white);
    color: var(--purple-main);
}

.text-shadow-strong {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.main-footer {
    /* El azul oscuro (o el tono más profundo) queda abajo (#111114) */
    /* El azul de tu marca (#303F9F) queda arriba */
    background: linear-gradient(to bottom, #303F9F, #111114);
    color: #fff;
    padding: 60px 0 20px 0;
    text-align: center;
}

/* Clase que puedes aplicar a cualquier sección (Hero, Diplomas, etc.) */
/* Clase Maestra para Degradado + Imagen */
/* Clase maestra para la sección */
.section-marca-agua {
    position: relative;
    background: linear-gradient(135deg, #E91E63, #8E24AA, #303F9F); /* Tu degradado */
    padding: 80px 0;
    overflow: hidden; /* Esto evita que la imagen de fondo se salga */
}

/* La capa de la imagen (la marca de agua) */
.bg-perritos-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/perritos.png'); /* Asegúrate de que esta imagen sea transparente */
    background-size: cover; /* O 'contain' si quieres verlos todos */
    background-position: center;
    opacity: 0.15; /* ESTO ES LO QUE LO HACE "CASI INVISIBLE" */
    pointer-events: none; /* Para que no bloquee los clics */
    z-index: 1;
}

/* Para que el texto se vea arriba de la imagen */
.section-content {
    position: relative;
    z-index: 2;
}

.section-marca-agua {
    position: relative;
    background: linear-gradient(135deg, #E91E63, #8E24AA, #303F9F);
    padding: 80px 0;
    overflow: hidden;
}

/* Botón adicional de Maps */
.btn-white {
    background: #ffffff;
    color: #303F9F;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-white:hover {
    background: #f0f0f0;
}




/* 1. Degradado limpio (sin rastro de imagen) */
.section-marca-agua {
    position: relative;
    background: linear-gradient(135deg, #E91E63, #8E24AA, #303F9F);
    padding: 80px 0;
    overflow: hidden;
}

/* 2. Resaltado de letras para máxima legibilidad */
.hero-text h1, 
.hero-text p, 
.section-title, 
.section-description {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4); /* Sombra suave para que el texto "flote" */
    color: #ffffff; /* Aseguramos que sea blanco */
    font-weight: 700;
}

/* Si tienes textos blancos, los resaltamos aún más */
.text-white-muted {
    color: rgba(255, 255, 255, 0.9);
}

/* Aseguramos que el botón con degradado tenga el estilo correcto */
.btn-gradient {
    background: linear-gradient(to right, #E91E63, #303F9F); /* Tu degradado principal */
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}



/* Contenedor principal de servicios con 4 columnas */
.services-flip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
    gap: 20px;
    padding: 20px 0;
}

/* Estructura Base de la Flip Card (Reutilizando lógica de diplomas) */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 350px; /* Altura ideal para servicios */
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* ESTILO PARTE FRONTAL */
.service-front {
    background: rgba(255, 255, 255, 0.95);
    color: #f5f6f8;
}

.service-icon-box {
    font-size: 50px;
    color: #f10707;
    margin-bottom: 15px;
}

.service-front h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

/* ESTILO PARTE POSTERIOR */
.service-back {
    background: #051431;
    color: rgb(250, 250, 250);
    transform: rotateY(180deg);
}

.service-back h4 {
    margin-bottom: 15px;
    color: #faf9fc; /* Título resaltado atrás */
}

/* AJUSTE CARD DESTACADA (Profilaxis) */
.featured-front {
    border: 3px solid #E91E63;
    background: #fff;
}

.service-tag {
    position: absolute;
    top: 10px;
    background: #fd0101;
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

/* RESPONSIVE: En móviles se ven 1 por 1, en tablets 2 y 2 */
@media (max-width: 1024px) {
    .services-flip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-flip-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para las tarjetas de servicio */
.flip-card {
    perspective: 1000px;
    height: 300px; /* Ajusta según tu diseño */
    width: 100%;
}

.service-front {
    position: relative;
    overflow: hidden; /* Importante para que la imagen no se salga */
    border-radius: 15px; /* Ajusta según tu diseño */
}

/* Ajuste de la imagen */
.service-img {
    width: 100%;
    height: 200px; /* Ajusta la altura de la imagen dentro de la card */
    object-fit: cover; /* Centra y ajusta la imagen sin deformarla */
    object-position: center; /* Asegura que lo principal de la imagen esté al centro */
    display: block;
}

/* Espaciado para el título debajo de la imagen */
.service-front h3 {
    padding: 15px;
    margin: 0;
    text-align: center;
}

/* Asegurar que el contenedor inner sea flexible si lo necesitas */
.card-front {
    display: flex;
    flex-direction: column;
}

/* Contenedor principal que define el tamaño */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 350px; /* Ajusta a tu preferencia */
    perspective: 1000px;
}

/* El motor que realiza el giro */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d; /* CRÍTICO: Mantiene el espacio 3D */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 15px;
}

/* Activación del giro */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Ambos lados deben ser absolutos para superponerse */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Esconde el reverso al girar */
    border-radius: 15px;
    overflow: hidden;
    background: rgb(53, 13, 146); /* Asegura fondo sólido */
}

/* Ajuste específico de la imagen */
.service-img {
    width: 100%;
    height: 60%; /* La imagen ocupa el 60% de la card */
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Ajuste del título */
.card-front h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

/* Estilo para el reverso */
.card-back {
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}