/* ========================================
   HERO SERVICIOS - 100VH
======================================== */
.hero-servicios-main {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-background-default {
    background: linear-gradient(135deg, #003366 0%, #0056b3 50%, #003366 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* Decoraciones flotantes */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    z-index: 1;
}

.hero-decoration-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #FF7A3D 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.hero-decoration-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    bottom: -50px;
    left: 10%;
    animation: float 25s ease-in-out infinite reverse;
}

.hero-decoration-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #0056b3 0%, transparent 70%);
    top: 50%;
    left: -50px;
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

/* Contenido Hero */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 122, 61, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(255, 122, 61, 0.5);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-badge i {
    color: #fff;
    font-size: 1.2rem;
}

.hero-badge span {
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

.hero-title {
    color: #fff;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -2px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.35rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-divider {
    width: 140px;
    height: 5px;
    background: linear-gradient(90deg, #FF7A3D, #ff9500, transparent);
    border-radius: 3px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(255, 122, 61, 0.8);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-indicator a:hover {
    opacity: 1;
    transform: translateY(8px);
}

.scroll-indicator span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.scroll-indicator i {
    font-size: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ========================================
   SERVICIOS SECTION
======================================== */
.servicios-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
}

/* Header de Servicios */
.servicios-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.header-badge i {
    color: #FF7A3D;
    font-size: 1.2rem;
}

.header-badge span {
    color: #003366;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.header-title {
    color: #003366;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.header-subtitle {
    color: #6c757d;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* ========================================
   GRID DE SERVICIOS - DISEÑO MODERNO
======================================== */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Card Moderna */
.servicio-card-modern {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0, 51, 102, 0.05);
    animation: fadeInUp 0.6s ease-out both;
}

.servicio-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 122, 61, 0.3);
}

/* Media Container - Imagen o Icono */
.servicio-media {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #003366 0%, #0056b3 100%);
}

/* Imagen */
.servicio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.servicio-card-modern:hover .servicio-img {
    transform: scale(1.15);
}

.servicio-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.3), rgba(255, 122, 61, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.servicio-card-modern:hover .servicio-img-overlay {
    opacity: 1;
}

/* Icono Container (cuando no hay imagen) */
.servicio-icon-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.servicio-icon-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 122, 61, 0.2) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.servicio-icon-container i {
    position: relative;
    z-index: 2;
    font-size: 7rem;
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.servicio-card-modern:hover .servicio-icon-container i {
    transform: scale(1.2) rotate(-15deg);
    color: #fff;
}

/* Body - Contenido */
.servicio-body {
    padding: 2.5rem;
    position: relative;
}

/* Badge flotante */
.servicio-badge {
    position: absolute;
    top: -30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF7A3D, #ff9f66);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(255, 122, 61, 0.5);
    transition: all 0.4s ease;
}

.servicio-badge i {
    color: #fff;
    font-size: 1.8rem;
}

.servicio-card-modern:hover .servicio-badge {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 35px rgba(255, 122, 61, 0.7);
}

/* Título */
.servicio-title {
    color: #003366;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.servicio-card-modern:hover .servicio-title {
    color: #FF7A3D;
}

/* Texto */
.servicio-text {
    color: #6c757d;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Link */
.servicio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #003366;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.servicio-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF7A3D, #ff9f66);
    transition: width 0.4s ease;
}

.servicio-link:hover::after {
    width: 100%;
}

.servicio-link:hover {
    color: #FF7A3D;
    gap: 1rem;
}

.servicio-link i {
    transition: transform 0.3s ease;
}

.servicio-link:hover i {
    transform: translateX(5px);
}

/* Sin Servicios */
.no-servicios {
    text-align: center;
    padding: 6rem 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.no-servicios-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #e3f2fd, #f0f4ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.no-servicios-icon i {
    font-size: 3.5rem;
    color: #FF7A3D;
}

.no-servicios h3 {
    color: #003366;
    margin-bottom: 1.25rem;
    font-weight: 800;
    font-size: 1.8rem;
}

.no-servicios p {
    color: #6c757d;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-servicios-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #FF7A3D 0%, #ff9500 100%);
    position: relative;
    overflow: hidden;
}

.cta-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.cta-decoration-1 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: 50px;
    left: 50px;
}

.cta-decoration-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    bottom: 50px;
    right: 50px;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.cta-icon i {
    color: #fff;
    font-size: 3rem;
}

.cta-content h2 {
    color: #fff;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

.btn-cta-primary {
    background: #fff;
    color: #FF7A3D;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-cta-secondary:hover {
    background: #fff;
    color: #FF7A3D;
    transform: translateY(-5px);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1200px) {
    .servicios-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .header-title {
        font-size: 2.5rem;
    }
    
    .servicios-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-servicios-main {
        height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .servicio-media {
        height: 220px;
    }
    
    .servicio-icon-container i {
        font-size: 5rem;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .header-title {
        font-size: 1.75rem;
    }
    
    .servicio-body {
        padding: 2rem 1.5rem;
    }
    
    .servicio-badge {
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .servicio-badge i {
        font-size: 1.5rem;
    }
}