/* ===== SERVICIOS PAGE STYLES ===== */

/* Estilos básicos que se perdieron de styles.css */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #2A5C8D, #FFD700);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--dark-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
}

/* Estilos específicos para la sección de Tecnología */
.technology .section-subtitle {
    color: white;
    max-width: 100%;
    background: rgba(42, 92, 141, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    line-height: 1.8;
}

/* Animaciones básicas que se perdieron */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Aplicar animaciones a elementos con data-aos */
[data-aos="fade-up"] {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 1 !important;
    visibility: visible !important;
}

[data-aos="fade-right"] {
    animation: slideInLeft 0.8s ease forwards;
}

[data-aos="fade-left"] {
    animation: slideInRight 0.8s ease forwards;
}

[data-aos="zoom-in"] {
    animation: zoomIn 0.6s ease forwards;
}

[data-aos="slide-up"] {
    animation: slideUp 0.8s ease forwards;
}

[data-aos="bounce-in"] {
    animation: bounceIn 0.8s ease forwards;
}

/* Clase para animar elementos al hacer scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones específicas para diferentes elementos */
.scroll-animate-delay-1 {
    transition-delay: 0.1s;
}

.scroll-animate-delay-2 {
    transition-delay: 0.2s;
}

.scroll-animate-delay-3 {
    transition-delay: 0.3s;
}

.scroll-animate-delay-4 {
    transition-delay: 0.4s;
}

/* Animación para tarjetas */
.card-animate {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-animate.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animación para texto */
.text-animate {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.text-animate.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Animación para imágenes */
.image-animate {
    opacity: 0;
    transform: translateX(30px) scale(0.9);
    transition: all 0.8s ease;
}

.image-animate.animated {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Animación para botones */
.button-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.button-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section - Enhanced */
.hero-services {
    position: relative;
    min-height: 80vh;
    background:
        linear-gradient(
            135deg,
            rgba(13, 45, 74, 0.45) 0%,
            rgba(30, 74, 122, 0.35) 50%,
            rgba(42, 92, 141, 0.25) 100%
        ),
        url('../assets/hero-servicios.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

.hero-services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-services .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 120px 0 80px;
}

.hero-services .hero-text {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-services .hero-subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-services .hero-main-title {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-services .hero-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

/* Grid de Servicios en Hero */
.hero-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.service-preview {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-preview:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: #FFD700;
}

.service-preview .service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #2A5C8D;
    transition: all 0.3s ease;
}

.service-preview:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.service-preview h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-preview p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

/* Botones CTA del Hero */
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.hero-cta .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.hero-cta .btn-primary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #2A5C8D;
    border: none;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.hero-cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-cta .btn-secondary:hover {
    background: white;
    color: #2A5C8D;
    transform: translateY(-3px);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatElement 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    top: 40%;
    right: 25%;
    animation-delay: 1s;
}

.floating-element i {
    font-size: 2rem;
    color: rgba(255, 215, 0, 0.6);
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    color: white;
}

.hero-stat .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #FFD700;
    display: block;
    margin-bottom: 10px;
}

.hero-stat .stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   ANIMACIONES GLOBALES
   ========================================== */

@keyframes geoFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1); 
        opacity: 0.2;
    }
    50% { 
        transform: translate(10px, -10px) rotate(180deg) scale(1.05); 
        opacity: 0.4;
    }
}

@keyframes floatShape {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.2;
    }
    50% { 
        transform: translate(15px, -15px) scale(1.1); 
        opacity: 0.3;
    }
}

@keyframes dotPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.15;
    }
    50% { 
        transform: scale(1.3); 
        opacity: 0.4;
    }
}

/* ==========================================
   NUEVA ESTRUCTURA DE 2 COLUMNAS (2fr + 1fr)
   ========================================== */

