/* CSS para Plugin Servicios - María José Collantes */
/* Paleta: Fondo marfil #F3EDE4, Marrón #5D4037, Dorado #B28F5A */

/* ============================================
   CONTENEDOR PRINCIPAL DE SERVICIOS
   ============================================ */

.servicios-contenedor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Cormorant Garamond', serif;
}

/* ============================================
   ITEMS INDIVIDUALES DE SERVICIO
   ============================================ */

.servicio-item {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(178, 143, 90, 0.15);
    box-shadow: 0 4px 20px rgba(93, 64, 55, 0.08);
    position: relative;
    overflow: hidden;
}

.servicio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #B28F5A 0%, #5D4037 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.servicio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(93, 64, 55, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

.servicio-item:hover::before {
    transform: scaleX(1);
}

/* ============================================
   IMAGEN DEL SERVICIO
   ============================================ */

.servicio-imagen {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #F3EDE4 0%, rgba(178, 143, 90, 0.1) 100%);
}

.servicio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    border-radius: 8px;
}

.servicio-item:hover .servicio-imagen img {
    transform: scale(1.05);
}

/* ============================================
   TÍTULO DEL SERVICIO
   ============================================ */

.servicio-titulo {
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.3;
}

.servicio-titulo a {
    color: #5D4037;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.servicio-titulo a:hover {
    color: #B28F5A;
}

/* ============================================
   EXCERPT DEL SERVICIO
   ============================================ */

.servicio-excerpt {
    font-size: 1.1rem;
    color: #5D4037;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 30px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ============================================
   BOTÓN DEL SERVICIO
   ============================================ */

.servicio-boton {
    margin-top: auto;
}

.btn-servicio {
    background: linear-gradient(135deg, #B28F5A 0%, #5D4037 100%);
    color: #F3EDE4;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-servicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-servicio:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(93, 64, 55, 0.3);
    background: linear-gradient(135deg, #5D4037 0%, #B28F5A 100%);
}

.btn-servicio:hover::before {
    left: 100%;
}

.btn-servicio:active {
    transform: translateY(0);
}

/* ============================================
   BANNER DE SERVICIO INDIVIDUAL
   ============================================ */

.banner-servicio {
    background: linear-gradient(135deg, rgba(178, 143, 90, 0.1) 0%, rgba(93, 64, 55, 0.05) 100%);
    padding: 60px 30px;
    margin: 60px 0 0 0;
    text-align: center;
    border-top: 2px solid rgba(178, 143, 90, 0.2);
    position: relative;
}

.banner-servicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #B28F5A 0%, #5D4037 100%);
    border-radius: 2px;
}

.banner-content {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Cormorant Garamond', serif;
}

.banner-content h2 {
    font-size: 2.5rem;
    color: #5D4037;
    margin-bottom: 20px;
    font-weight: 400;
}

.banner-content p {
    font-size: 1.2rem;
    color: #5D4037;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-interesa {
    background: #B28F5A;
    color: #F3EDE4;
    border: none;
    padding: 16px 35px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-interesa:hover {
    background: #5D4037;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(93, 64, 55, 0.2);
}

.btn-interesa i {
    transition: transform 0.3s ease;
}

.btn-interesa:hover i {
    transform: translateX(5px);
}

/* ============================================
   TÍTULO DE ARCHIVO DE SERVICIOS
   ============================================ */

.entry-title {
    text-align: center;
    font-size: 3rem;
    color: #5D4037;
    margin-bottom: 40px;
    font-weight: 400;
    font-family: 'Cormorant Garamond', serif;
    position: relative;
    padding-bottom: 20px;
}

.entry-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #B28F5A 0%, #5D4037 100%);
    border-radius: 2px;
}

/* ============================================
   MENSAJE SIN SERVICIOS
   ============================================ */

.servicios-contenedor p {
    text-align: center;
    font-size: 1.2rem;
    color: #5D4037;
    opacity: 0.7;
    font-style: italic;
    padding: 60px 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .servicios-contenedor {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .servicio-item {
        padding: 25px 20px;
    }
    
    .servicio-imagen {
        height: 220px;
        margin-bottom: 20px;
    }
    
    .servicio-titulo {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .servicio-excerpt {
        font-size: 1rem;
        min-height: 60px;
        margin-bottom: 25px;
    }
    
    .btn-servicio {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .banner-servicio {
        padding: 40px 20px;
        margin: 40px 0 0 0;
    }
    
    .banner-content h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .banner-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .btn-interesa {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .entry-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .servicios-contenedor {
        margin: 30px auto;
        padding: 0 10px;
    }
    
    .servicio-item {
        padding: 20px 15px;
    }
    
    .servicio-imagen {
        height: 200px;
    }
    
    .servicio-titulo {
        font-size: 1.4rem;
    }
    
    .servicio-excerpt {
        font-size: 0.95rem;
    }
    
    .banner-content h2 {
        font-size: 1.8rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .btn-interesa {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .entry-title {
        font-size: 1.9rem;
    }
}

/* ============================================
   ANIMACIONES Y TRANSICIONES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servicio-item {
    animation: fadeInUp 0.6s ease forwards;
}

.servicio-item:nth-child(2) {
    animation-delay: 0.1s;
}

.servicio-item:nth-child(3) {
    animation-delay: 0.2s;
}

.servicio-item:nth-child(4) {
    animation-delay: 0.3s;
}

/* ============================================
   ESTADOS DE FOCUS PARA ACCESIBILIDAD
   ============================================ */

.btn-servicio:focus,
.btn-interesa:focus {
    outline: 2px solid #B28F5A;
    outline-offset: 2px;
}

.servicio-titulo a:focus {
    outline: 2px solid #B28F5A;
    outline-offset: 2px;
    border-radius: 4px;
}