/*
==================================================
|   Estilos para las páginas de Servicios         |
==================================================
*/

/* --- Encabezado General de Páginas Internas --- */
.page-header {
    background-color: var(--white-color);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}
.page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
}
.breadcrumb {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin: 0;
}
.breadcrumb a {
    text-decoration: none;
    color: var(--grey-color);
    font-weight: 500;
}
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb span { color: var(--grey-color); }

/* --- Hero para Páginas Internas --- */
.page-header-hero {
    position: relative;
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    border-bottom: none;
}
.page-header-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.page-header-hero .container {
    position: relative;
    z-index: 2;
}
.page-header-hero h1, .page-header-hero .breadcrumb a, .page-header-hero .breadcrumb span {
    color: var(--white-color);
}
.page-header-hero .breadcrumb a { opacity: 0.8; }
.page-header-hero .breadcrumb a:hover { opacity: 1; }

/* --- Cuadrícula de la Página Principal de Servicios --- */
.services-page-section { padding: 5rem 0; }
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 3rem auto 0 auto;
}

/* --- Llamado a la Acción (CTA) --- */
.cta-section {
    padding: 6rem 0;
    position: relative;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white-color);
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(46, 107, 59, 0.8);
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { color: var(--white-color); font-size: 2.5rem; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 2rem auto; text-align: center; }
.btn-cta { background-color: var(--white-color); color: var(--primary-color); border-color: var(--white-color); padding: 14px 35px; font-size: 1rem; }
.btn-cta:hover { background-color: transparent; color: var(--white-color); }

/* --- Secciones de Detalle de Servicio --- */
.section-service-intro, .section-service-detail { padding: 5rem 0; }
.service-description .section-title { font-size: 2.5rem; text-align: left; }
.service-advantages { display: flex; flex-direction: column; gap: 2rem; padding-top: 2.5rem; }
.advantage-item { display: flex; align-items: flex-start; }
.advantage-item .line { display: block; width: 20px; height: 3px; background-color: var(--primary-color); margin-right: 1.5rem; margin-top: 0.7rem; }
.advantage-item h4 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.section-service-detail { background-color: var(--light-color); }
.image-with-shape-wrapper { position: relative; display: flex; align-items: center; justify-content: center; }
.image-with-shape-wrapper::before { content: ''; position: absolute; width: 90%; height: 90%; background-color: var(--white-color); border-radius: 65% 35% 55% 45% / 48% 45% 55% 52%; z-index: 1; transition: all 0.5s ease; }
.image-with-shape-wrapper:hover::before { transform: scale(1.05) rotate(10deg); }
.image-with-shape-wrapper .rounded-img { border-radius: var(--border-radius); position: relative; z-index: 2; box-shadow: var(--shadow-deep); }
.service-detail-text p { font-size: 1.1rem; }
.btn-animated-arrow { display: inline-flex; align-items: center; padding: 14px 28px; border: 2px solid var(--primary-color); border-radius: var(--border-radius); color: var(--primary-color); font-weight: 700; margin-top: 1.5rem; transition: all 0.3s ease; overflow: hidden; }
.btn-animated-arrow:hover { background-color: var(--primary-color); color: var(--white-color); }
.btn-animated-arrow:hover span { transform: translateX(-5px); }
.btn-animated-arrow:hover i { transform: translateX(5px); }

/* --- Responsive para "Servicios" --- */
@media (max-width: 992px) {
    .services-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .page-header .container { flex-direction: column; text-align: center; }
    .page-header h1 { font-size: 1.8rem; }
    .breadcrumb { justify-content: center; margin-top: 0.5rem; }
    .services-page-grid { grid-template-columns: 1fr; }
    .image-with-shape-wrapper { order: -1; margin-bottom: 2rem; }
    .service-description .section-title { text-align: center; }
}