/* Contenedor principal de servicios */
.services-container {
    position: relative;
    z-index: 2;
    max-width: 2100px; /* Aumentado de 1400px a 2100px (50% más ancho) */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Contenedor individual de servicio */
.service-container {
    background: white;
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid rgba(42, 92, 141, 0.1);
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 partes izquierda, 1 parte derecha */
    gap: 2rem;
}

/* Estilo para alternar la posición */
.service-container.service-reverse {
    grid-template-columns: 1fr 2fr; /* 1 parte izquierda, 2 partes derecha */
}

.service-container.service-reverse .main-content {
    order: 2;
}

.service-container.service-reverse .sidebar {
    order: 1;
}

.service-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.15);
}

.service-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #2A5C8D, #FFD700, #FFA500);
    z-index: 1;
}

/* SECCIÓN PRINCIPAL (IZQUIERDA) */
.main-content {
    padding: 3rem;
}

.main-title {
    font-size: 2.2rem;
    color: #2A5C8D;
    margin-bottom: 1rem;
    font-weight: 700;
}

.main-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.main-description {
    color: #444;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* GRID DE TECNOLOGÍA (2x2) - MEJORADO CON MÁS COLOR */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.tech-item {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1e7ff 100%);
    padding: 1.3rem;
    border-radius: 15px;
    border-left: 6px solid #2A5C8D;
    font-size: 1rem;
    color: #1e3d6f;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(42, 92, 141, 0.15);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-item:hover {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    transform: translateX(10px) translateY(-3px);
    box-shadow: 0 12px 30px rgba(42, 92, 141, 0.25);
    border-left-color: #ff6b35;
    color: #d84315;
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-item i {
    color: #2A5C8D;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tech-item:hover i {
    color: #ff6b35;
    transform: scale(1.3) rotate(8deg);
}

/* BOTÓN */
.btn-details {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.4);
}

/* SIDEBAR (DERECHA) */
.sidebar {
    background: linear-gradient(180deg, #2A5C8D, #1e4a7a);
    color: white;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* GRID DE PROYECTOS (2x2) */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-item {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.project-item:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.project-item-icon {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.55);
    display: block;
    margin-bottom: 0.35rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.project-item:hover .project-item-icon {
    color: #ff6b35;
    transform: scale(1.15);
}

.highlight-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b35;
    display: block;
    margin-bottom: 0.5rem;
}

/* IMAGEN REAL EN SIDEBAR */
.service-sidebar-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.4s ease;
}

/* ÁREA DE IMAGEN */
.image-area {
    padding: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Zoom suave al hacer hover */
.image-area:hover .service-sidebar-img {
    transform: scale(1.04);
}

/* Caption con nombre del servicio */
.image-area::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 0 0 12px 12px;
    letter-spacing: 0.02em;
}

.image-placeholder {
    width: 100%;
    height: 150px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 3rem;
    color: #FFD700;
}

.image-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2A5C8D 0%, #1e4a7a 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #2A5C8D;
    border: none;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: #2A5C8D;
    transform: translateY(-3px);
}

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

