/* 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;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 600px) {
    .full-screen-section {
        width: 90%;
        padding: 60px 10px; /* Margen elegante en PC */
        margin-bottom: 4rem;
        margin-left: auto;
        margin-right: auto
    }
}

/* 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: 100px;
    height: 100px;
    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: 2px;
    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); }
}

/* CONTENEDOR */
.phone-container{
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    padding: 20px 0;
    width: 100%;
}

/* MARCO DEL TELÉFONO */
.phone-frame{
    position:relative;

    width:85%;
    max-width: 320px;

    aspect-ratio: 10 / 19;

    background:#111;
    border-radius:40px;

    padding:12px;

    box-shadow:
        0 25px 60px rgba(0,0,0,0.4),
        inset 0 0 5px rgba(255,255,255,0.2);

    transition:transform 0.4s ease;

    overflow: hidden;

}

/* PANTALLA DEL TELÉFONO */
.phone-screen{
    width:100%;
    height: 100%;
    border-radius: 30px;
    display: block;
    object-fit:cover;
}

/* NOTCH SUPERIOR */
.phone-frame::before{
    content:"";
    position:absolute;

    top:0;
    left:50%;
    transform:translateX(-50%);
    width:150px;
    height:25px;
    background:black;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

/* EFECTO HOVER */
.phone-frame:hover{
    transform:scale(1.05) translateY(-10px);
}

/* OVERLAY */
.phone-overlay{
    position:absolute;
    top:0px;
    left:0px;
    /**width:calc(100% - 25px);
    height:calc(100% - 25px);*/
    width: 100%;
    height: 100%;    
    background:rgba(0,0,0,0.5);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    transition:opacity 0.3s ease;
    z-index: 5;
}

.phone-frame:hover .phone-overlay{
    opacity:1;
}

/* BOTÓN */
.phone-overlay span{
    background:white;
    padding:10px 18px;
    border-radius:25px;
    font-weight:600;
}

/* ANIMACIÓN FLOTANTE */
.phone-frame{
    animation:floatPhone 4s ease-in-out infinite;
}

@keyframes floatPhone{
    0%, 100% {transform:translateY(0px);}
    50%{transform:translateY(-10px);}
}

/** Carrousel para teléfono */
@media(max-width: 700px){
    #carouselPC{
        display: none;
    }

    #carouselMovil{
        display: block;
    }
}

@media(min-width: 701px){
    #carouselPC{
        display: block;
    }

    #carouselMovil{
        display: none;
    }
}

/** Zoom para las fotos clickeadas **/
.zoom-overlay {
    position: fixed; /* Se queda fijo aunque hagas scroll */
    top: 0;
    left: 0;
    width: 100vw; /* Ancho completo de la ventana */
    height: 100vh; /* Alto completo de la ventana */
    background-color: rgba(0, 0, 0, 0.85); /* Fondo negro con opacidad */
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    z-index: 9999; /* Asegura que esté por encima de TODO */
    cursor: zoom-out; /* Cambia el cursor para indicar que se cierra al hacer clic */
    
    /* Animación de entrada suave */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Esta es la clase para cuando el overlay está activo */
.zoom-overlay.active {
    opacity: 1;
}

/* Estilo de la imagen dentro del zoom */
.zoom-img {
    max-width: 90%; /* Que no toque los bordes laterales */
    max-height: 90%; /* Que no toque los bordes superior/inferior */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}