/* --- CONFIGURACIÓN BASE --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evita el scroll horizontal en móviles */
}

/* --- LOGO Y NAVBAR RESPONSIVO --- */
.navbar-brand img:first-child {
    height: 70px;
    width: auto;
    margin-right: -30px; /* Tu estilo original para PC */
    transition: margin 0.3s ease;
}

@media (max-width: 576px) {
    .navbar-brand img:first-child {
        margin-right: -15px; /* Menos margen en celular para que no tape las letras */
        height: 50px;
    }
    .navbar-brand img:last-child {
        height: 30px;
    }
}

.navbar-nav .nav-link {
    color: #DAA520 !important;
    transition: color 0.3s ease;
    padding: 10px 15px;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-item.active .nav-link {
    color: #FFF2AD !important;
    text-shadow: 0 0 8px rgba(255, 242, 173, 0.5);
}

/* --- HERO ESTABLO RESPONSIVO --- */
.hero-establo {
    background-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,1) 100%), 
                      url('../img/establo.png');
    background-size: cover;
    background-position: center;
    padding: 80px 20px; /* Menos padding lateral */
    text-align: center;
}

.hero-establo h1 {
    font-size: clamp(2rem, 8vw, 4rem); /* Tamaño dinámico */
    text-shadow: 2px 2px 10px rgba(169, 154, 23, 0.8);
}

/* --- BANNERS DE SERVICIOS (CHIVO, ATENCIÓN, NIÑO) --- */
.banner-negro-responsive {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 8px 8px 0px #FFD700;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.contenedor-foto-res {
    padding: 15px;
}

.foto-pro-res {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
    border: 4px solid #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.title-glow-res {
    color: #fff;
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 900;
    margin-top: 15px;
}

.desc-res {
    color: #ccc;
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-style: italic;
}

/* --- AJUSTES ESPECÍFICOS PARA PC (MIN-WIDTH 992px) --- */
@media (min-width: 992px) {
    .hero-establo .hero-gallos { padding: 120px 0; }
    
    .foto-pro-res { transform: rotate(-5deg); }
    
    .banner-negro-responsive {
        padding: 40px;
        border-radius: 0 50px 0 50px;
    }

    .foto-pro-res:hover {
        transform: rotate(-5deg) scale(1.05);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

/* --- FONDO Y BOTONES --- */
.fondo-ladrillos {
    width: 100%;
    min-height: 60vh;
    background: linear-gradient(to bottom, #000000 0%, transparent 20%, transparent 80%, #000000 100%), 
                url('../img/ladrillos.png');
    background-size: cover;
    background-position: center;
    padding-bottom: 50px;
}

.btn-color {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    width: 180px;
    height: 55px;
    color: #000000 !important;
    background: #FFD700;
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.btn-color:hover {
    background: #FFF2AD;
    box-shadow: 0 0 20px #FFD700;
    transform: scale(1.05);
}

.negro {
    background-color: #000000;
    color: #DAA520;
    border-top: 2px solid #DAA520;
}
/* --- HERO ESTABLO RESPONSIVO --- */
.hero-gallos {
    background-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,1) 100%), 
                      url('../img/gallospelea.png');
    background-size: cover;
    background-position: center;
    padding: 80px 20px; /* Menos padding lateral */
    text-align: center;
}


/* --- VARIABLES PARA CAMBIAR TODO RÁPIDO --- */
:root {
    --color-principal: #DAA520; /* Cambia este color (Dorado) por el que quieras */
    --color-texto-frase: #ffffff;
    --imagen-fondo-tarjeta: url('../img/consultorio.png'); /* AQUÍ CAMBIAS EL FONDO */
    --opacidad-capa: 0.7; /* 0.9 es muy oscuro, 0.1 muy claro */
}

/* --- ESTILOS DE LA TARJETA --- */
.tarjeta-mv-fondo {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    padding: 60px 20px;
    background-image: var(--imagen-fondo-tarjeta);
    background-size: cover;
    background-position: center;
    border: 2px solid var(--color-principal);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    z-index: 1;
}

/* Capa oscura para que el texto resalte sobre la foto de fondo */
.overlay-capa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--opacidad-capa));
    z-index: -1;
}

.nombre-doctor {
    color: var(--color-principal);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
}

.divisor-personalizado {
    width: 80px;
    height: 4px;
    background: var(--color-principal);
    margin: 20px 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--color-principal);
}

