/* ===================================
   DETALLE DE SERVICIOS - CSS
   Estilos para las páginas de detalle de servicios
   =================================== */

/* Header reducido para páginas de detalle */
.hero-detalle {
    width: 100%;
    min-height: 100px;
    background: linear-gradient(135deg, #0F1B1B 0%, #1C2121 100%);
    display: grid;
    grid-template-rows: 100px;
    color: #fff;
    position: relative;
}

.hero-detalle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(79, 209, 197, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(79, 209, 197, 0.05) 0%, transparent 50%);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

/* Main container */
.main-detalle {
    background: linear-gradient(135deg, #0F1B1B 0%, #1C2121 100%);
    min-height: calc(100vh - 100px);
    padding: 0;
}

/* Sección hero del servicio */
.servicio-hero {
    width: 100%;
    padding: 60px 0;
    position: relative;
}

/* Container personalizado para detalle */
.container-detalle {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contenido principal del servicio */
.servicio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 70vh;
}

/* Imagen del servicio */
.servicio-imagen {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.servicio-imagen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(15, 27, 27, 0.3) 70%,
        rgba(15, 27, 27, 0.6) 100%
    );
    z-index: 1;
}

.servicio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Información del servicio */
.servicio-info {
    color: #fff;
    padding: 20px;
}

.servicio-titulo {
    font-family: 'Manrope', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #4FD1C5;
    margin-bottom: 30px;
    line-height: 1.2;
}

.servicio-descripcion {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Listas de servicios */
.servicio-lista {
    margin-bottom: 30px;
}

.lista-titulo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(79, 209, 197, 0.3);
}

.lista-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-items li {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 0;
    padding-left: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.lista-items li::before {
    content: '•';
    color: #4FD1C5;
    font-size: 1.5rem;
    line-height: 1;
    margin-right: 12px;
    flex-shrink: 0;
}

.lista-items li:hover {
    color: #fff;
    padding-left: 5px;
}

/* Listas expandibles (Acordeón) */
.servicio-acordeon {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.lista-titulo-expandible {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #4FD1C5;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    user-select: none;
}

.lista-titulo-expandible:hover {
    background: rgba(79, 209, 197, 0.1);
}

.lista-titulo-expandible.active {
    background: rgba(79, 209, 197, 0.15);
    border-left-color: #3DBFB3;
}

.icono-expandible {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4FD1C5;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.lista-titulo-expandible.active .icono-expandible {
    transform: rotate(45deg);
}

/* Contenido del acordeón */
.acordeon-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
    padding: 0 20px;
}

.acordeon-content.active {
    max-height: 500px;
    padding: 20px 20px;
    border-left: 3px solid rgba(79, 209, 197, 0.3);
}

/* Items dentro del acordeón */
.acordeon-content .lista-items {
    margin: 0;
    padding-left: 0;
}

.acordeon-content .lista-items li {
    padding: 8px 0;
    padding-left: 25px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.acordeon-content .lista-items li::before {
    position: static;
    margin-right: 10px;
    line-height: 1;
}

/* Botón CTA en detalle */
.cta-detalle {
    display: inline-block;
    background-color: #4FD1C5;
    color: #0F1B1B;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.3);
}

.cta-detalle:hover {
    background-color: #3DBFB3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.5);
}

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

/* Tablets */
@media (max-width: 1024px) {
    .servicio-content {
        gap: 40px;
    }

    .servicio-titulo {
        font-size: 3rem;
    }

    .servicio-descripcion {
        font-size: 1.15rem;
    }

    .servicio-imagen {
        min-height: 400px;
    }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
    .servicio-content {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
    }

    .servicio-imagen {
        min-height: 350px;
        order: 1;
    }

    .servicio-info {
        order: 2;
        padding: 0;
    }

    .servicio-titulo {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .servicio-descripcion {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .container-detalle {
        width: 90%;
        padding: 0 15px;
    }

    .servicio-hero {
        padding: 40px 0;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .servicio-titulo {
        font-size: 2rem;
    }

    .servicio-descripcion {
        font-size: 1rem;
    }

    .servicio-imagen {
        min-height: 300px;
    }

    .lista-titulo,
    .lista-titulo-expandible {
        font-size: 1rem;
    }

    .lista-items li {
        font-size: 0.95rem;
    }

    .cta-detalle {
        padding: 15px 35px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .servicio-hero {
        padding: 30px 0;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 360px) {
    .servicio-titulo {
        font-size: 1.75rem;
    }

    .servicio-imagen {
        min-height: 250px;
    }
}

