/* PIRA RIESGOS - Custom Styles */

/* Color Variables */
:root {
    --color-principal: #1A3C66;
    --color-secundario: #00AEEF;
    --color-apoyo: #F4B400;
    --color-neutro-claro: #F9F9F9;
    --color-neutro-medio: #E0E0E0;
    --color-neutro-oscuro: #444444;
    --font-family: 'Inter', sans-serif;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-neutro-oscuro);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--color-principal);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-principal);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-neutro-oscuro);
    margin-bottom: 2rem;
}

/* Navigation */
.navbar {
    background: rgba(26, 60, 102, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: var(--color-principal);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: white !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-secundario) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--color-secundario);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-cta {
    background: var(--color-apoyo) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    border-radius: 25px !important;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #e6a200 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 180, 0, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 60, 102, 0.8) 0%, rgba(0, 174, 239, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    color: white;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-apoyo);
    border: none;
}

.btn-primary:hover {
    background: #e6a200;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(244, 180, 0, 0.3);
}

.btn-outline-light:hover {
    background: white;
    color: var(--color-principal);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Urgencia Section */
.urgencia-section {
    background: var(--color-neutro-claro);
    padding: 5rem 0;
}

.urgencia-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.urgencia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.urgencia-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-secundario), var(--color-apoyo));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.urgencia-card h4 {
    color: var(--color-principal);
    margin-bottom: 1rem;
    font-weight: 600;
}

.urgencia-quote {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--color-apoyo);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.urgencia-quote blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-principal);
    font-weight: 500;
}

/* Servicios Section */
.servicios-section {
    padding: 5rem 0;
    background: white;
}

.servicio-card {
    background: var(--color-neutro-claro);
    padding: 2.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.servicio-card:hover {
    border-color: var(--color-secundario);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 174, 239, 0.1);
}

.servicio-icon {
    width: 70px;
    height: 70px;
    background: var(--color-secundario);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.servicio-card h4 {
    color: var(--color-principal);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Experiencia Section */
.experiencia-section {
    background: var(--color-principal);
    color: white;
    padding: 5rem 0;
}

.experiencia-section .section-title,
.experiencia-section .section-subtitle {
    color: white;
}

.experiencia-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.experiencia-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.experiencia-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-apoyo);
    margin-bottom: 1rem;
}

.experiencia-icon {
    font-size: 3rem;
    color: var(--color-apoyo);
    margin-bottom: 1rem;
}

.experiencia-card h5 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Tecnología Section */
.tecnologia-section {
    padding: 5rem 0;
    background: var(--color-neutro-claro);
}

.tecnologia-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 2rem;
    color: var(--color-secundario);
    margin-right: 1.5rem;
    margin-top: 0.5rem;
}

.feature-item h5 {
    color: var(--color-principal);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tecnologia-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-dashboard {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-neutro-medio);
}

.dashboard-title {
    font-weight: 600;
    color: var(--color-principal);
    font-size: 1.1rem;
}

.dashboard-status {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-neutro-oscuro);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.active {
    background: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.dashboard-content {
    display: grid;
    gap: 1rem;
}

.metric-card {
    background: var(--color-neutro-claro);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secundario);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--color-neutro-oscuro);
    font-weight: 500;
}

/* Contacto Section */
.contacto-section {
    padding: 5rem 0;
    background: white;
}

.contact-form {
    background: var(--color-neutro-claro);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--color-principal);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--color-neutro-medio);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--color-secundario);
    box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.25);
}

/* Footer */
.footer {
    background: var(--color-principal);
    color: white;
}

.footer h5 {
    color: var(--color-apoyo);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--color-secundario);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--color-secundario);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-apoyo);
    transform: translateY(-3px);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-item i {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .tech-dashboard {
        margin-top: 3rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .urgencia-card,
    .servicio-card {
        padding: 2rem 1rem;
    }
    
    .experiencia-card {
        padding: 1.5rem 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}



/* Carousel Styles */
.carousel-item {
    transition: transform 1s ease-in-out;
}

.carousel-item .hero-bg-image {
    transition: transform 8s ease-out;
}

.carousel-item.active .hero-bg-image {
    transform: scale(1.1);
}

/* Service Cards with Images */
.servicio-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.servicio-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.servicio-card:hover .service-img {
    transform: scale(1.1);
}

.servicio-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.servicio-content .servicio-icon {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secundario);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 174, 239, 0.3);
}

/* Enhanced Urgencia Cards */
.urgencia-card {
    position: relative;
    overflow: hidden;
}

.urgencia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 174, 239, 0.1), transparent);
    transition: left 0.5s ease;
}

.urgencia-card:hover::before {
    left: 100%;
}

.urgencia-icon {
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced Experience Section */
.experiencia-card {
    position: relative;
    overflow: hidden;
}

.experiencia-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--color-apoyo), var(--color-secundario));
    opacity: 0.1;
    transition: width 0.3s ease;
}

.experiencia-card:hover::after {
    width: 100%;
}

/* Enhanced Technology Section */
.tecnologia-visual {
    position: relative;
}

.tech-dashboard {
    position: relative;
    overflow: hidden;
}

.tech-dashboard::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 174, 239, 0.1), transparent);
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

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

.metric-card {
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244, 180, 0, 0.1), transparent);
    transition: left 0.3s ease;
}

.metric-card:hover::before {
    left: 100%;
}

