/* Estilos para la página de servicios detallados */

/* Encabezado de página mejorado con diseño más sofisticado */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    color: var(--light-text);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

/* Overlay con imagen de fondo profesional */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1589578527966-fdac0f44566c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

/* Elementos decorativos adicionales */
.header-overlay:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(12, 35, 64, 0.4), transparent);
}

/* Patrón decorativo */
.header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
    z-index: 1;
}

/* Elementos gráficos flotantes */
.header-graphic {
    position: absolute;
    z-index: 1;
}

.header-graphic.graphic-1 {
    top: 20%;
    right: 5%;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.header-graphic.graphic-2 {
    bottom: 15%;
    left: 10%;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.05);
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite 1s;
}

.header-graphic.graphic-3 {
    top: 30%;
    left: 15%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(var(--secondary-color-rgb), 0.1);
    animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Contenedor principal con diseño mejorado */
.page-header .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Contenido del encabezado con animaciones */
.header-content {
    max-width: 60%;
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Título de página con efectos visuales */
.page-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--light-text);
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* Descripción de página */
.page-description {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Migas de pan mejoradas */
.breadcrumbs {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.breadcrumbs a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
}

.separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
}

.separator i {
    font-size: 0.8rem;
}

.current {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Imagen decorativa en el encabezado */
.header-image {
    max-width: 45%;
    position: relative;
    animation: fadeInRight 1s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.header-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Efecto de brillo en la imagen */
.header-image:before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at center, rgba(var(--secondary-color-rgb), 0.2) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 992px) {
    .page-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .page-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .page-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .header-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 70px 0 60px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1.1rem;
    }
    
    .header-image {
        max-width: 90%;
    }
    
    .header-graphic.graphic-1 {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 60px 0 50px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .breadcrumbs {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
    
    .header-image {
        max-width: 90%;
    }
}

/* Sección de introducción */
.services-intro {
    padding: 100px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.services-intro:before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 84, 80, 0.05) 0%, rgba(0, 84, 80, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.services-intro:after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(12, 35, 64, 0.05) 0%, rgba(12, 35, 64, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Añadir elementos decorativos flotantes */
.floating-element {
    position: absolute;
    opacity: 0.05;
    z-index: 0;
}

.floating-element.el-1 {
    top: 20%;
    left: 5%;
    font-size: 8rem;
    transform: rotate(-15deg);
    color: var(--primary-color);
}

.floating-element.el-2 {
    top: 60%;
    right: 5%;
    font-size: 10rem;
    transform: rotate(15deg);
    color: var(--secondary-color);
}

.floating-element.el-3 {
    bottom: 10%;
    left: 15%;
    font-size: 7rem;
    transform: rotate(45deg);
    color: var(--accent-color);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.intro-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.intro-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-accent);
    margin-bottom: 30px;
}

.intro-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.intro-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.intro-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.intro-feature i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.intro-feature span {
    font-weight: 500;
    color: var(--primary-color);
}

/* Sección de servicios detallados */
.services-detail {
    padding: 80px 0 120px;
    background-color: #ffffff;
    position: relative;
}

.services-detail:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(245, 245, 245, 0) 0%, rgba(245, 245, 245, 0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

.service-item {
    display: flex;
    margin-bottom: 120px;
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item:after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.service-item:last-child:after {
    display: none;
}

.service-icon-container {
    flex: 0 0 120px;
    padding: 40px 0 40px 40px;
}

/* Corregir los iconos de servicio */
.service-icon {
    width: 80px; /* Reducir el tamaño del círculo */
    height: 80px; /* Reducir el tamaño del círculo */
    background-color: var(--secondary-color);
    background-image: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text) !important;
    box-shadow: 0 8px 20px rgba(0, 84, 80, 0.2);
    position: sticky;
    top: 120px;
    transition: all 0.3s ease;
}

/* Aumentar el tamaño del icono dentro del círculo */
.service-icon i {
    font-size: 1.9rem; /* Aumentar el tamaño del icono */
    color: var(--light-text) !important;
}

/* Ajustar el contenedor del icono para mantener el espaciado adecuado */
.service-icon-container {
    flex: 0 0 100px;
    padding: 40px 0 40px 40px;
    display: flex;
    align-items: flex-start;
}

/* Efecto hover mejorado */
.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--accent-color);
    background-image: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.service-content {
    flex: 1;
    padding: 40px 40px 40px 30px;
}

.service-title {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.service-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
}

.service-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-accent);
    margin-bottom: 40px;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-left-color: var(--secondary-color);
    background-color: #f9f9f9;
}

.feature-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    font-weight: 600;
}

.feature-title:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
}

.service-cta {
    margin-top: 30px;
    text-align: right;
}



.btn-primary: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: all 0.6s ease;
}

.btn-primary:hover:before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 84, 80, 0.2);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(5px);
}

/* Sección de CTA */
.contact-cta {
    background-color: var(--primary-color);
    background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--light-text);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 35, 64, 0.9), rgba(10, 26, 47, 0.95));
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2.6rem;
    margin-bottom: 25px;
    color: var(--light-text);
    font-weight: 700;
}

.cta-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Estilo global para todos los botones cta-button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}






.cta-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Añadir un separador decorativo entre secciones */
.section-divider {
    height: 100px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.section-divider:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/wave-divider.svg');
    background-size: cover;
    background-position: center;
}

/* Añadir animaciones para elementos al hacer scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Estilos responsivos */
@media (max-width: 1100px) {
    .service-item {
        margin-bottom: 100px;
    }
    
    .service-icon-container {
        padding: 30px 0 30px 30px;
    }
    
    .service-content {
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        flex-direction: column;
        margin-bottom: 80px;
    }
    
    .service-icon-container {
        margin-right: 0;
        padding: 30px 0 0 0;
        display: flex;
        justify-content: center;
    }
    
    .service-content {
        padding: 20px 30px 40px;
    }
    
    .service-icon {
        position: static;
    }
    
    .page-title {
        font-size: 2.6rem;
    }
    
    .intro-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .services-intro {
        padding: 70px 0;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .service-description {
        font-size: 1rem;
    }
    
    .feature {
        padding: 20px;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .intro-features {
        flex-direction: column;
        align-items: center;
    }
    
    .intro-feature {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 50px 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .breadcrumbs {
        font-size: 0.9rem;
    }
    
    .service-item {
        margin-bottom: 60px;
    }
    
    .service-item:after {
        bottom: -30px;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 1.7rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 15px 25px;
        font-size: 1rem;
    }
}
