/* Estilos propios de servicios.php (se cargan después de style.css) */

/* Hero: mismo diseño que el del inicio, sin botones debajo del texto */
.services-hero .hero-subtitle { margin-bottom: 0; }

/* ============================================================
   LISTA DE SERVICIOS (HORIZONTAL)
   ============================================================ */
.service-detail-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 1000px;
}
.empty-state {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* ============================================================
   TARJETA HORIZONTAL ANIMADA
   ============================================================ */
.anim-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    min-height: 210px;
}
.anim-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(255,122,0,0.25);
}
.service-card-media {
    position: relative;
    flex: 0 0 38%;
    max-width: 38%;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.service-card-body {
    flex: 1;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.service-card-nombre {
    display: inline-block;
    background: #fff4e6;
    color: #ff7a00;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    align-self: flex-start;
}
.service-card-title {
    font-size: 1.3rem;
    margin: 0;
    color: #1a1a1a;
    transition: color 0.3s ease;
    font-weight: 800;
}
.anim-card:hover .service-card-title { color: #ff7a00; }
.service-card-desc { color: #555; margin: 0; font-size: 0.92rem; line-height: 1.55; }
.service-card-price {
    font-weight: 700;
    color: #ff7a00;
    font-size: 1.15rem;
    margin: 0.3rem 0;
}
.service-card-actions {
    display: flex;
    gap: 0.7rem;
    margin-top: auto;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

/* ============================================================
   BOTONES
   ============================================================ */
.service-card-actions .btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s, background 0.2s, color 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}
.service-card-actions .btn-primary {
    background: #ff7a00;
    color: #fff;
}
.service-card-actions .btn-primary:hover {
    background: #ffb347;
    transform: translateY(-3px);
}
.service-card-actions .btn-outline {
    background: transparent;
    color: #ff7a00;
    border: 2px solid #ff7a00;
}
.service-card-actions .btn-outline:hover {
    background: #ff7a00;
    color: #fff;
    transform: translateY(-3px);
}

/* ============================================================
   CARRUSEL (FOTOS SIN CORTAR)
   ============================================================ */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 210px;
    overflow: hidden;
}
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 210px;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* 👈 no se cortan */
    object-position: center;
    display: block;
    border-radius: 10px;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    z-index: 3;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover {
    background: #ff7a00;
    transform: translateY(-50%) scale(1.1);
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}
.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}
.carousel-dot.active {
    background: #ff7a00;
    transform: scale(1.25);
}

/* ============================================================
   CTA MEJORADO
   ============================================================ */
.cta-section { padding: 3rem 0 5rem; }
.cta-box-mejorado {
    background: linear-gradient(135deg, #1a1a1a 0%, #2b1a0e 100%);
    color: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.cta-box-mejorado h2 {
    color: #ffb347;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin: 0 0 0.5rem;
}
.cta-box-mejorado p {
    color: #e8e8e8;
    margin: 0;
}
.btn-cta {
    background: #ff7a00;
    color: #fff;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    display: inline-block;
}
.btn-cta:hover {
    background: #ffb347;
    transform: translateY(-3px);
}
.btn-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #ffb347;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: inline-block;
}
.btn-cta-outline:hover {
    background: #ffb347;
    color: #1a1a1a;
    transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .anim-card { flex-direction: column; }
    .service-card-media {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        min-height: 220px;
    }
    .carousel, .carousel-track { min-height: 220px; }
    .cta-box-mejorado { padding: 1.8rem; text-align: center; justify-content: center; }
}