@media (max-width: 1200px) {
    .services-container {
        max-width: 1800px; /* Ajustado para pantallas medianas */
        padding: 0 15px;
        gap: 50px;
    }
    
    .service-container {
        gap: 1.5rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 2.5rem;
    }
    
    .sidebar {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-services {
        min-height: 60vh;
    }

    .hero-services .hero-main-title {
        font-size: 2.5rem;
    }

    .hero-services .hero-description {
        font-size: 1.1rem;
    }

    .hero-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 30px 0;
    }

    .service-preview {
        padding: 20px 15px;
    }

    .service-preview .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .service-preview h3 {
        font-size: 1.1rem;
    }

    .service-preview p {
        font-size: 0.85rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .floating-element {
        width: 60px;
        height: 60px;
    }

    .floating-element i {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .services-container {
        gap: 40px;
        padding: 0 10px;
    }

    .service-container,
    .service-container.service-reverse {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .main-content,
    .service-container.service-reverse .main-content {
        padding: 2rem;
        order: 1;
    }

    .sidebar,
    .service-container.service-reverse .sidebar {
        padding: 2rem;
        order: 2;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-services .hero-main-title {
        font-size: 2rem;
    }

    .hero-services .hero-subtitle {
        font-size: 1rem;
    }

    .hero-services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 25px 0;
    }

    .service-preview {
        padding: 15px 10px;
    }

    .service-preview .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .service-preview h3 {
        font-size: 1rem;
    }

    .service-preview p {
        font-size: 0.8rem;
    }

    .hero-cta .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .floating-element {
        width: 50px;
        height: 50px;
    }

    .floating-element i {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .main-content {
        padding: 1.5rem;
    }

    .sidebar {
        padding: 1.5rem;
    }

    .main-title {
        font-size: 1.6rem;
    }

    .tech-item {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-item {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .highlight-number {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-buttons .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

/* ==========================================
   UTILIDADES
   ========================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================================
   ACCESIBILIDAD
   ========================================== */

.reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

.btn:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* ==========================================
   ESTADOS DE CARGA
   ========================================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2A5C8D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* ==========================================
   ACCESIBILIDAD Y OPTIMIZACIÓN
   ========================================== */

/* Soporte para prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .service-container:hover {
        transform: none;
    }
    
    .tech-item:hover {
        transform: none;
    }
    
    .project-item:hover {
        transform: none;
    }
    
    .floating-element {
        animation: none;
    }
    
    .service-block::after {
        animation: none;
    }
    
    .service-block-1 .floating-shapes::before,
    .service-block-1 .floating-shapes::after,
    .service-block-1 .floating-shapes .geo-element {
        animation: none;
        opacity: 0.1;
    }
    
    .service-block-1 .connection-dots .dot {
        animation: none;
        opacity: 0.1;
    }
}

/* Bloque de servicios individuales */
.service-block {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Bloque 1: Levantamientos Topográficos */
.service-block-1 {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    padding: 40px 0 80px 0;
}

.service-block-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(44, 90, 160, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(44, 90, 160, 0.08) 0%, transparent 60%);
    z-index: 1;
}

/* Bloque 2: Vuelo Fotogramétrico */
.service-block-2 {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.service-block-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(44, 90, 160, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(44, 90, 160, 0.1) 0%, transparent 60%);
    z-index: 1;
}

/* Bloque 3: Control Topográfico */
.service-block-3 {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.service-block-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 40% 60%, rgba(44, 90, 160, 0.16) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(255, 215, 0, 0.13) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(44, 90, 160, 0.09) 0%, transparent 60%);
    z-index: 1;
}

/* Bloque 4: Urbanización */
.service-block-4 {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.service-block-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 75%, rgba(44, 90, 160, 0.17) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(255, 215, 0, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(44, 90, 160, 0.08) 0%, transparent 60%);
    z-index: 1;
}

/* Bloque 5: Ingeniería Hidráulica */
.service-block-5 {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.service-block-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 35% 65%, rgba(44, 90, 160, 0.16) 0%, transparent 50%),
        radial-gradient(circle at 65% 35%, rgba(255, 215, 0, 0.13) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(44, 90, 160, 0.09) 0%, transparent 60%);
    z-index: 1;
}

/* Bloque 6: Proyecto y Diseño Arquitectónico */
.service-block-6 {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.service-block-6::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 45% 55%, rgba(44, 90, 160, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 55% 45%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(44, 90, 160, 0.1) 0%, transparent 60%);
    z-index: 1;
}

/* Contenedor de servicios dentro de cada bloque */
.service-block .container {
    position: relative;
    z-index: 2;
}

/* Título principal integrado en el primer bloque */
.service-block-1 .section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6f 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(44, 90, 160, 0.25);
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-block-1 .section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.service-block-1 .section-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.service-block-1 .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #ffffff, #ffd700);
    border-radius: 2px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.service-block-1 .section-subtitle {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 400;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Elementos decorativos específicos para cada bloque */
.service-block-1::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(44,90,160,0.25)" stroke-width="3"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(44,90,160,0.25)" stroke-width="2"/><circle cx="50" cy="50" r="5" fill="rgba(44,90,160,0.3)"/></svg>');
    opacity: 0.8;
    z-index: 1;
    animation: floatShape 15s ease-in-out infinite;
}

.service-block-2::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 15%;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 90,90 10,90" fill="none" stroke="rgba(44,90,160,0.25)" stroke-width="3"/><polygon points="50,25 75,75 25,75" fill="rgba(44,90,160,0.1)"/></svg>');
    opacity: 0.8;
    z-index: 1;
    animation: floatShape 18s ease-in-out infinite reverse;
}

.service-block-3::after {
    content: '';
    position: absolute;
    top: 60%;
    right: 20%;
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="20" y="20" width="60" height="60" fill="none" stroke="rgba(44,90,160,0.25)" stroke-width="3"/><circle cx="50" cy="50" r="15" fill="rgba(44,90,160,0.1)"/><circle cx="50" cy="50" r="5" fill="rgba(44,90,160,0.3)"/></svg>');
    opacity: 0.8;
    z-index: 1;
    animation: floatShape 20s ease-in-out infinite;
}

.service-block-4::after {
    content: '';
    position: absolute;
    bottom: 25%;
    right: 25%;
    width: 90px;
    height: 90px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,20 80,80 20,80" fill="none" stroke="rgba(44,90,160,0.25)" stroke-width="3"/><polygon points="50,35 65,65 35,65" fill="rgba(44,90,160,0.1)"/><polygon points="50,45 60,55 40,55" fill="rgba(44,90,160,0.2)"/></svg>');
    opacity: 0.8;
    z-index: 1;
    animation: floatShape 16s ease-in-out infinite reverse;
}

.service-block-5::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 25%;
    width: 110px;
    height: 110px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="30" r="8" fill="rgba(44,90,160,0.3)"/><circle cx="30" cy="70" r="8" fill="rgba(44,90,160,0.3)"/><circle cx="70" cy="70" r="8" fill="rgba(44,90,160,0.3)"/><path d="M50,38 L30,62 M50,38 L70,62" stroke="rgba(44,90,160,0.25)" stroke-width="2"/><circle cx="50" cy="50" r="3" fill="rgba(44,90,160,0.4)"/></svg>');
    opacity: 0.8;
    z-index: 1;
    animation: floatShape 22s ease-in-out infinite;
}

.service-block-6::after {
    content: '';
    position: absolute;
    bottom: 35%;
    left: 20%;
    width: 95px;
    height: 95px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="25" y="25" width="50" height="50" fill="none" stroke="rgba(44,90,160,0.25)" stroke-width="3"/><line x1="25" y1="50" x2="75" y2="50" stroke="rgba(44,90,160,0.25)" stroke-width="2"/><line x1="50" y1="25" x2="50" y2="75" stroke="rgba(44,90,160,0.25)" stroke-width="2"/><circle cx="50" cy="50" r="3" fill="rgba(44,90,160,0.3)"/></svg>');
    opacity: 0.8;
    z-index: 1;
    animation: floatShape 17s ease-in-out infinite reverse;
}

/* Responsive para bloques y títulos */
@media (max-width: 768px) {
    .service-block {
        padding: 60px 0;
    }
    
    .service-block::after {
        display: none;
    }
    
    .service-block::before {
        opacity: 0.5;
    }
    
    .service-block-1 {
        padding: 30px 0 60px 0;
    }
    
    .service-block-1 .section-header {
        margin: 0 1rem 2rem 1rem;
        padding: 1.5rem 0;
    }
    
    .service-block-1 .section-title {
        font-size: 2rem;
    }
    
    .service-block-1 .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Elementos decorativos del fondo optimizados - ahora en el primer bloque */
.service-block-1 .floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.service-block-1 .floating-shapes::before,
.service-block-1 .floating-shapes::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(44, 90, 160, 0.2);
    border-radius: 50%;
    animation: floatShape 18s ease-in-out infinite;
    will-change: transform;
}

.service-block-1 .floating-shapes::before {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(44, 90, 160, 0.05) 0%, transparent 70%);
}

.service-block-1 .floating-shapes::after {
    bottom: 20%;
    right: 15%;
    width: 140px;
    height: 140px;
    border-color: rgba(255, 215, 0, 0.2);
    animation-delay: 9s;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
}

.service-block-1 .floating-shapes .geo-element {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(44, 90, 160, 0.15);
    animation: geoFloat 25s ease-in-out infinite;
    will-change: transform;
}

.service-block-1 .floating-shapes .geo-element:nth-child(1) {
    top: 30%;
    right: 25%;
    transform: rotate(45deg);
    animation-delay: 0s;
    background: rgba(44, 90, 160, 0.03);
}

.service-block-1 .floating-shapes .geo-element:nth-child(2) {
    bottom: 40%;
    left: 20%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border-color: rgba(255, 215, 0, 0.15);
    animation-delay: 8s;
    background: rgba(255, 215, 0, 0.03);
}

.service-block-1 .decorative-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.service-block-1 .decorative-lines::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(44, 90, 160, 0.15), transparent);
    transform: translateY(-50%);
}

.service-block-1 .decorative-lines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.15), transparent);
    transform: translateX(-50%);
}

