/* ===================================
   Services Page - Styles
   =================================== */

/* Services Hero */
.services-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
    overflow: hidden;
    padding-top: 120px;
}

.services-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.services-hero-bg .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/faro.jpg') center/cover no-repeat;
    opacity: 0.08;
}

.services-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 60px 0;
}

.services-hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 20px;
}

.services-hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Service Detail Section */
.service-detail-section {
    padding: 100px 0;
    position: relative;
}

.service-detail-section.alt-bg {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
}

.service-detail-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    margin-left: -30px;
    margin-right: 10px;
}

.service-detail-section.alt-bg .service-detail-image {
    margin-left: 10px;
    margin-right: -30px;
}

.service-detail-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.service-detail-image:hover img {
    transform: scale(1.05);
}

.service-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(244, 163, 0, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.service-detail-content {
    padding: 20px 0 20px 40px;
}

.service-detail-section.alt-bg .service-detail-content {
    padding: 20px 40px 20px 0;
}

.service-icon-badge {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(244, 163, 0, 0.3);
}

.service-icon-badge i {
    font-size: 30px;
    color: var(--color-blue-dark);
}

.service-detail-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-blue-dark);
    margin-bottom: 20px;
}

.service-intro {
    font-size: 17px;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-description-full {
    margin-bottom: 30px;
}

.service-description-full p {
    font-size: 15px;
    color: var(--color-gray);
    line-height: 1.7;
}

/* Service Features Grid */
.service-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

.feature-item {
    padding: 25px;
    background: rgba(244, 163, 0, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(244, 163, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(244, 163, 0, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(244, 163, 0, 0.15);
}

.feature-item i {
    font-size: 24px;
    color: var(--color-yellow);
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-blue-dark);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: var(--color-gray);
    margin: 0;
    line-height: 1.6;
}

/* CTA Section */
.services-cta {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
    overflow: hidden;
}

.services-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.services-cta-bg .hero-bg {
    background: url('../img/faro.jpg') center/cover no-repeat;
    opacity: 0.05;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.services-cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.services-cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 20px;
}

.services-cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
}

.btn-lg {
    padding: 18px 45px;
    font-size: 18px;
}

/* ===================================
   ANIMACIONES SECUENCIALES
   =================================== */

/* Estado inicial - elementos ocultos */
.service-detail-section .service-detail-image {
    opacity: 0;
    transform: translateX(-80px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-detail-section.alt-bg .service-detail-image {
    transform: translateX(80px) scale(0.95);
}

.service-detail-section .service-icon-badge {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-detail-section .service-detail-content h2 {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-detail-section .service-intro {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-detail-section .service-description-full {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-detail-section .service-features-grid {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-detail-section .feature-item {
    opacity: 0;
    transform: translateX(-40px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-detail-section .btn-primary-custom {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hero animations */
.services-hero-content .section-badge,
.services-hero-content .services-hero-title,
.services-hero-content .services-hero-description {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.services-hero-content .section-badge {
    transform: translateY(-20px);
}

.services-hero-content .services-hero-title {
    transform: translateY(30px);
}

.services-hero-content .services-hero-description {
    transform: translateY(40px);
}

/* Estado animado - cuando tiene clase animate-in */
.service-detail-section.animate-in .service-detail-image {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 0.1s;
}

.service-detail-section.animate-in .service-icon-badge {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition-delay: 0.3s;
}

.service-detail-section.animate-in .service-detail-content h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.service-detail-section.animate-in .service-intro {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.service-detail-section.animate-in .service-description-full {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.service-detail-section.animate-in .service-features-grid {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.service-detail-section.animate-in .feature-item:nth-child(1) {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 0.8s;
}

.service-detail-section.animate-in .feature-item:nth-child(2) {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 0.95s;
}

.service-detail-section.animate-in .feature-item:nth-child(3) {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 1.1s;
}

.service-detail-section.animate-in .feature-item:nth-child(4) {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 1.25s;
}

.service-detail-section.animate-in .btn-primary-custom {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 1.4s;
}

/* Hero animado */
.services-hero.animate-in .section-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.services-hero.animate-in .services-hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.services-hero.animate-in .services-hero-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* Footer */
.footer {
    background: var(--color-blue-dark);
    padding: 60px 0 30px;
    color: var(--color-white);
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--color-yellow);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--color-yellow);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--color-yellow);
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .services-hero-title {
        font-size: 42px;
    }
    
    .service-detail-content {
        padding: 40px 0 0 0;
    }
    
    .service-detail-section.alt-bg .service-detail-content {
        padding: 40px 0 0 0;
    }
    
    .service-detail-content h2 {
        font-size: 32px;
    }
    
    .service-features-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-image {
        margin-left: 0;
        margin-right: 0;
    }
    
    .service-detail-section.alt-bg .service-detail-image {
        margin-left: 0;
        margin-right: 0;
    }
    
    .service-detail-image img {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .services-hero {
        min-height: 50vh;
        padding-top: 100px;
    }
    
    .services-hero-title {
        font-size: 32px;
    }
    
    .services-hero-description {
        font-size: 16px;
    }
    
    .service-detail-section {
        padding: 60px 0;
    }
    
    .service-detail-content h2 {
        font-size: 28px;
    }
    
    .service-intro {
        font-size: 15px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .services-cta-content h2 {
        font-size: 28px;
    }
    
    .services-cta-content p {
        font-size: 16px;
    }
}
