/* PROYECTO: Animal Care Center 
   ESTANDARIZACIÓN Y RESPONSIVIDAD 
*/

:root {
    --verde-vet: #198754;
    --amarillo-promo: #ffcc00;
}


/* Registro de la variante Regular */
@font-face {
    font-family: 'Lato-Regular';
    src: url('../font/Lato/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Registro de la variante Bold (Negrita) */
@font-face {
    font-family: 'Lato-Bold';
    src: url('../font/Lato/Lato-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Registro de la variante Light (Delgada) */
@font-face {
    font-family: 'Lato-Light';
    src: url('../font/Lato/Lato-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0; /* Eliminado el padding de 10px que apretaba el contenido en móviles */
    overflow-x: hidden;
}

/* titulos Bold automáticamente */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

/* 1. ESTANDARIZACIÓN DE SECCIONES (Tu petición principal) */
.full-screen-section {
    width: 100%;
    padding: 20px 10px; /* Margen casi nulo en móvil */
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .full-screen-section {
        padding: 60px 0; /* Margen elegante en PC */
        margin-bottom: 4rem;
    }
}

/* 2. BANNER ANIMADO */
.banner-animado {
    width: 100%;
    min-height: 110px;
    background: linear-gradient(270deg, #ffcc00, #ff9900, #ff6600, #ffcc00);
    background-size: 800% 800%;
    animation: cambioColor 10s ease infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.banner-animado .logo {
    width: 35px;
    height: auto;
    animation: flotar 4s ease-in-out infinite;
}

/* Ajustes Banner por dispositivo */
@media (min-width: 600px) {
    .banner-animado { min-height: 140px; }
    .banner-animado .logo { width: 75px; }
}

@media (min-width: 1025px) {
    .banner-animado { min-height: 170px; }
    .banner-animado .logo { width: 200px; } /* Ajustado de 275px para evitar desborde */
}

/* 3. IMÁGENES Y CARDS */
.img-home {
    width: 100%;
    max-width: 100%; /* Ahora se adapta al contenedor */
    height: auto;
    border-radius: 15px;
}

@media (min-width: 768px) {
    .img-home { max-width: 720px; } /* Tamaño controlado en PC */
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover { transform: translateY(-6px); }

.service-card img {
    width: 100%;
    max-width: 140px;
    margin-bottom: 10px;
}

/* 4. COMPONENTES: MONEDA (COIN) */
.coin-container {
    perspective: 1000px;
    width: 280px;
    height: 280px;
    margin: 20px auto;
    color: #0d1b3e;
}

.coin-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.coin-front, .coin-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    color:#ffffff !important;
    background-color: #198754 !important;
    border: 3px solid #03110B;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.coin-front img {
    width: 100%;
    height: 100%;
    /* Esto es clave: mantiene la proporción sin deformar y llena el círculo */
    object-fit: cover; 
    /* Asegura que la imagen esté centrada */
    object-position: center; 
    display: block;
}

.coin-back {
    transform: rotateY(180deg);
    padding: 15px;
}

/* Lógica de giro */
@media (min-width: 992px) {
    .coin-container:hover .coin-flipper { transform: rotateY(180deg); }
}

@media (max-width: 991px) {
    .coin-flipper { animation: auto-flip 5s infinite ease-in-out; }
}

/* 5. BOOTSTRAP OVERRIDES (Tabs y Accordion) */
.nav-pills .nav-link.active {
    background-color: var(--verde-vet) !important;
}

.carousel-caption {
    background-color: rgba(232, 245, 233, 0.9);
    border-radius: 20px;
    padding: 15px;
    color: #333;
}

/* 6. ANIMACIONES */
@keyframes flotar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes cambioColor {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes auto-flip {
    0%, 25% { transform: rotateY(0deg); }
    50%, 75% { transform: rotateY(180deg); }
    100% { transform: rotateY(0deg); }
}

