/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    overflow-x: hidden;
    background-color: #fefefe;
}

/* Paleta de Colores para Fibra Óptica */
:root {
    --primary-color: #1e40af;          /* Azul tecnológico */
    --primary-dark: #1e3a8a;           /* Azul oscuro */
    --secondary-color: #ff6b1a;        /* Naranja vibrante */
    --secondary-dark: #ea580c;         /* Naranja oscuro */
    --accent-color: #3b82f6;           /* Azul medio */
    --success-color: #10b981;          /* Verde éxito */
    --warning-color: #f59e0b;          /* Amarillo cálido */
    --text-primary: #2d3748;           /* Gris oscuro cálido */
    --text-secondary: #4a5568;         /* Gris medio cálido */
    --text-light: #718096;             /* Gris claro cálido */
    --bg-primary: #ffffff;             /* Blanco puro */
    --bg-secondary: #f8faff;           /* Azul muy claro */
    --bg-light: #edf2f7;               /* Gris claro */
    --border-color: #e2e8f0;           /* Gris borde suave */
    --shadow-light: rgba(30, 64, 175, 0.08);
    --shadow-medium: rgba(30, 64, 175, 0.12);
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b1a 0%, #ff8c42 100%);
    --gradient-hero: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #ff6b1a 100%);
}

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

/* Utility Classes */
.section {
    padding: 72px 0;
}

.section-alt {
    background-color: var(--bg-secondary);
}

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

.hidden {
    display: none !important;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 0;
    z-index: 10000;
    box-shadow: 0 -4px 15px var(--shadow-medium);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-text a {
    color: white;
    text-decoration: underline;
    opacity: 0.9;
}

.cookie-text a:hover {
    opacity: 1;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.cookie-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cookie-buttons .btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.cookie-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
}

.logo {
    height: 50px;
    width: auto;
}

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

.brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

.nav-link.phone {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link.phone:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.nav-link.phone::after {
    display: none;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}



/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background-color: var(--bg-light);
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 25px var(--shadow-light);
        gap: 8px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: var(--bg-light);
    }
    
    .nav-link::after {
        display: none;
    }
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 130px 0 90px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 22px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

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

.hero-visual {
    width: 360px;
    height: 270px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-visual::before {
    content: '⚡';
    font-size: 4rem;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        max-width: none;
    }
    
    .hero-visual {
        width: 300px;
        height: 200px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 120px 0 80px 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 54px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 26px;
    margin-bottom: 36px;
}

.service-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow-medium);
    border-color: var(--primary-color);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px auto;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(30, 64, 175, 0.2);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    position: relative;
    padding: 8px 0 8px 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Applications Section */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.application-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.application-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.application-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.application-card:hover::after {
    transform: scaleX(1);
}

.application-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px auto;
    background: var(--gradient-secondary);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 26, 0.2);
}

.application-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.application-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.application-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
    border-color: var(--primary-color);
}

.advantage-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.2);
}

.advantage-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.advantage-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.advantage-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

/* Crossover Section */
.crossover {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.crossover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0 11.046-8.954 20-20 20v-40c11.046 0 20 8.954 20 20z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 1;
}

.crossover-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.crossover h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.crossover p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border: 2px solid white;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.contact {
    margin-top: 120px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
    border-color: var(--primary-color);
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.2);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: var(--bg-primary);
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 16px;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    padding: 0 4px;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 12px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

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

.recaptcha-container {
    margin: 24px 0;
    display: flex;
    justify-content: center;
}

.contact-form button {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-loading {
    display: none;
}

.contact-form button.loading .btn-text {
    display: none;
}

.contact-form button.loading .btn-loading {
    display: inline;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 24px;
    }
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px 0;
}

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

.footer-brand .footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: #cbd5e0;
    line-height: 1.6;
}

.footer h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    position: relative;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-secondary);
    border-radius: 1px;
}

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

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: white;
}

.footer-contact p {
    color: #cbd5e0;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

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

.footer-bottom p {
    color: #cbd5e0;
    font-size: 0.9rem;
    margin: 0;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 968px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .applications-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .advantage-item {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-grid,
    .applications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .application-card {
        padding: 24px 20px;
    }
    
    .crossover h2 {
        font-size: 1.8rem;
    }
    
    .crossover p {
        font-size: 1rem;
    }
}

/* Fix reCAPTCHA container styling */
.recaptcha-container {
    margin: 1.5rem 0;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Privacy Policy Checkbox */
.privacy-checkbox {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.privacy-checkbox:hover {
    background-color: #f1f5f9;
    border-color: var(--primary-color);
}

.privacy-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

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

.privacy-checkbox .checkbox-text {
    flex: 1;
}

.privacy-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.privacy-checkbox a:hover {
    border-bottom-color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .privacy-checkbox {
        margin: 1rem 0;
        padding: 0.75rem;
    }
    
    .privacy-checkbox label {
        font-size: 0.85rem;
        gap: 10px;
    }
    
    .privacy-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}

/* Form Submit Button Override */
form .btn-primary {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3) !important;
    border: none;
    font-weight: 600;
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 280px;
}

form .btn-primary:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4) !important;
}

form .btn-primary:active {
    transform: translateY(0);
}

form .btn-primary .btn-loading {
    display: none;
}

form .btn-primary.loading .btn-text {
    display: none;
}

form .btn-primary.loading .btn-loading {
    display: inline;
}

/* Contact section spacing */
#contacto {
    padding-bottom: 4rem;
}

/* Additional spacing for form container */
.contact-form {
    margin-bottom: 3rem;
}

/* Fix for h1 inside semantic elements - MDN compliance */
h1 {
    font-size: 2.5rem;
}

section h1, article h1, aside h1, nav h1 {
    font-size: 2rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    section h1, article h1, aside h1, nav h1 {
        font-size: 1.75rem;
    }
}