.service-block-1 .connection-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.service-block-1 .connection-dots .dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(44, 90, 160, 0.3);
    border-radius: 50%;
    animation: dotPulse 4s ease-in-out infinite;
    will-change: transform, opacity;
    box-shadow: 0 0 10px rgba(44, 90, 160, 0.2);
}

.service-block-1 .connection-dots .dot:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.service-block-1 .connection-dots .dot:nth-child(2) {
    top: 30%;
    right: 25%;
    background: rgba(255, 215, 0, 0.3);
    animation-delay: 1s;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.service-block-1 .connection-dots .dot:nth-child(3) {
    bottom: 35%;
    left: 30%;
    animation-delay: 2s;
}

/* ==========================================
   SECCIÓN TECNOLOGÍA Y METODOLOGÍA MEJORADA
   ========================================== */

/* Fondo claro local — solo para esta sección en servicios.html */
.section-bg-claro {
    background: #F8FAFC;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.tech-methodology-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.tech-methodology-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(30, 58, 138, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.tech-methodology-section .container {
    position: relative;
    z-index: 2;
}

/* Grid mejorado - 4 elementos en línea */
.tech-methodology-section .tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    counter-reset: tech-cat;
}

/* Tarjetas de tecnología mejoradas */
.tech-methodology-section .tech-category {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    counter-increment: tech-cat;
}

