/* Estilos generales */
body, html {
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(135deg, #8CD9FF, #5EAEFD);
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: auto;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Estilos de la página de servicios */
main {
    flex-grow: 1;
    padding: 40px 20px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.animated-title {
    color: white;
    text-align: center;
    font-size: 3.5em;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    perspective: 1000px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(50px);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: calc(var(--card-index) * 0.2s);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.image-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.service-card:hover .image-circle {
    transform: scale(1.1) rotate(5deg);
}

.image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .image-circle img {
    transform: scale(1.2);
}

.service-card h2 {
    color: #FF0000;
    margin-bottom: 15px;
    font-size: 1.8em;
    font-weight: 700;
}

.service-card p {
    color: #333;
    margin: 15px 0;
    font-size: 1em;
    line-height: 1.6;
}

.red-line {
    width: 50px;
    height: 3px;
    background-color: #FF0000;
    margin: 15px auto;
    transition: width 0.3s;
}

.service-card:hover .red-line {
    width: 80px;
}

.details-button {
    background-color: white;
    color: #FF0000;
    text-decoration: none;
    padding: 12px 25px;
    border: 2px solid #FF0000;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1em;
    margin-top: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.details-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #FF0000;
    transition: all 0.3s;
    z-index: -1;
}

.details-button:hover {
    color: white;
}

.details-button:hover::before {
    left: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Barra blanca en la parte inferior */
.white-bar {
    height: 50px;
    background-color: white;
    width: 100%;
}

/* Animación de huella de perro */
.paw-print {
    position: fixed;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="white" d="M256 224c-79.41 0-192 122.76-192 200.25 0 34.9 26.81 55.75 71.74 55.75 48.84 0 81.09-25.08 120.26-25.08 39.51 0 71.85 25.08 120.26 25.08 44.93 0 71.74-20.85 71.74-55.75C448 346.76 335.41 224 256 224zm-147.28-12.61c-10.4-34.65-42.44-57.09-71.56-50.13-29.12 6.96-44.29 40.69-33.89 75.34 10.4 34.65 42.44 57.09 71.56 50.13 29.12-6.96 44.29-40.69 33.89-75.34zm84.72-20.78c30.94-8.14 46.42-49.94 34.58-93.36s-46.52-72.01-77.46-63.87-46.42 49.94-34.58 93.36c11.84 43.42 46.53 72.02 77.46 63.87zm281.39-29.34c-29.12-6.96-61.15 15.48-71.56 50.13-10.4 34.65 4.77 68.38 33.89 75.34 29.12 6.96 61.15-15.48 71.56-50.13 10.4-34.65-4.77-68.38-33.89-75.34zm-156.27 29.34c30.94 8.14 65.62-20.45 77.46-63.87 11.84-43.42-3.64-85.21-34.58-93.36s-65.62 20.45-77.46 63.87c-11.84 43.42 3.64 85.22 34.58 93.36z"/></svg>');
    background-size: contain;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

@keyframes pawAnimation {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(300px, 300px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .services-grid {
        flex-direction: column;
    }

    .service-card {
        margin-bottom: 30px;
    }

    .animated-title {
        font-size: 2.5em;
    }
}