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

/* Reset específico para evitar desplazamientos horizontales */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

:root {
    color-scheme: light;
    --primary-color: #10b981;
    --primary-dark: #059669;
    --secondary-color: #34d399;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --gradient-1: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-2: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --gradient-3: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    color-scheme: light;
    background-color: var(--bg-white);
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 20px;
}

.nav-brand a {
    text-decoration: none;
    display: inline-block;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu > li > a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-menu > li > a:hover {
    color: var(--text-dark);
}

.nav-menu > li > a::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-dropdown-toggle::after {
    content: '';
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
    margin-bottom: 2px;
}

.nav-dropdown:hover .nav-dropdown-toggle {
    color: var(--text-dark);
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(225deg);
    margin-bottom: 0;
    margin-top: 2px;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    background: var(--bg-white);
    min-width: 240px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--text-dark);
    border-left-color: var(--primary-color);
    padding-left: 1.75rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60x;
    overflow: hidden;
    z-index: 0;
    background-color: var(--bg-white);
    width: 100%;
    box-sizing: border-box;
}

.hero .container {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    left: 0 !important;
    right: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#inicio .container,
section#inicio .container {
    margin-left: auto !important;
    margin-right: auto !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
    transform: none !important;
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1200px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Asegurar que la sección hero no tenga desplazamiento */
.hero {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

section#inicio {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-white);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0.05;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 2;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Secciones */
section {
    padding: 5rem 0;
    scroll-margin-top: 80px;
    position: relative;
    z-index: 1;
    background-color: var(--bg-white);
    width: 100%;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Servicios */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

a.service-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

a.service-card:hover {
    color: inherit;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Sobre Nosotros */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.about-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.isotipo-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    transform-origin: center center;
    will-change: transform;
}

/* Tecnologías */
.technologies {
    background: var(--bg-light);
}

.tech-grid {
    display: grid;
    gap: 1.5rem;
    justify-items: stretch;
    align-content: start;
}

.tech-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 0;
}

.tech-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tech-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tech-item:hover .tech-logo {
    transform: scale(1.1);
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tech-item.tech-logo-only .tech-logo {
    width: 72px;
    height: 72px;
}

.tech-item.tech-logo-only {
    min-width: 130px;
}

/* Contacto */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.form-checkbox span {
    flex: 1;
}

.form-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-checkbox a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Servicios Detalle */
.services-detail {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 2px solid var(--border-color);
}

.services-detail h3 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.benefit-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.benefit-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Proceso de Trabajo */
.process {
    background: var(--bg-light);
}

.process-steps {
    display: grid;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 2.5rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.process-step h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    padding-top: 1rem;
}

.process-step p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.process-step ul {
    list-style: none;
    padding-left: 0;
}

.process-step ul li {
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.process-step ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Valores */
.values-list {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.value-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-light);
    line-height: 1.7;
}

.value-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Proyectos */
.projects {
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    padding: 0.375rem 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 500;
}

.project-results {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.result-item {
    flex: 1;
}

.result-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

/* Testimonios */
.testimonials {
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.testimonial-author strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Tecnologías por Categorías */
.tech-categories {
    display: grid;
    gap: 3rem;
}

.tech-category {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.tech-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

/* FAQ */
.faq {
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    width: 30px;
    text-align: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.875rem;
    }

    .footer-bottom p {
        margin: 0.5rem 0;
    }

    .footer-bottom a {
        display: inline-block;
        margin: 0.25rem 0.5rem 0.25rem 0;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-links-group h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }

    .footer-contact h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-contact-item {
        font-size: 0.875rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.8125rem;
    }

    .footer-bottom {
        padding-top: 1rem;
    }

    .footer-bottom p:first-child {
        font-size: 0.75rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .footer-bottom-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin-top: 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .footer-bottom a {
        display: block !important;
        margin: 0 !important;
        font-size: 0.7rem !important;
        padding: 0.5rem 0 !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Banner de Cookies - Estilos Responsive Globales */
@media screen and (max-width: 768px) {
    div#cookie-banner {
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    div#cookie-banner-content {
        padding: 20px 16px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    div#cookie-banner-simple {
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
        align-items: stretch !important;
        display: flex !important;
    }

    div#cookie-banner-text {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        text-align: center !important;
        flex: none !important;
        box-sizing: border-box !important;
    }

    div#cookie-banner-text h3 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }

    div#cookie-banner-text p {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    div#cookie-banner-buttons {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
        display: flex !important;
        box-sizing: border-box !important;
    }

    button#accept-cookies,
    button#reject-cookies,
    button#customize-cookies {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
        flex: none !important;
        min-width: auto !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }

    div.cookie-category {
        padding: 12px !important;
        margin-bottom: 16px !important;
        box-sizing: border-box !important;
    }

    div.cookie-category-header {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    span.cookie-category-title {
        font-size: 14px !important;
    }

    button#save-cookie-preferences {
        padding: 14px 20px !important;
        font-size: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    button#back-to-simple {
        width: 100% !important;
        padding: 12px 20px !important;
        box-sizing: border-box !important;
    }
}

@media screen and (max-width: 480px) {
    div#cookie-banner-content {
        padding: 16px 12px !important;
        box-sizing: border-box !important;
    }

    div#cookie-banner-text h3 {
        font-size: 15px !important;
    }

    div#cookie-banner-text p {
        font-size: 12px !important;
    }

    button#accept-cookies,
    button#reject-cookies,
    button#customize-cookies,
    button#save-cookie-preferences {
        padding: 12px 16px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }

    div.cookie-category {
        padding: 10px !important;
        box-sizing: border-box !important;
    }

    span.cookie-category-title {
        font-size: 13px !important;
    }

    div.cookie-list {
        font-size: 12px !important;
    }

    div.cookie-name {
        font-size: 12px !important;
    }

    div.cookie-desc {
        font-size: 11px !important;
    }
}

