:root {
    --primary-color: #0f172a;
    /* Slate 900 */
    --secondary-color: #2563eb;
    /* Blue 600 */
    --accent-color: #10b981;
    /* Emerald 500 */
    --text-color: #334155;
    /* Slate 700 */
    --bg-color: #f8fafc;
    /* Slate 50 */
    --card-bg: #ffffff;
    --white: #ffffff;
    --border-color: #e2e8f0;
    /* Slate 200 */
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --transition-speed: 0.3s;
    --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --section-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

:root:has(#theme-toggle-checkbox:checked) {
    --primary-color: #f8fafc;
    /* Slate 50 */
    --secondary-color: #60a5fa;
    /* Blue 400 */
    --accent-color: #34d399;
    /* Emerald 400 */
    --text-color: #94a3b8;
    /* Slate 400 */
    --bg-color: #020617;
    /* Slate 950 */
    --card-bg: #0f172a;
    /* Slate 900 */
    --white: #f8fafc;
    --border-color: #1e293b;
    /* Slate 800 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --hero-gradient: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    --section-gradient: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

:root:has(#theme-toggle-checkbox:checked) header {
    background-color: #1e293b;
    /* Slate 800 explicitly for header */
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
}

:root:has(#theme-toggle-checkbox:checked) footer {
    background-color: #0f172a;
    /* Slate 900 for better distinction from main bg */
    color: #f8fafc;
    border-top: 1px solid var(--border-color);
}

:root:has(#theme-toggle-checkbox:checked) .logo {
    color: var(--white);
}

:root:has(#theme-toggle-checkbox:checked) .nav-links a {
    color: var(--white);
}

:root:has(#theme-toggle-checkbox:checked) .nav-links a:hover {
    color: var(--secondary-color);
}

/* Global Dark Mode Overrides for Sections and Cards */
:root:has(#theme-toggle-checkbox:checked) body,
:root:has(#theme-toggle-checkbox:checked) main,
:root:has(#theme-toggle-checkbox:checked) .process-section,
:root:has(#theme-toggle-checkbox:checked) .equipment-section,
:root:has(#theme-toggle-checkbox:checked) .pricing-section,
:root:has(#theme-toggle-checkbox:checked) .hardware-content,
:root:has(#theme-toggle-checkbox:checked) .services-section,
:root:has(#theme-toggle-checkbox:checked) .container.services-section {
    background-color: var(--bg-color);
    color: var(--text-color);
}

:root:has(#theme-toggle-checkbox:checked) .card,
:root:has(#theme-toggle-checkbox:checked) .feature-card,
:root:has(#theme-toggle-checkbox:checked) .process-step,
:root:has(#theme-toggle-checkbox:checked) .equipment-item,
:root:has(#theme-toggle-checkbox:checked) .pricing-item,
:root:has(#theme-toggle-checkbox:checked) .service-card,
:root:has(#theme-toggle-checkbox:checked) .legal-card,
:root:has(#theme-toggle-checkbox:checked) .contact-card,
:root:has(#theme-toggle-checkbox:checked) .form-container,
:root:has(#theme-toggle-checkbox:checked) .connect-box,
:root:has(#theme-toggle-checkbox:checked) .download-box,
:root:has(#theme-toggle-checkbox:checked) .instructions,
:root:has(#theme-toggle-checkbox:checked) .security-note,
:root:has(#theme-toggle-checkbox:checked) .modal-content {
    background-color: var(--card-bg) !important;
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}

:root:has(#theme-toggle-checkbox:checked) .security-note {
    border: 1px solid #f59e0b !important;
    border-left: 4px solid #f59e0b !important;
}

:root:has(#theme-toggle-checkbox:checked) .card h3,
:root:has(#theme-toggle-checkbox:checked) .feature-card h3,
:root:has(#theme-toggle-checkbox:checked) .process-step h4,
:root:has(#theme-toggle-checkbox:checked) .equipment-item span,
:root:has(#theme-toggle-checkbox:checked) .pricing-item span,
:root:has(#theme-toggle-checkbox:checked) .section-title,
:root:has(#theme-toggle-checkbox:checked) .connect-box h2,
:root:has(#theme-toggle-checkbox:checked) .instructions h2,
:root:has(#theme-toggle-checkbox:checked) .step h3,
:root:has(#theme-toggle-checkbox:checked) .security-note h4,
:root:has(#theme-toggle-checkbox:checked) .form-field label,
:root:has(#theme-toggle-checkbox:checked) h1,
:root:has(#theme-toggle-checkbox:checked) h2,
:root:has(#theme-toggle-checkbox:checked) h3,
:root:has(#theme-toggle-checkbox:checked) h4,
:root:has(#theme-toggle-checkbox:checked) label {
    color: var(--white) !important;
}

:root:has(#theme-toggle-checkbox:checked) .cta-section h2 {
    color: #f97316;
}

:root:has(#theme-toggle-checkbox:checked) .cta-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

:root:has(#theme-toggle-checkbox:checked) .cta-section p {
    color: var(--text-color);
}

:root:has(#theme-toggle-checkbox:checked) .cta-btn {
    background: var(--secondary-color);
    color: white;
}

:root:has(#theme-toggle-checkbox:checked) .connect-btn {
    background: var(--secondary-color);
    color: white;
}

:root:has(#theme-toggle-checkbox:checked) .security-note p,
:root:has(#theme-toggle-checkbox:checked) .form-note,
:root:has(#theme-toggle-checkbox:checked) .step p {
    color: var(--text-color) !important;
}

:root:has(#theme-toggle-checkbox:checked) input,
:root:has(#theme-toggle-checkbox:checked) textarea,
:root:has(#theme-toggle-checkbox:checked) .session-code-input {
    background-color: var(--bg-color) !important;
    color: var(--white) !important;
    border-color: var(--border-color) !important;
}

:root:has(#theme-toggle-checkbox:checked) .pricing-item .price {
    color: var(--secondary-color) !important;
}

:root:has(#theme-toggle-checkbox:checked) .process-step .number {
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

/* Base transitions for theme switching */
body {
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

header,
footer,
.card,
.service-card,
.legal-card,
.contact-card,
.form-container {
    transition: background-color var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

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

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

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

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

.nav-links>li {
    position: relative;
}

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

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

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

.nav-links .dropdown>a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-links .dropdown>a::after {
    content: '▼';
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.nav-links .dropdown:hover>a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 200;
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: var(--bg-color);
    border-radius: 0.25rem;
    color: var(--secondary-color);
}

.dropdown-menu .icon {
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Grid */
.services-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

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

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

/* Footer */
/* Footer Wave Animation */
footer {
    background-color: #0f172a;
    /* Fixed Slate 900 for consistency */
    color: var(--white);
    padding-top: 150px;
    /* More space for a bigger, smoother wave */
    margin-top: auto;
    position: relative;
    border-top: none;
}

/* 
   Logic: We create two pseudo-elements at the TOP of the footer.
   They have the background color of the BODY/PAGE (var(--bg-color)).
   We use a 'mask' to carve out the wave shape at the BOTTOM of these elements.
   Result: The Page Color extends down into the Footer in a wave shape.
*/

footer::before,
footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    /* Taller container */
    background-color: var(--bg-color);
    transition: background-color 0.3s;

    /* Wave 1 (Solid, Organic Base) */
    /* Start/End Y=160. Three peaks of varying width/height to avoid 'perfect circle' look */
    --wave-solid: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M0,160 C320,300 420,100 640,160 C880,240 1080,100 1440,160 V0 H0 Z'/%3E%3C/svg%3E");

    /* Wave 2 (Grey/Transparent, Highly Irregular/Discordant) */
    /* Much sharper changes and different rhythm */
    --wave-irregular: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M0,160 Q150,280 300,160 T600,160 T900,160 T1440,160 V0 H0 Z'/%3E%3C/svg%3E");
    /* Wait, complex T-curves might result in circles. Let's use Cubic Beziers for chaos. */
    /* New Irregular Path: M0,160 C250,350 350,50 600,160 C800,280 900,80 1440,160 V0 Z */
    --wave-irregular-final: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M0,160 C200,280 350,120 540,180 C750,250 900,50 1150,140 C1300,200 1380,120 1440,160 V0 H0 Z'/%3E%3C/svg%3E");

    z-index: 10;
}

/* Adjustments for animation */
footer::before {
    /* The "Grey" (Transparent) Wave - Irregular & Discordant */
    -webkit-mask: var(--wave-irregular-final);
    mask: var(--wave-irregular-final);

    top: 0;
    opacity: 0.5;

    /* 25vw width (4 waves) for density */
    -webkit-mask-size: 25vw 100%;
    mask-size: 25vw 100%;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;

    animation: wave-slide 12s linear infinite;
}

footer::after {
    /* The Solid Wave - Smoother Organic */
    -webkit-mask: var(--wave-solid);
    mask: var(--wave-solid);

    top: 0;
    opacity: 1;

    /* Different scale for variety: 30vw width */
    -webkit-mask-size: 30vw 100%;
    mask-size: 30vw 100%;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;

    animation: wave-slide-reverse 9s linear infinite;
}

@keyframes wave-slide-small {
    0% {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }

    100% {
        -webkit-mask-position: 16.66vw 0;
        mask-position: 16.66vw 0;
    }
}

@keyframes wave-slide-reverse {
    0% {
        -webkit-mask-position: 12.5vw 0;
        mask-position: 12.5vw 0;
    }

    100% {
        -webkit-mask-position: -12.5vw 0;
        mask-position: -12.5vw 0;
    }
}

/* Ajuste Dark Mode explícito no necesario porque el footer siempre es oscuro, pero aseguramos limpieza */
:root:has(#theme-toggle-checkbox:checked) footer {
    border-top: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

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

.footer-col ul li a {
    opacity: 0.8;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-legal a {
    color: var(--white);
    margin: 0 0.5rem;
    transition: opacity 0.3s;
}

.footer-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
    padding-top: 0;
    /* Eliminado el padding superior previo */
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 4rem auto;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

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

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

input,
textarea,
select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s;
}

select {
    appearance: none;
    /* Removes default browser chevron styling for cleaner look */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    cursor: pointer;
}

textarea {
    field-sizing: content;
    overflow: hidden;
    resize: none;
    min-height: 4rem;
}



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

/* Email Validation Styles */
input[type="email"]:not(:placeholder-shown):valid {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

input[type="email"]:not(:placeholder-shown):invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

/* Responsive - Mobile Menu (Pure CSS) */
/* Hidden checkbox for toggle */
#mobile-menu-toggle {
    display: none;
}

/* Hamburger button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    z-index: 150;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hamburger animation when checked */
#mobile-menu-toggle:checked~header .mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

#mobile-menu-toggle:checked~header .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-toggle:checked~header .mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 140;
        overflow-y: auto;
    }

    /* Show menu when checkbox is checked */
    #mobile-menu-toggle:checked~header .nav-links {
        right: 0;
    }

    /* Show overlay when menu is open */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 130;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    #mobile-menu-toggle:checked~.mobile-overlay {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .nav-links>li {
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-links>li>a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    /* Mobile dropdown - siempre abierto cuando el menú está visible */
    .nav-links .dropdown>a::after {
        content: '▼';
        float: right;
        transition: transform 0.3s;
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 400px;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0.5rem 0;
        background: #f8fafc;
        border-radius: 0;
        min-width: 100%;
    }

    .dropdown-menu a {
        padding: 0.75rem 1.5rem;
    }

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

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

    .section-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1rem;
    }

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

/* ==========================================================================
   SERVICIOS Y CONTACTO (CONSOLIDADO)
   ========================================================================== */

/* --- SOPORTE REMOTO --- */
.support-hero {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.support-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.support-content {
    padding: 4rem 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.connect-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.connect-box h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.connect-box .icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.connect-box p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.session-code-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 280px;
    margin: 0 auto;
}

.session-code-input {
    padding: 1rem;
    font-size: 1.2rem;
    text-align: left;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.session-code-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    outline: none;
}

.session-code-input::placeholder {
    letter-spacing: normal;
    text-transform: none;
    font-weight: 400;
    color: #94a3b8;
}

.connect-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.download-box {
    border: 2px dashed var(--border-color);
}

.download-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Sección de instrucciones */
.instructions {
    background: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.instructions h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

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

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Sección de seguridad */
.security-note {
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.security-note .icon {
    font-size: 2rem;
}

.security-note h4 {
    margin-bottom: 0.5rem;
}

.security-note p {
    font-size: 0.9rem;
    margin: 0;
}

/* Estilos del formulario de ticket */
.ticket-form {
    text-align: left;
    max-width: 100%;
}

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

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

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.ticket-form input,
.ticket-form textarea {
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

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

.ticket-form .session-code-input {
    text-align: center;
}

.form-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Modal de confirmación */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    text-align: center;
    max-width: 400px;
    animation: slideUp 0.4s ease;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ticket-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    color: var(--text-color);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- REDES --- */
.redes-hero {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.redes-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.redes-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.redes-content {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
}

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

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Problemas que resolvemos */
.problems-section {
    background: var(--section-gradient);
    padding: 3rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.problems-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

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

.problem-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    color: var(--text-color);
}

.problem-item .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.problem-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.problem-item p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}

/* Soluciones para cada necesidad */
.services-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.service-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

:root:has(#theme-toggle-checkbox:checked) .service-item {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.5);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-item .icon {
    font-size: 3.5rem;
    background: var(--bg-color);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

:root:has(#theme-toggle-checkbox:checked) .service-item .icon {
    background: rgba(15, 23, 42, 0.8);
}

.service-item h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.service-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .service-item .icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}

/* Sección CTA */
.cta-section {
    background: var(--primary-color);
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    color: white;
}

.cta-section h2 {
    margin-bottom: 1rem;
    color: #f97316;
    /* Orange 500 */
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: white;
    color: #0891b2;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- DOMÓTICA --- */
.domotica-hero {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.domotica-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.domotica-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.domotica-content {
    padding: 4rem 0;
}

/* Sección de marcas */
.brands-section {
    background: var(--section-gradient);
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 3rem;
}

.brands-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.brand-item {
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    color: var(--text-color);
}

.brand-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Beneficios */
.benefits-section {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

:root:has(#theme-toggle-checkbox:checked) .benefits-section {
    background-color: #204264 !important;
}

.benefits-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

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

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
}

.benefit-item .icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.benefit-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.benefit-item p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}

/* --- HARDWARE --- */
.hardware-hero {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hardware-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hardware-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.hardware-content {
    padding: 4rem 0;
}

/* Proceso de reparación */
.process-section {
    background: var(--section-gradient);
    padding: 3rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.process-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.process-step {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    color: var(--text-color);
}

.process-step .number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.process-step h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}

/* Equipos que reparamos */
.equipment-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.equipment-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.equipment-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.equipment-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.equipment-item .icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.equipment-item span {
    color: var(--text-color);
    font-weight: 500;
}

/* --- CONTACTO --- */
.contact-hero {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: -2rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    color: var(--text-color);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item .icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: var(--bg-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.info-item div h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-color);
}

.info-item div p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.8;
}

.contact-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.submit-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #2563eb;
}

.map-container {
    margin-top: 3rem;
    border-radius: 1rem;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
    }

    .support-hero h1 {
        font-size: 2rem;
    }

    .connect-box,
    .instructions {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-grid {
        padding: 2rem 1.5rem;
    }
}

/* --- WINDOW REVEAL DESIGN STYLES --- */
.reveal-design {
    scroll-behavior: smooth;
    background: #020617;
    /* Base dark background */
}

.reveal-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #020617;
    color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.reveal-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Reveal Effect Overlay */
.reveal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(2, 6, 23, 0.8) 0%,
            rgba(2, 6, 23, 0.4) 50%,
            rgba(2, 6, 23, 0.8) 100%);
    z-index: 1;
}

.reveal-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 3.5rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2.5rem;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transform: translateY(0);
}

.reveal-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.reveal-cta {
    display: inline-block;
    padding: 1.1rem 2.2rem;
    border-radius: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reveal-cta:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Background Images for Reveal */
.section-soporte {
    background-image: url('../img/remote-support.png');
}

.section-hardware {
    background-image: url('../img/hardware-maintenance.png');
}

.section-redes {
    background-image: url('../img/networking.png');
}

.section-domotica {
    background-image: url('../img/domotica.png');
}

/* Alternating Dynamic: Scroll Background */
.scroll-background {
    background-attachment: scroll !important;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .reveal-section {
        background-attachment: scroll;
        height: auto;
        padding: 6rem 0;
    }

    .reveal-content {
        margin: 0 auto;
        padding: 2.5rem;
        text-align: center;
    }

    .reveal-content h2 {
        font-size: 2.5rem;
    }
}

/* Theme Toggle Support */
:root:has(#theme-toggle-checkbox:checked) .reveal-design {
    background: #000;
}

:root:has(#theme-toggle-checkbox:checked) .reveal-section::before {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.9) 100%);
}