/* Variables CSS */
:root {
    --brand-50: #e7f7f6;
    --brand-100: #c3ece9;
    --brand-200: #9be0db;
    --brand-300: #6fd4cc;
    --brand-400: #41beb5;
    --brand-500: #13a89e;
    --brand-600: #10938b;
    --brand-700: #0c7d76;
    --brand-800: #095a54;
    --brand-900: #06332e;
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--slate-50);
    color: var(--slate-900);
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--brand-900);
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: var(--white);
    font-size: 24px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--brand-900);
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Makes the logo white to match the navbar if needed, or remove if the logo is already colored correctly */
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--brand-400);
}

.btn-white {
    background: var(--white);
    color: var(--brand-900) !important;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--brand-900);
    padding-top: 120px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: var(--brand-500);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--brand-300);
    filter: blur(120px);
    opacity: 0.1;
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 25px;
}

.text-accent {
    color: var(--brand-400);
}

.text-underline {
    position: relative;
}

.text-underline::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 60%;
    height: 6px;
    background: var(--brand-400);
    opacity: 0.3;
    border-radius: 3px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
    margin-bottom: 40px;
    font-weight: 500;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn {
    padding: 18px 35px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-primary {
    background: var(--brand-500);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--brand-400);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(19, 168, 158, 0.3);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Checklist */
.hero-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
}

.check-item i {
    color: var(--brand-400);
    font-size: 18px;
}

/* Hero Right / Image Refinement */
.hero-image-wrapper {
    position: relative;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.3);
}

.hero-main-img {
    width: 100%;
    height: 650px;
    /* Taller as requested */
    object-fit: cover;
    border-radius: 40px;
    display: block;
    position: relative;
    z-index: 2;
}

.hero-badge {
    position: absolute;
    z-index: 10;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.badge-global {
    background: var(--brand-500);
    color: var(--white);
    top: 60px;
    right: -40px;
    /* Offset to look "outside" */
    padding: 20px 35px;
    transform: rotate(6deg);
    /* "Premios" rotation */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.badge-global:hover {
    transform: rotate(0deg) scale(1.1);
}

.badge-global h4 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 5px;
}

.badge-global p {
    font-size: 11px;
    font-weight: 800;
    opacity: 0.9;
    letter-spacing: 1px;
}

.badge-stats {
    bottom: -20px;
    /* Overflows the bottom border */
    left: -30px;
    text-align: center;
    width: 280px;
    /* Wider to keep text in one line */
    padding: 25px 30px;
    animation: badge-bounce 4s infinite ease-in-out;
    /* Smoother, slower bounce */
}

@keyframes badge-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.stat-number {
    display: block;
    font-size: 45px;
    font-weight: 950;
    color: var(--brand-500);
    line-height: 1;
    margin-bottom: 2px;
}

.badge-stats p {
    font-size: 11px;
    font-weight: 800;
    color: var(--slate-400);
    letter-spacing: 1px;
}

.hero-badge:hover {
    transform: translateY(-10px);
}

.services-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.services-iframe {
    width: 100%;
    height: 100%;
    min-height: 800px;
    border: none;
    border-radius: 20px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--brand-500);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--brand-400);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(19, 168, 158, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--brand-900);
}

.btn-dark {
    background: var(--brand-900);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--brand-500);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 51, 46, 0.3);
}

.btn-whatsapp {
    background: var(--brand-500);
    color: var(--white);
}

.btn-whatsapp:hover {
    background: var(--brand-400);
    transform: scale(1.05);
}

.btn-email {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-email:hover {
    background: var(--white);
    color: var(--brand-900);
}

/* Sections */
.nosotros-section {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.nosotros-images {
    position: relative;
}

.images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.images-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--brand-50);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
}

.image-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-column:first-child {
    margin-top: 50px;
}

.image-column img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.info-card {
    padding: 30px;
    border-radius: 30px;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.info-card-1 {
    background: var(--brand-500);
}

.info-card-2 {
    background: var(--brand-900);
}

.info-card h5 {
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.section-label {
    color: var(--brand-500);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nosotros-text h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1.2;
    margin: 20px 0 30px;
}

.section-description {
    font-size: 20px;
    color: var(--slate-500);
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 40px;
}

.features-list {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--slate-50);
    border-color: var(--slate-100);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--brand-50);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 24px;
    color: var(--brand-500);
}