.frase-doctor {
    color: var(--color-texto-frase);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    line-height: 1.8;
    font-style: italic;
    max-width: 90%;
    margin: 0 auto;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Reutilizamos tu estilo de foto pero lo centramos más */
.tarjeta-mv-fondo .foto-pro-res {
    max-width: 250px;
    border-color: var(--color-principal);
}
.titulo-seccion-premium {
    font-weight: 900;
    font-size: clamp(1.8rem, 5vw, 3.2rem); 
    color: #ffffff; 
    text-transform: uppercase;
    margin-top: 60px;
    letter-spacing: 1px;
}

.marca-dorada {
    background: linear-gradient(to bottom, #FFD700, #DAA520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Para que el degradado se aplique bien */
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.separador-moderno {
    width: 120px;
    height: 5px;
    background: linear-gradient(to right, #DAA520, #FFD700, #DAA520);
    border-radius: 10px;
    margin: 20px auto 45px auto;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Capa oscura sobre la imagen para que el texto resalte */
.overlay-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Ajusta a 0.6 si quieres más oscuro */
    z-index: 1;
}

/* Asegurar que el caption esté por encima de la capa oscura */
.carousel-caption {
    z-index: 2;
    bottom: 20%; /* Sube un poco el texto para que no tape los indicadores */
}

/* Flechas de navegación en color Dorado */
.icon-dorado {
    filter: invert(82%) sepia(59%) saturate(890%) hue-rotate(357deg) brightness(102%) contrast(106%);
    width: 50px;
    height: 50px;
}

/* Estilo para los títulos dentro del carrusel */
.carousel-caption h5 {
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
}
/* Limitamos la altura del carrusel */
.carousel-item {
    height: 500px; /* Tú puedes cambiar este número (400px o 500px) según tu gusto */
    background-color: #000; /* Fondo negro por si la imagen es corta */
}

.carousel-item img {
    height: 100%;
    width: 100%;
    /* ESTA ES LA MAGIA: Ajusta la foto sin estirarla, como en Instagram */
    object-fit: cover; 
    /* Centra la parte importante de la foto */
    object-position: center; 
}

/* Ajuste para celulares: que sea más bajito en el móvil */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px; 
    }
}

/* Responsive: En móviles bajamos un poco el tamaño */
@media (max-width: 768px) {
    .carousel-caption {
        bottom: 5%;
    }
    .cupon-brillante {
        font-size: 0.9rem !important;
        padding: 8px !important;
    }
}

/* --- ESTILO VETERINARIA SOTO PROFESIONAL --- */

.text-dorado {
    color: #FFD700 !important;
}

.divisor-dorado {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #B8860B, #FFD700);
    border-radius: 2px;
}

/* La Tarjeta Premium */
.card-premium {
    background: #1a1a1a; /* Negro suave */
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 0px; /* Estilo minimalista cuadrado se ve más serio */
    overflow: hidden;
    height: 100%;
    transition: all 0.4s ease;
}

.capa-imagen {
    position: relative;
    height: 300px;
    overflow: hidden;
    
}

.capa-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%); /* Un toque sobrio */
    transition: 0.6s ease;
}

/* Overlay que aparece al pasar el mouse */
.overlay-dorado {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(234, 234, 234, 0.9), transparent);
    opacity: 0.7;
}

.contenido-premium h3 {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); /* Brillo sutil */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-interactivo-premium {
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-interactivo-premium:hover {
    background: rgba(218, 165, 32, 0.15) !important;
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.4);
    transform: scale(1.02);
}

.card-vacunas-premium {
    background: linear-gradient(145deg, #0a0a0a, #151515);
    border: 1px solid #DAA520;
    border-radius: 20px;
}

.tabla-especie {
    border-left: 3px solid #DAA520;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.3s;
}

.tabla-especie:hover {
    background: rgba(255, 255, 255, 0.05);
}
/* Clase para los iconos de servicios inferiores */
.servicio-icono-brillo {
    transition: filter 0.3s ease, color 0.3s ease;
    cursor: default; /* Para que no parezca botón si no tiene link */
}

/* Efecto al pasar el cursor: El icono brilla pero NO se mueve */
.servicio-icono-brillo:hover {
    color: #FFD700; /* Un dorado un poco más claro al brillar */
    filter: drop-shadow(0 0 12px rgba(218, 165, 32, 0.9)); /* Brillo intenso alrededor de la forma */
}

/* Opcional: Que el texto de abajo también se aclare un poco */
.col-6:hover h5 {
    color: #DAA520 !important;
    transition: 0.3s;
}