/* =========================
   SECCIÓN SERVICIOS
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #A008B2;
    --primary-dark: #7A0689;
    --primary-light: #C844D4;
    --accent: #E040FB;
}

body {
    font-family: 'Sora', sans-serif;
    overflow-x: hidden;
    background: #ffffff;
    color: #1a1a1a;
}

.servicios {
    padding: 8rem 5%;
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(160, 8, 178, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(224, 64, 251, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.servicios-contenedor {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Encabezado */
.servicios-encabezado {
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(50px);
}

.servicios-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    margin-top: 15px;
    box-shadow: 0 4px 16px rgba(160, 8, 178, 0.15);
    border: 1px solid rgba(160, 8, 178, 0.2);
}

.servicios-etiqueta i {
    color: var(--accent);
}

.servicios-titulo {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    letter-spacing: -2px;
}

.servicios-resaltado {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.servicios-descripcion {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Grid de Servicios */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.servicio-tarjeta {
    background: white;
    border-radius: 30px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(160, 8, 178, 0.1);
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(80px);
}

.servicio-tarjeta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(160, 8, 178, 0.03), rgba(224, 64, 251, 0.03));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.servicio-tarjeta:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(160, 8, 178, 0.25);
    border-color: var(--primary);
}

.servicio-tarjeta:hover::before {
    opacity: 1;
}

/* Contenedor de Imagen */
.container-img-servicios {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
}

.container-img-servicios::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 2;
}

.container-img-servicios img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.servicio-tarjeta:hover .container-img-servicios img {
    transform: scale(1.1);
}

/* Insignia */
.servicio-insignia {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(160, 8, 178, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(160, 8, 178, 0.4);
    }

    50% {
        box-shadow: 0 6px 25px rgba(160, 8, 178, 0.6);
    }
}

/* Número del Servicio */
.servicio-numero {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    z-index: 3;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Contenido de la Tarjeta */
.servicio-contenido {
    padding: 2rem 2.5rem 2.5rem;
    position: relative;
    z-index: 2;
}

.servicio-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-transform: uppercase;
}

.servicio-descripcion {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 2rem;
    text-align: justify;
}

/* Botón del Servicio */
.boton-servicio {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.boton-servicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transition: left 0.4s ease;
    z-index: -1;
}

.boton-servicio:hover {
    color: white;
    border-color: transparent;
    transform: translateX(5px);
}

.boton-servicio:hover::before {
    left: 0;
}

.boton-servicio i {
    transition: transform 0.3s ease;
}

.boton-servicio:hover i {
    transform: translateX(5px);
}

/* Botón Ver Todos */
.container-boton-ver-todos-servicios {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
}

.boton-servicio-todos {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(160, 8, 178, 0.3);
}

.boton-servicio-todos:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(160, 8, 178, 0.4);
}

.boton-servicio-todos i {
    transition: transform 0.3s ease;
}

.boton-servicio-todos:hover i {
    transform: translateX(5px);
}

/* CTA Final */
.servicios-cta {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 4rem 3rem;
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    opacity: 0;
    transform: scale(0.9);
}

.servicios-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.servicios-cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.servicios-cta-contenido {
    position: relative;
    z-index: 10;
}

.servicios-cta-titulo {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.servicios-cta-texto {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.boton-servicios-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 3rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.boton-servicios-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .servicios {
        padding: 5rem 5%;
    }

    .servicios-titulo {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .servicios-descripcion {
        font-size: 1rem;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .container-img-servicios {
        height: 220px;
    }

    .servicio-numero {
        font-size: 3rem;
    }

    .servicio-contenido {
        padding: 1.5rem 2rem 2rem;
    }

    .servicio-titulo {
        font-size: 1.5rem;
    }

    .servicios-cta {
        padding: 3rem 2rem;
    }

    .servicios-cta-titulo {
        font-size: 1.8rem;
    }

    .servicios-cta-texto {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .servicios-titulo {
        font-size: 2rem;
    }

    .container-img-servicios {
        height: 200px;
    }

    .servicio-contenido {
        padding: 1.5rem;
    }

    .boton-servicios-cta {
        padding: 1.1rem 2rem;
        font-size: 1rem;
    }
}



/* WhatsApp Flotante */
.whatsapp-flotante {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .whatsapp-flotante {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        bottom: 1.5rem;
        left: 1.5rem;
    }
}