.tech-methodology-section .tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1E3A8A, #3B82F6, #FFD700);
    transform: scaleX(1);
    transition: height 0.3s ease;
}

.tech-methodology-section .tech-category:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.tech-methodology-section .tech-category:hover::before {
    height: 7px;
}

/* Hover sombra coloreada por categoría */
.tech-methodology-section .tech-category:nth-child(1):hover { box-shadow: 0 20px 50px rgba(30, 58, 138, 0.22); }
.tech-methodology-section .tech-category:nth-child(2):hover { box-shadow: 0 20px 50px rgba(5, 150, 105, 0.22); }
.tech-methodology-section .tech-category:nth-child(3):hover { box-shadow: 0 20px 50px rgba(124, 58, 237, 0.22); }
.tech-methodology-section .tech-category:nth-child(4):hover { box-shadow: 0 20px 50px rgba(220, 38, 38, 0.22); }

/* Número decorativo fantasma */
.tech-methodology-section .tech-category::after {
    content: '0' counter(tech-cat);
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(30, 58, 138, 0.15);
    font-family: var(--font-display, 'Playfair Display', serif);
    pointer-events: none;
    z-index: 0;
}

/* Iconos diferenciados por categoría */
.tech-methodology-section .tech-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tech-methodology-section .tech-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-icon-equipos {
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    color: white;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.tech-icon-equipos::before {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
}

.tech-icon-aereo {
    background: linear-gradient(135deg, #059669, #10B981);
    color: white;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

.tech-icon-aereo::before {
    background: linear-gradient(135deg, #10B981, #34D399);
}

.tech-icon-software {
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    color: white;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.tech-icon-software::before {
    background: linear-gradient(135deg, #A855F7, #C084FC);
}

.tech-icon-certificaciones {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: white;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.tech-icon-certificaciones::before {
    background: linear-gradient(135deg, #EF4444, #F87171);
}

.tech-methodology-section .tech-category:hover .tech-icon {
    transform: scale(1.1) rotate(5deg);
}

.tech-methodology-section .tech-category:hover .tech-icon::before {
    opacity: 1;
}

.tech-methodology-section .tech-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

/* Items de tecnología mejorados */
.tech-methodology-section .tech-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tech-methodology-section .tech-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0 0.45rem 0.75rem;
    background: none;
    border-radius: 0;
    border-left: 3px solid transparent;
    border-top: none;
    border-right: none;
    border-bottom: none;
    box-shadow: none;
    font-weight: 500;
    transition: transform 0.3s ease;
    text-align: left;
}

.tech-methodology-section .tech-item:hover {
    background: none;
    box-shadow: none;
    transform: translateX(5px);
}

.tech-methodology-section .tech-item i {
    font-size: 1rem;
    color: #3B82F6;
    width: 20px;
    text-align: center;
}

.tech-methodology-section .tech-item span {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

/* Íconos y borde de items coloreados por categoría */
.tech-methodology-section .tech-category:nth-child(1) .tech-item { border-left: 3px solid rgba(59, 130, 246, 0.35); }
.tech-methodology-section .tech-category:nth-child(2) .tech-item { border-left: 3px solid rgba(16, 185, 129, 0.35); }
.tech-methodology-section .tech-category:nth-child(3) .tech-item { border-left: 3px solid rgba(168, 85, 247, 0.35); }
.tech-methodology-section .tech-category:nth-child(4) .tech-item { border-left: 3px solid rgba(239, 68, 68, 0.35); }

.tech-methodology-section .tech-category:nth-child(1) .tech-item i { color: #3B82F6; }
.tech-methodology-section .tech-category:nth-child(2) .tech-item i { color: #10B981; }
.tech-methodology-section .tech-category:nth-child(3) .tech-item i { color: #A855F7; }
.tech-methodology-section .tech-category:nth-child(4) .tech-item i { color: #EF4444; }

/* Proceso de trabajo mejorado */
.tech-methodology-section .work-process {
    margin-top: 4rem;
    padding: 3rem 0;
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(30, 58, 138, 0.08);
    box-shadow: 0 4px 24px rgba(30, 58, 138, 0.07);
    position: relative;
}

.tech-methodology-section .process-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.tech-methodology-section .process-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748B;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tech-methodology-section .process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-methodology-section .process-step {
    text-align: center;
    position: relative;
}

.tech-methodology-section .process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, rgba(255, 215, 0, 0.3));
    z-index: 1;
}

.tech-methodology-section .process-step:last-child::after {
    display: none;
}

.tech-methodology-section .step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #F59E0B);
    color: #1E293B;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.tech-methodology-section .process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.tech-methodology-section .step-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}

.tech-methodology-section .step-content p {
    font-size: 0.95rem;
    color: #64748B;
    line-height: 1.5;
}

/* Responsive para tecnología */
@media (max-width: 1200px) {
    .tech-methodology-section .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tech-methodology-section .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
    
    .tech-methodology-section .process-step::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .tech-methodology-section {
        padding: 60px 0;
    }
    
    .tech-methodology-section .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-methodology-section .tech-category {
        padding: 1.5rem;
    }
    
    .tech-methodology-section .tech-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .tech-methodology-section .tech-title {
        font-size: 1.2rem;
    }
    
    .tech-methodology-section .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tech-methodology-section .process-title {
        font-size: 1.8rem;
    }
    
    .tech-methodology-section .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tech-methodology-section .tech-category {
        padding: 1.25rem;
    }
    
    .tech-methodology-section .tech-item {
        padding: 0.6rem 0.8rem;
    }
    
    .tech-methodology-section .tech-item span {
        font-size: 0.85rem;
    }
    
    .tech-methodology-section .work-process {
        padding: 2rem 1rem;
        margin-top: 3rem;
    }
}

/* ===== SERVICIOS ESPECIALIZADOS DETALLADOS — Rediseño ===== */

.specialized-services {
    padding: var(--spacing-4xl) 0;
    background: #F1F5F9;
    position: relative;
    overflow: hidden;
}

.specialized-services::before {
    display: none;
}

/* Grid 2 columnas en desktop */
.specialized-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

/* Card base */
.specialized-service-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.specialized-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.14);
}

/* Barra superior de color — única por servicio */
.specialized-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s ease;
}

.specialized-service-card:hover::before {
    height: 6px;
}

.specialized-service-card:nth-child(1)::before { background: linear-gradient(90deg, #2A5C8D, #3B82F6); }
.specialized-service-card:nth-child(2)::before { background: linear-gradient(90deg, #059669, #10B981); }
.specialized-service-card:nth-child(3)::before { background: linear-gradient(90deg, #7C3AED, #A855F7); }
.specialized-service-card:nth-child(4)::before { background: linear-gradient(90deg, #D97706, #F59E0B); }
.specialized-service-card:nth-child(5)::before { background: linear-gradient(90deg, #DC2626, #EF4444); }

/* Número decorativo fantasma en esquina superior derecha */
.specialized-service-card::after {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(0, 0, 0, 0.04);
    font-family: var(--font-display, 'Playfair Display', serif);
    pointer-events: none;
    z-index: 0;
}

.specialized-service-card:nth-child(1)::after { content: '01'; }
.specialized-service-card:nth-child(2)::after { content: '02'; }
.specialized-service-card:nth-child(3)::after { content: '03'; }
.specialized-service-card:nth-child(4)::after { content: '04'; }
.specialized-service-card:nth-child(5)::after { content: '05'; }

/* Ícono cuadrado coloreado */
.specialized-service-card .service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0 1.25rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.specialized-service-card:hover .service-icon {
    transform: scale(1.08) rotate(3deg);
}

.specialized-service-card .service-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Colores únicos por card */
.specialized-service-card:nth-child(1) .service-icon { background: linear-gradient(135deg, #2A5C8D, #3B82F6); box-shadow: 0 6px 20px rgba(42, 92, 141, 0.3); }
.specialized-service-card:nth-child(2) .service-icon { background: linear-gradient(135deg, #059669, #10B981); box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3); }
.specialized-service-card:nth-child(3) .service-icon { background: linear-gradient(135deg, #7C3AED, #A855F7); box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3); }
.specialized-service-card:nth-child(4) .service-icon { background: linear-gradient(135deg, #D97706, #F59E0B); box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3); }
.specialized-service-card:nth-child(5) .service-icon { background: linear-gradient(135deg, #DC2626, #EF4444); box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3); }

/* Título */
.specialized-service-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: #1E293B;
    margin: 0 2rem 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

/* Descripción */
.specialized-service-card p {
    color: #475569;
    line-height: 1.65;
    margin: 0 2rem 1.25rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Lista con check icon coloreado */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

.service-features li {
    padding: 0.65rem 2rem 0.65rem calc(2rem + 1.4rem);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.service-features li:hover {
    background: rgba(0, 0, 0, 0.02);
}

.service-features li:last-child {
    border-bottom: none;
    padding-bottom: 1.5rem;
}

/* Check icon circular coloreado */
.service-features li::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

/* Color del check por card */
.specialized-service-card:nth-child(1) .service-features li::before { background-color: #2A5C8D; }
.specialized-service-card:nth-child(2) .service-features li::before { background-color: #059669; }
.specialized-service-card:nth-child(3) .service-features li::before { background-color: #7C3AED; }
.specialized-service-card:nth-child(4) .service-features li::before { background-color: #D97706; }
.specialized-service-card:nth-child(5) .service-features li::before { background-color: #DC2626; }

/* 5ta card centrada sola en desktop */
@media (min-width: 769px) {
    .specialized-service-card:nth-child(5):last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - var(--spacing-xl) / 2);
        margin: 0 auto;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .specialized-services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .specialized-service-card:nth-child(5):last-child {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .specialized-service-card .service-icon {
        width: 48px;
        height: 48px;
        margin: 1.5rem 0 1rem 1.5rem;
    }

    .specialized-service-card h3 {
        font-size: 1.1rem;
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }

    .specialized-service-card p {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }

    .service-features li {
        padding-left: calc(1.5rem + 1.4rem);
    }

    .service-features li::before {
        left: 1.5rem;
    }

    .service-features li:last-child {
        padding-bottom: 1.25rem;
    }
}

/* ================================================================
   MODAL DE DETALLE DE SERVICIO
   ================================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    animation: modalFadeIn 0.25s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: grid;
    grid-template-columns: 320px 1fr;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
}

/* Columna imagen */
.modal-image-panel {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.modal-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.modal-category-badge {
    background: var(--modal-accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
}

/* Columna contenido */
.modal-text-panel {
    padding: 2.25rem 2rem;
    overflow-y: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.modal-accent-bar {
    height: 4px;
    width: 56px;
    border-radius: 2px;
    background: var(--modal-accent);
    flex-shrink: 0;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: #1E293B;
    margin: 0;
    line-height: 1.3;
    font-weight: 700;
}

.modal-description {
    color: #64748B;
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

/* Fila de estadísticas */
.modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background: rgba(var(--modal-accent-rgb), 0.07);
    border-radius: 12px;
    padding: 0.9rem;
    flex-shrink: 0;
}

.modal-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--modal-accent);
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: 0.68rem;
    color: #94A3B8;
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Lista de características */
.modal-features h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94A3B8;
    margin: 0 0 0.4rem;
    font-weight: 600;
}

.modal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-features li {
    padding: 0.52rem 0 0.52rem 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.4;
}

.modal-features li:last-child {
    border-bottom: none;
}

.modal-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--modal-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-size: 10px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Botones CTA */
.modal-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.btn-modal-primary {
    flex: 1;
    min-width: 140px;
    padding: 0.8rem 1.25rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-modal-secondary {
    flex: 1;
    min-width: 120px;
    padding: 0.8rem 1.25rem;
    background: transparent;
    color: var(--modal-accent);
    border: 2px solid var(--modal-accent);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-modal-secondary:hover {
    background: var(--modal-accent);
    color: white;
}

/* Animaciones del modal */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 1fr;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-image-panel {
        height: 200px;
        min-height: unset;
    }

    .modal-text-panel {
        padding: 1.5rem 1.25rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
    }

    .modal-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .modal-cta {
        flex-direction: column;
    }

    .btn-modal-primary,
    .btn-modal-secondary {
        min-width: unset;
        text-align: center;
    }
}