.feature-content h4 {
    font-weight: 900;
    font-size: 18px;
    color: var(--slate-900);
    margin-bottom: 5px;
}

.feature-content p {
    font-size: 14px;
    color: var(--slate-500);
    font-weight: 500;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--brand-900);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(19, 168, 158, 0.2);
    border-radius: 50%;
    filter: blur(120px);
    transform: translate(50%, -50%);
}

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

.cta-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    border-color: rgba(19, 168, 158, 0.5);
    transform: translateY(-10px);
}

.benefit-icon {
    color: var(--brand-400);
    font-size: 3rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-card h3 {
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 15px;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Contacto Section */
.contacto-section {
    padding: 100px 0;
    background: var(--brand-900);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contacto-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-900), var(--brand-800), var(--brand-900));
}

.contacto-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: rgba(19, 168, 158, 0.1);
    border-radius: 50%;
    filter: blur(120px);
    transform: translate(-50%, -50%);
}

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

.contacto-content h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.contacto-subtitle {
    font-size: clamp(18px, 4vw, 24px);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    line-height: 1.7;
}

.services-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.service-highlight {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.service-highlight:hover {
    background: rgba(255, 255, 255, 0.1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--brand-500);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.service-icon i {
    font-size: 24px;
    color: var(--white);
}

.service-highlight h3 {
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 10px;
}

.service-highlight p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.contact-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--brand-900);
    color: var(--white);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background:
        radial-gradient(circle at top right, rgba(19, 168, 158, 0.2) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(111, 212, 204, 0.2) 0%, transparent 50%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    max-width: 400px;
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 18px;
    font-weight: 900;
    color: var(--brand-400);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 20px;
}

.footer-nav a {
    color: var(--slate-400);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--brand-400);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--slate-400);
    font-weight: 600;
}

.footer-contact i {
    color: var(--brand-400);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--brand-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 700;
}

.footer-legal {
    display: flex;
    gap: 40px;
}

.footer-legal button {
    background: none;
    border: none;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-legal button:hover {
    color: var(--brand-400);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 30px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 900;
    color: var(--slate-900);
}

.modal-close {
    width: 48px;
    height: 48px;
    background: var(--slate-100);
    border: none;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: var(--slate-200);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

.modal-body h4 {
    font-weight: 900;
    color: var(--slate-900);
    margin: 30px 0 15px;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--slate-700);
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 25px;
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-right {
        order: -1;
        height: 400px;
    }

    .nosotros-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 100px 0 50px;
    }

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

    .modal-content {
        margin: 10px;
    }
}

/* Metodologías Section */
.metodologias-section {
    padding: 80px 0;
    background: var(--slate-50);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--slate-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 20px;
    color: var(--slate-500);
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Filtros de categoría */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.category-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 20px;
    background: var(--white);
    border: 2px solid var(--slate-200);
    color: var(--slate-600);
    padding: 20px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 280px;
    min-height: 90px;
    line-height: 1.3;
}

.category-btn i {
    font-size: 34px;
    color: var(--brand-500);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-subtitle {
    display: block;
    font-size: 16px;
    color: var(--slate-500);
    font-weight: 600;
    margin-top: 5px;
    text-transform: none;
    letter-spacing: normal;
}

.category-btn.active i {
    color: var(--white);
}

.category-btn span {
    flex: 1;
}

.category-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(19, 168, 158, 0.1);
}

.category-btn.active {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(19, 168, 158, 0.2);
}

/* --- REFINAMIENTO DE TARJETAS DE METODOLOGÍA --- */

/* Cabecera de la tarjeta para alinear ícono y nombre */
.methodology-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

/* Hacer la tarjeta más pequeña */
.methodology-card {
    padding: 20px !important;
    border-radius: 20px !important;
}

/* Reducir tamaño del ícono */
.methodology-icon {
    width: 45px !important;
    height: 45px !important;
    font-size: 20px !important;
    border-radius: 12px !important;
    margin-bottom: 0 !important;
}

/* Ajustar el título */
.methodology-card h4 {
    font-size: 17px !important;
    margin-bottom: 0 !important;
    line-height: 1.2;
}

/* Ajustar descripción */
.methodology-card p {
    font-size: 13px !important;
    margin-bottom: 15px !important;
    line-height: 1.5;
}

/* --- REFINAMIENTO DE MODAL --- */

