/* Variables y Reset */
:root {
    --bg-color: #0a0a0a;
    --surface-color: #1a1a1a;
    --primary-color: #3b82f6;
    /* Azul Brillante */
    --secondary-color: #8b5cf6;
    /* Morado */
    --accent-color: #06b6d4;
    /* Cian */
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #333;

    --font-main: 'Outfit', sans-serif;

    --container-width: 1200px;
    --header-height: 100px;
    /* Altura del header aumentada */

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
}

body.modal-open {
    overflow-x: hidden !important;
}

html.modal-open {
    overflow-x: hidden !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilidades */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 100px 0;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    padding: 10px 20px;
    border-radius: 50px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-outline {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    padding: 10px 20px;
    border-radius: 50px;
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    /* Full width to push logo left */
    padding: 0 50px;
    /* Side padding */
}

.logo img {
    height: 200px;
    /* Increased logo size as requested */
    width: auto;
    transition: var(--transition);
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:not(.btn-primary):hover {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    /* Dark overlay for readability */
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.6), var(--bg-color));
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column */
    gap: 50px;
    align-items: center;
    text-align: center;
    /* Center text */
    max-width: 900px;
}

.hero-content {
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    color: #e5e7eb;
    /* Lighter text for contrast */
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Services Section */
.services {
    background-color: var(--surface-color);
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '👆 Click para ver más';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.service-card:hover::after {
    bottom: 20px;
    opacity: 1;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}


/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.features-list i {
    color: var(--accent-color);
}

.video-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.contact {
    background-color: var(--surface-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--bg-color);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-muted);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.logo-footer {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.footer-col p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--surface-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 992px) {

    .hero-container,
    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--surface-color);
        padding: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .mobile-toggle {
        display: block;
        color: var(--text-color);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 30px;
    }
}

/* Service Modal & Animations */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.service-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: var(--surface-color);
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(-100vh);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-modal.active .modal-content {
    transform: translateY(0);
}

.footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.logo-footer {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.footer-col p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--surface-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 992px) {

    .hero-container,
    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--surface-color);
        padding: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .mobile-toggle {
        display: block;
        color: var(--text-color);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 30px;
    }
}

/* Service Modal & Animations */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
}

.service-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: var(--surface-color);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(-100vh);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
}

.modal-image {
    width: 100%;
    height: 250px;
    /* Fixed height for container */
    background: #000;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 20px;
}

/* Specific class for the video as requested */
.modal-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.modal-text p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Modal Buttons Container */
.modal-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-buttons .btn {
    flex: 1;
    min-width: 180px;
    text-align: center;
}

/* Modal Details Section */
.modal-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        margin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid transparent;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.modal-details.expanded {
    max-height: 2000px;
    margin-top: 30px;
    padding-top: 30px;
    border-top-color: var(--border-color);
    overflow-x: hidden;
}

.details-content {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.details-content h4 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
    word-wrap: break-word;
}

.details-content h5 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-color);
    word-wrap: break-word;
}

.details-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.details-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
    width: 100%;
}

.details-content ul li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.details-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.details-content ul li strong {
    color: var(--text-color);
    word-wrap: break-word;
}


/* Explosion Animation Classes */
.services-grid {
    transition: all 0.5s ease;
}

.service-card {
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.5s ease;
}

/* Fly Out Animations */
.service-card.fly-out-left {
    transform: translate(-100vw, -50vh) rotate(-45deg) scale(0.5);
    opacity: 0;
}

.service-card.fly-out-right {
    transform: translate(100vw, -50vh) rotate(45deg) scale(0.5);
    opacity: 0;
}

.service-card.fly-out-bottom {
    transform: translate(0, 100vh) rotate(180deg) scale(0.5);
    opacity: 0;
}

