:root {
    --primary: #0f172a;
    --secondary: #1d4ed8;
    --accent: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --danger: #ef4444;
}

.required-asterisk {
    color: var(--danger);
    font-weight: bold;
    margin-left: 2px;
}

/* SVG Icon System (auto-hospedado, sin CDN externo) */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    flex-shrink: 0;
}

.icon-bars {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-accent {
    color: var(--accent);
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.25rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Focus States for Accessibility */
:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}


h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.logo span {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover:not(.btn-primary) {
    color: var(--secondary);
}

.lang-switch {
    display: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white) !important;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

/* Hero Section */
#hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(90deg, var(--secondary), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
}

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

.hero-image .glass-card {
    position: relative;
    padding: 1rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-image img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.floating-badge i {
    color: #10b981;
    font-size: 1.5rem;
}

/* Services */
#servicios {
    padding: 8rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.service-card {
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--secondary);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

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

/* Contact Section */
#contacto {
    padding: 8rem 0;
    background: var(--primary);
    color: var(--white);
}

#contacto h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-list {
    list-style: none;
    margin-top: 2rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-list i {
    color: var(--accent);
}

.modern-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    background: #020617;
    color: #94a3b8;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: #94a3b8;
    font-size: 1.25rem;
    transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 968px) {
    .hero-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
        align-items: center;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary);
        cursor: pointer;
        padding: 0.5rem;
        transition: var(--transition);
    }
    
    .menu-toggle:focus {
        outline: none;
    }
}

/* Legal Section */
.legal-section {
    padding: 10rem 0 6rem;
    min-height: 80vh;
}
.legal-section h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}
.legal-section h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.legal-section p {
    margin-bottom: 1rem;
    color: var(--text-light);
}
.legal-section ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-light);
}
.legal-section li {
    margin-bottom: 0.5rem;
}

/* Footer Legal Links */
.legal-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}
.legal-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}
.legal-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Legal Disclaimer for Forms */
.legal-disclaimer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
    border-left: 4px solid var(--secondary);
}

.legal-disclaimer a {
    color: var(--secondary);
    text-decoration: underline;
}

/* Legal Tables */
.legal-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.legal-table th {
    background-color: #f8fafc;
    color: var(--primary);
    font-weight: 600;
    padding: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.legal-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-light);
    vertical-align: top;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:nth-child(even) {
    background-color: #f1f5f9;
}

/* Privacy Badge */
.privacy-badge {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.privacy-badge i,
.privacy-badge .icon {
    color: #10b981; /* Success Green */
}

/* ============================================
   Privacy first layer (RGPD mini-info in form)
   ============================================ */
.privacy-first-layer {
    font-size: 0.85rem;
    color: #666;
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-left: 3px solid var(--secondary);
    border-radius: 4px;
}

.privacy-first-layer ul {
    padding-left: 20px;
    margin-top: 5px;
}

.privacy-first-layer p {
    margin-bottom: 0.5rem;
}

.privacy-first-layer a {
    color: var(--secondary);
}

/* ============================================
   Form disclaimer
   ============================================ */
.form-disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

/* ============================================
   Services Dark Section (alternativa con glass)
   ============================================ */
.services-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 8rem 0;
}

.services-dark .section-header h2 {
    color: #fff;
}

.services-dark .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.service-card-dark {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-dark:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.icon-box-dark {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.icon-box-dark .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.service-card-dark:nth-child(2) .icon-box-dark {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.service-card-dark:nth-child(3) .icon-box-dark {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.service-card-dark:nth-child(4) .icon-box-dark {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.service-card-dark h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

/* ============================================
   Contact list with SVG icons
   ============================================ */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-list .icon {
    color: var(--accent);
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* ============================================
   Mobile menu SVG icon sizing
   ============================================ */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    line-height: 0;
}

.menu-toggle:hover {
    color: var(--secondary);
}

@media (max-width: 968px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