.footer-brand a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-brand a:hover {
    opacity: 0.8;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-contact-item strong {
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-bottom: 0.25rem;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
}

.footer-links-group h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: white;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin: 0;
    line-height: 1.6;
}

.footer-bottom-links {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-bottom a:hover {
    color: white !important;
}

#footer-cookie-settings {
    cursor: pointer !important;
}

/* Botón Flotante CTA */
.floating-cta-group {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
}

.floating-cta-group .floating-cta {
    position: static;
}

.floating-whatsapp {
    width: 54px;
    height: 54px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(37, 211, 102, 0.45);
}

.floating-whatsapp img {
    width: 34px;
    height: 34px;
    display: block;
    filter: none;
}

.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-1);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
    opacity: 1;
    pointer-events: auto;
}

.floating-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5);
    color: white;
}

.floating-cta svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.floating-cta span {
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-cta-group {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 1rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-toggle::after {
        width: 5px;
        height: 5px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        border-top: none;
        border-left: none;
        transform: rotate(45deg);
        margin-bottom: 2px;
    }

    .nav-dropdown.active .nav-dropdown-toggle::after {
        transform: rotate(225deg);
        margin-bottom: 0;
        margin-top: 2px;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
        margin-left: 1rem;
        padding: 0.5rem 0;
        background: var(--bg-light);
        border-radius: 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 500px;
    }

    .nav-dropdown-menu a {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        border-left: none;
    }

    .nav-dropdown-menu a:hover {
        padding-left: 1.25rem;
        border-left: none;
        background: rgba(0, 0, 0, 0.03);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

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

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

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

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

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

}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .tech-logo {
        width: 40px;
        height: 40px;
    }

    .tech-item.tech-logo-only .tech-logo {
        width: 60px;
        height: 60px;
    }

    .tech-item {
        padding: 1.25rem;
        gap: 0.5rem;
    }

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

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

    .process-step {
        padding: 2rem 1.5rem;
    }

    .process-step h3 {
        font-size: 1.5rem;
    }

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

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

    .project-results {
        flex-direction: column;
        gap: 1rem;
    }

    .tech-category {
        padding: 1.5rem;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }

    .floating-cta svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .floating-cta-group {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }

    .floating-whatsapp {
        width: 48px;
        height: 48px;
    }

    .floating-whatsapp img {
        width: 30px;
        height: 30px;
    }

    .floating-cta {
        bottom: 15px;
        right: 15px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }

    .floating-cta span {
        display: none;
    }
}

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

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

.service-card,
.tech-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments for varied hero sections */
@media (max-width: 768px) {
    /* Convert 2-column hero layouts to single column */
    .hero [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Adjust hero content alignment on mobile */
    .hero h1[style*="text-align: left"] {
        text-align: center !important;
    }

    .hero p[style*="text-align: left"] {
        text-align: center !important;
    }

    .hero .hero-buttons[style*="justify-content: flex-start"] {
        justify-content: center !important;
    }

    /* Stack stat grids */
    .hero [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .hero [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    /* Further reduce gaps on small screens */
    .hero [style*="gap: 4rem"] {
        gap: 2rem !important;
    }

    .hero [style*="gap: 3rem"] {
        gap: 1.5rem !important;
    }

    /* Single column for all grids on very small screens */
    .hero [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    .hero [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
    }
}

/* Estilos Responsive Globales para Móviles */
@media (max-width: 768px) {
    /* Container padding reducido */
    .container {
        padding: 0 16px;
    }

    /* Imágenes responsive */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Tablas responsive - hacer scroll horizontal */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    table thead,
    table tbody,
    table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    /* Formularios responsive */
    form {
        width: 100%;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    textarea,
    select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Grids genéricos - apilar en móvil */
    [class*="grid"]:not(.tech-grid):not(.footer-links) {
        grid-template-columns: 1fr !important;
    }

    /* Cards responsive */
    [class*="card"],
    [class*="Card"] {
        width: 100%;
        max-width: 100%;
    }

    /* Secciones con padding reducido */
    section {
        padding-left: 0;
        padding-right: 0;
    }

    /* Títulos más pequeños */
    h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem) !important;
    }

    h3 {
        font-size: clamp(1.25rem, 3vw, 1.5rem) !important;
    }

    /* Botones full width en móvil cuando sea apropiado */
    .btn-group,
    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn,
    .button-group .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    /* Container padding aún más reducido */
    .container {
        padding: 0 12px;
    }

    /* Espaciado reducido en secciones */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Padding reducido en cards */
    [class*="card"],
    [class*="Card"] {
        padding: 1rem !important;
    }

    /* Texto más pequeño pero legible */
    body {
        font-size: 15px;
    }

    p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    /* Listas con menos padding */
    ul, ol {
        padding-left: 1.25rem;
    }

    /* Tablas más compactas */
    table {
        font-size: 0.875rem;
    }

    table th,
    table td {
        padding: 0.5rem !important;
    }

    /* Formularios más compactos */
    .form-group {
        margin-bottom: 1rem;
    }

    label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    /* Breadcrumbs responsive */
    .breadcrumbs {
        font-size: 0.8125rem;
        padding: 0.75rem 0;
    }

    .breadcrumbs ol {
        flex-wrap: wrap;
    }
}

/* Estilos adicionales para elementos específicos en móviles */
@media (max-width: 768px) {
    /* Asegurar que todos los elementos con width fijo sean responsive */
    [style*="width:"]:not([style*="width: 100%"]):not([style*="width: auto"]) {
        max-width: 100% !important;
    }

    /* Prevenir overflow horizontal */
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Asegurar que los elementos flex no se desborden */
    [style*="display: flex"] {
        flex-wrap: wrap;
    }

    /* Mejorar legibilidad de texto en móviles */
    p, li, span {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Asegurar que los videos e iframes sean responsive */
    iframe, video, embed, object {
        max-width: 100%;
        height: auto;
    }

    /* Mejorar espaciado en listas */
    ul, ol {
        padding-left: 1.5rem;
    }

    /* Asegurar que los badges y etiquetas no se desborden */
    [class*="badge"],
    [class*="tag"],
    [class*="label"] {
        display: inline-block;
        max-width: 100%;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    /* Asegurar que los elementos con max-width sean responsive */
    [style*="max-width"] {
        max-width: 100% !important;
    }

    /* Mejorar espaciado en elementos inline */
    .inline-flex,
    [style*="display: inline-flex"] {
        flex-wrap: wrap;
    }

    /* Asegurar que los elementos con position fixed no se salgan */
    [style*="position: fixed"] {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
}


/* Páginas Legales */
.legal-page {
    padding: 8rem 0 4rem;
    min-height: 80vh;
    background: var(--bg-light);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.legal-content h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-content h2 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 6rem 0 2rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
        border-radius: 8px;
    }

    .legal-content h1 {
        font-size: 1.75rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   MODAL DE RESERVA - FUTURISTA Y PREMIUM
   ============================================ */

/* Overlay del modal */
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.booking-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contenedor del modal */
.booking-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                0 0 100px rgba(168, 85, 247, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Quitar scroll cuando el estado de éxito o conflicto está activo */
.booking-modal:has(#bookingStateSuccess.active),
.booking-modal:has(#bookingStateConflict.active) {
    overflow: hidden;
}

.booking-modal-overlay.active .booking-modal {
    transform: scale(1) translateY(0);
}

/* Efecto de brillo animado - gradiente pulsante */
.booking-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(168, 85, 247, 0.08) 0%,
        rgba(168, 85, 247, 0.04) 40%,
        transparent 70%
    );
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    border-radius: 24px;
    opacity: 0.6;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Contenido del modal */
.booking-modal-content {
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Botón de cierre */
.booking-close-btn {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: none !important;
    border: none !important;
    font-size: 2rem !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    z-index: 10002 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    pointer-events: auto !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.booking-close-btn:hover {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
}

/* Header del modal */
.booking-modal-header {
    margin-bottom: 2rem;
}

.booking-modal-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-modal-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Card de resumen */
.booking-summary-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(147, 51, 234, 0.03) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.booking-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.booking-summary-item:last-child {
    border-bottom: none;
}

.booking-summary-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.booking-summary-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* Contador de tiempo */
.booking-timer-container {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(147, 51, 234, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.booking-timer-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.booking-timer-display {
    font-size: 2.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
    letter-spacing: 0.05em;
}

.booking-timer-warning {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Formulario */
.booking-form {
    margin-bottom: 2rem;
}

.booking-form-group {
    margin-bottom: 1.5rem;
}

.booking-form-label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.booking-form-label .optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.85rem;
}

.booking-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-dark);
}

.booking-form-input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.booking-form-textarea {
    min-height: 80px;
    resize: vertical;
}

.booking-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.booking-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #a855f7;
}

.booking-checkbox-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.booking-checkbox-label a {
    color: #a855f7;
    text-decoration: none;
    font-weight: 500;
}

.booking-checkbox-label a:hover {
    text-decoration: underline;
}

/* Botones */
.booking-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.booking-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.booking-btn-primary {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}

.booking-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

.booking-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.booking-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.booking-btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.booking-btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.booking-microcopy {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
}

/* Estados del modal */
.booking-state {
    display: none;
    animation: fadeIn 0.4s ease;
}

.booking-state.active {
    display: block;
}

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

/* Estado: Cargando */
.booking-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.booking-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(168, 85, 247, 0.1);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.booking-loading-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.booking-loading-subtext {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Estado: Error/Conflicto */
.booking-error-state,
.booking-timeout-state {
    text-align: center;
    padding: 2rem;
}

.booking-error-icon,
.booking-timeout-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(185, 28, 28, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.booking-error-title,
.booking-timeout-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.booking-error-text,
.booking-timeout-text {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Estado: Confirmado */
.booking-success-state {
    text-align: center;
    padding: 2rem;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.booking-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.booking-success-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.booking-success-text {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.booking-calendar-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.booking-calendar-link {
    padding: 0.625rem 1.25rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.booking-calendar-link:hover {
    background: var(--bg-light);
    border-color: #a855f7;
    color: #a855f7;
}

/* Responsive */
@media (max-width: 640px) {
    .booking-modal {
        border-radius: 16px;
        max-height: 95vh;
    }

    .booking-modal-content {
        padding: 1.5rem;
    }

    .booking-modal-title {
        font-size: 1.5rem;
    }

    .booking-timer-display {
        font-size: 2rem;
    }

    .booking-actions {
        flex-direction: column;
    }

    .booking-btn {
        width: 100%;
    }
}