/* Mobile Styles for Service Modal */
@media (max-width: 768px) {

    /* Modal Container */
    .service-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 50px;
    }

    /* Modal Content - Ultra strict width control */
    .modal-content {
        width: 95vw !important;
        max-width: 95vw !important;
        min-width: 280px !important;
        max-height: 85vh;
        padding: 12px 10px;
        overflow-x: hidden !important;
        overflow-y: auto;
        box-sizing: border-box !important;
        touch-action: pan-y !important;
        overscroll-behavior-x: none;
    }

    /* Modal Body Layout - Change to Flexbox */
    .modal-body {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden !important;
        touch-action: pan-y !important;
    }

    /* Modal Text Container */
    .modal-text {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Modal Image/Video */
    .modal-image {
        height: 160px;
        position: relative !important;
        top: auto !important;
        width: 100%;
        margin-bottom: 8px;
        flex-shrink: 0;
    }

    .modal-video-element {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Modal Text Styles */
    .modal-text h3 {
        font-size: 1.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .modal-text p {
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    /* Modal Buttons */
    .modal-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-top: 12px;
    }

    .modal-buttons .btn {
        width: 100%;
        min-width: auto;
        padding: 10px 12px;
        font-size: 0.85rem;
        box-sizing: border-box;
    }

    /* Modal Details Section */
    .modal-details {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        touch-action: pan-y !important;
        overscroll-behavior-x: none;
    }

    .modal-details.expanded {
        margin-top: 15px;
        padding-top: 15px;
    }

    /* Details Content */
    .details-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .details-content * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .details-content h4 {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .details-content h5 {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        margin-top: 15px;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .details-content p {
        font-size: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .details-content ul {
        width: 100%;
        padding-left: 0;
        margin-bottom: 12px;
        box-sizing: border-box;
    }

    .details-content ul li {
        font-size: 0.8rem;
        padding-left: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    .details-content ul li::before {
        font-size: 0.75rem;
    }

    .details-content ul li strong {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        display: inline;
    }

    /* Close Button */
    .close-modal {
        top: 8px;
        right: 8px;
        font-size: 1.1rem;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        color: white;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    border-top: 2px solid var(--primary-color);
    padding: 25px 20px;
    z-index: 10000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.cookie-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: var(--accent-color);
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-outline-white {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 10px 20px;
    border-radius: 50px;
}

.btn-outline-white:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Legal Pages */
.legal-page {
    min-height: 100vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--surface-color);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.legal-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content ul li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-buttons .btn {
        width: 100%;
    }

    .legal-content {
        padding: 30px 20px;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.3rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

/* Success Cases Section */
.success-cases {
    background-color: var(--bg-color);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.case-card {
    background-color: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.case-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
}

.case-category {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.case-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.case-stats {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat strong {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Testimonials */
.testimonials-section {
    margin-top: 60px;
}

.testimonials-section h3 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--text-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--surface-color);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.testimonial-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    color: #fbbf24;
    font-size: 1.1rem;
}

.testimonial-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-author strong {
    color: var(--text-color);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .case-stats {
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Consent Checkbox Styles */
.consent-group {
    margin-top: 10px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.consent-label span {
    flex: 1;
    line-height: 1.5;
}

.consent-link {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.consent-link:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Consent Modal Styles */
.consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.consent-modal.active {
    opacity: 1;
    pointer-events: all;
}

.consent-modal-content {
    background-color: var(--surface-color);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.consent-modal.active .consent-modal-content {
    transform: scale(1);
}

.close-consent-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-consent-modal:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.consent-modal h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.consent-modal h3 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.consent-modal-body {
    color: var(--text-muted);
    line-height: 1.7;
}

.consent-modal-body p {
    margin-bottom: 15px;
}

.consent-modal-body ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.consent-modal-body ul li {
    margin-bottom: 10px;
}

.consent-modal-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.consent-modal-body a:hover {
    color: var(--accent-color);
}

.consent-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

@media (max-width: 768px) {
    .consent-modal-content {
        width: 95%;
        padding: 30px 20px;
        max-height: 90vh;
    }

    .consent-modal h2 {
        font-size: 1.5rem;
        padding-right: 30px;
    }

    .consent-modal-actions {
        flex-direction: column;
    }

    .consent-modal-actions .btn {
        width: 100%;
    }
}