.modal-title-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-title-container i {
    font-size: 32px;
    color: var(--brand-500);
    background: var(--brand-50);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.modal-title-text {
    display: flex;
    flex-direction: column;
}

.modal-subtitle {
    display: block;
    font-size: 14px;
    color: var(--slate-500);
    font-weight: 600;
    margin-top: 2px;
    text-transform: none;
    letter-spacing: normal;
}

/* Panel principal */
.metodologias-panel {
    background: var(--white);
    border-radius: 40px;
    padding: 60px;
    border: 1px solid var(--slate-100);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.panel-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 50px;
    border-bottom: 2px solid var(--slate-200);
}

.panel-info h3 {
    font-size: 30px;
    font-weight: 900;
    color: var(--slate-900);
    margin-bottom: 15px;
}

.panel-info p {
    color: var(--slate-500);
    font-size: 18px;
    line-height: 1.7;
    max-width: 600px;
}

/* Búsqueda */
.search-container {
    width: 400px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 18px;
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    background: var(--white);
    border: 2px solid var(--slate-100);
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    color: var(--slate-700);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(19, 168, 158, 0.1);
}

.search-box input::placeholder {
    color: var(--slate-400);
}

/* Modal Detail Styles */
.modal-detail-wrapper {
    padding: 20px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.modal-detail-header {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.modal-detail-text {
    flex: 1;
}

.modal-detail-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--slate-600);
    font-weight: 500;
}

.modal-detail-image {
    width: 250px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.modal-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-detail-section {
    background: var(--brand-50);
    padding: 30px;
    border-radius: 25px;
    border: 1px solid var(--brand-100);
}

.modal-detail-section h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--brand-600);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-detail-section h4 i {
    font-size: 20px;
}

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

.modal-detail-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--slate-700);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
}

.modal-detail-section ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--brand-500);
    font-size: 14px;
}

.modal-detail-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
    color: white;
    background: #128C7E;
}

/* Adapting modal for detail content */
.modal-content {
    max-height: 85vh;
}

#modalContent {
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Responsive modal detail */
@media (max-width: 900px) {
    .modal-detail-header {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .modal-detail-image {
        width: 100%;
        height: 200px;
    }

    .modal-detail-grid {
        grid-template-columns: 1fr;
    }

    .modal-detail-wrapper {
        padding: 20px;
    }
}

/* Grid de metodologías */
.metodologias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    min-height: 400px;
}

.methodology-card {
    background: var(--white);
    padding: 35px;
    border-radius: 30px;
    border: 1px solid var(--slate-100);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.methodology-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--brand-50), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.methodology-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-200);
}

.methodology-card:hover::before {
    opacity: 1;
}

.methodology-card>* {
    position: relative;
    z-index: 2;
}

.methodology-icon {
    width: 70px;
    height: 70px;
    background: var(--brand-50);
    color: var(--brand-500);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.methodology-card:hover .methodology-icon {
    background: var(--brand-500);
    color: var(--white);
    transform: scale(1.1);
}

.methodology-card h4 {
    font-weight: 900;
    font-size: 22px;
    color: var(--slate-900);
    margin-bottom: 15px;
    line-height: 1.3;
}

.methodology-card p {
    color: var(--slate-500);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.methodology-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-500);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.methodology-card:hover .methodology-link {
    gap: 15px;
}

.methodology-link i {
    transition: transform 0.3s ease;
}

.methodology-card:hover .methodology-link i {
    transform: translateX(5px);
}

/* Utilidades */
.hidden {
    display: none !important;
}

/* Mensaje sin resultados */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    background: var(--brand-50);
    border-radius: 30px;
    border: 2px dashed var(--brand-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.no-results i {
    font-size: 50px;
    color: var(--brand-300);
}

.no-results p {
    color: var(--slate-500);
    font-size: 18px;
    font-weight: 600;
    max-width: 400px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .panel-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .search-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .metodologias-panel {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .category-filters {
        gap: 15px;
    }

    .category-btn {
        width: 100%;
        max-width: 320px;
        min-height: 80px;
        padding: 15px 20px;
        font-size: 13px;
    }

    .category-btn i {
        font-size: 24px;
    }

    .metodologias-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .methodology-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .metodologias-panel {
        padding: 30px 20px;
        border-radius: 25px;
    }

    .category-filters {
        gap: 10px;
    }

    .category-btn {
        width: 100%;
        max-width: none;
        padding: 15px;
        gap: 15px;
    }

    .panel-header {
        gap: 30px;
        margin-bottom: 40px;
    }
}