/* Typing Effect */
.hero-title.typing {
    border-right: 3px solid var(--color-apoyo);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        border-color: var(--color-apoyo);
    }
    51%, 100% {
        border-color: transparent;
    }
}

/* Enhanced Hover Effects */
.urgencia-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 174, 239, 0.15);
}

.experiencia-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Floating Animation for Icons */
.urgencia-icon,
.experiencia-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced Button Animations */
.btn-primary,
.btn-cta {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-cta::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: left 0.5s ease;
}

.btn-primary:hover::before,
.btn-cta:hover::before {
    left: 100%;
}

/* Scroll Progress Enhancement */
.scroll-progress {
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.5);
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .servicio-image {
        height: 150px;
    }
    
    .servicio-content {
        padding: 1rem;
    }
    
    .servicio-content .servicio-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        top: -30px;
    }
    
    .carousel-item .hero-bg-image {
        transform: none;
    }
    
    .carousel-item.active .hero-bg-image {
        transform: scale(1.05);
    }
}

/* Loading States */
.servicio-card.loading {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
}

.servicio-card.loading.loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.8s ease;
}

.urgencia-card.loading {
    opacity: 0;
    transform: translateY(30px) rotateX(45deg);
}

.urgencia-card.loading.loaded {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    transition: all 0.6s ease;
}

/* Enhanced Feature Items */
.feature-item {
    position: relative;
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: var(--color-secundario);
    transition: height 0.3s ease;
}

.feature-item:hover::before {
    height: 100%;
}

.feature-item:hover {
    transform: translateX(15px);
    background: rgba(0, 174, 239, 0.05);
}


/* News Section Styles */
.news-filters {
    margin-bottom: 2rem;
}

.news-filter {
    margin: 0 0.5rem 0.5rem 0;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.news-filter.active {
    background-color: var(--color-principal);
    border-color: var(--color-principal);
    color: white;
}

.news-filter:hover {
    background-color: var(--color-secundario);
    border-color: var(--color-secundario);
    color: white;
}

.news-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    flex-grow: 1;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-principal);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-source {
    font-weight: 600;
    color: var(--color-secundario);
    font-size: 0.9rem;
}

.news-date {
    color: #888;
    font-size: 0.85rem;
}

.news-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-category.LAFT {
    background-color: rgba(0, 174, 239, 0.1);
    color: var(--color-secundario);
}

.news-category.CORRUPCION {
    background-color: rgba(244, 180, 0, 0.1);
    color: var(--color-apoyo);
}

.news-link {
    color: var(--color-principal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: var(--color-secundario);
    text-decoration: underline;
}

.news-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.news-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.news-error {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    color: #721c24;
    margin: 1rem 0;
}

.news-update-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(0, 174, 239, 0.1);
    border-radius: 10px;
    color: var(--color-principal);
    font-size: 0.9rem;
}

.news-update-info i {
    margin-right: 0.5rem;
    color: var(--color-secundario);
}

/* Loading Animation */
.news-card.loading {
    opacity: 0;
    transform: translateY(30px);
}

.news-card.loading.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-filters {
        text-align: center;
    }
    
    .news-filter {
        margin: 0.25rem;
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    
    .news-card-title {
        font-size: 1.1rem;
    }
    
    .news-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Animation for news cards appearing */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

/* Hover effects for news cards */
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 174, 239, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.news-card:hover::before {
    left: 100%;
}

.news-card-header,
.news-card-footer {
    position: relative;
    z-index: 2;
}


/* Enlaces de Interés Section Styles */
#enlaces {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

#enlaces::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="%23dee2e6" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>
');
    opacity: 0.3;
    z-index: 1;
}

#enlaces .container {
    position: relative;
    z-index: 2;
}

.enlaces-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 60, 102, 0.1);
    position: relative;
    overflow: hidden;
}

.enlaces-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.enlaces-card:hover::before {
    transform: scaleX(1);
}

.enlaces-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 60, 102, 0.15);
}

.enlaces-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.enlaces-icon i {
    font-size: 1.8rem;
    color: white;
}

.enlaces-card:hover .enlaces-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(26, 60, 102, 0.3);
}

.enlaces-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.enlaces-description {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.enlaces-detail {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
}

.enlaces-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.enlaces-link::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: left 0.5s ease;
}

.enlaces-link:hover::before {
    left: 100%;
}

.enlaces-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 60, 102, 0.3);
    color: white !important;
}

.enlaces-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.enlaces-link:hover i {
    transform: translateX(3px);
}

.enlaces-info {
    background: rgba(26, 60, 102, 0.05);
    border: 1px solid rgba(26, 60, 102, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.enlaces-info i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.enlaces-info p {
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .enlaces-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .enlaces-icon {
        width: 60px;
        height: 60px;
    }
    
    .enlaces-icon i {
        font-size: 1.5rem;
    }
    
    .enlaces-title {
        font-size: 1.2rem;
    }
    
    .enlaces-info {
        padding: 1.5rem;
    }
}

/* Animation for cards on scroll */
.enlaces-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.enlaces-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}


/* Clickable Service Card Styles */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clickable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 174, 239, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.clickable-card:hover::before {
    left: 100%;
}

.clickable-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 174, 239, 0.3);
}

.clickable-card:hover .servicio-cta {
    opacity: 1;
    transform: translateY(0);
}

.servicio-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border-radius: 25px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.cta-text {
    font-size: 0.9rem;
}

.servicio-cta i {
    transition: transform 0.3s ease;
}

.clickable-card:hover .servicio-cta i {
    transform: translateX(5px);
}



