
:root {
    /* Color Palette - Primary */
    --primary-red: #990000;
    --primary-red-hover: #cc0000;
    --primary-red-glow: rgba(204, 0, 0, 0.4);
    --secondary-blue: #3a7bd5;
    --accent-blue: #4f46e5;
    
    /* Backgrounds */
    --bg-dark: #0f1419;
    --bg-card: rgba(20, 20, 35, 0.85);
    --bg-form: rgba(40, 40, 50, 0.5);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-glass: rgba(255, 255, 255, 0.85);
    --text-glass-muted: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Effects & Layout */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow-red: 0 0 30px rgba(153, 0, 0, 0.4);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition-standard: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s ease;

    /* Funciones Specific (Unified) */
    --border-radius-func: 15px;
    --transition-normal-func: 0.3s ease;
    --transition-fast-func: 0.2s ease;
    --border-color-func: rgba(255, 255, 255, 0.2);
    --border-hover-func: rgba(153, 0, 0, 0.5);
    --shadow-lg-func: 0 15px 40px rgba(0, 0, 0, 0.4);

    /* Consolidation from stylesFunciones */
    --card-bg-hover: rgba(38, 38, 60, 0.95);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET & GLOBAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0f1419;
    color: #fff;
    line-height: 1.6;
}

/* Image exceptions */
.logo-container img,
.footer-brand img {
    border-radius: 0 !important;
}

/* ==================== NAVIGATION ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background: rgba(20, 20, 35, 0.5);
    backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    transition: background var(--transition-standard);
}

.nav.scrolled {
    background: rgba(20, 20, 35, 0.95);
    padding: 15px 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    width: 40px;
    height: 36px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: lowercase;
}

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

.nav-links a {
    color: var(--text-glass);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    transition: width var(--transition-standard);
}

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

.nav-cta {
    background: var(--primary-red);
    padding: 10px 22px;
    border-radius: 30px;
    color: var(--text-white) !important;
    font-weight: 600;
    transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--primary-red-glow);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition-standard);
}

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

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

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

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 90vh;
    background: url('../imagenes/hero.png') center/cover fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 2em 40px;
    overflow: visible;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
    pointer-events: none; /* CRITICAL FIX: allows clicks to pass through the overlay */
}
.hero.heroHome::before{
    background: rgba(0, 0, 0, 0.38);
}

.hero-content-box {
    position: relative;
    z-index: 2;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 60px 50px;
    max-width: 1100px;
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 90px;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 0;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
    animation: fadeUp 1s forwards;
}

.hero-overlay p {
    font-size: 1.2rem;
    color: var(--text-glass);
    margin-bottom: 30px;
    animation: fadeUp 1s forwards 0.2s;
    opacity: 0;
}

.cta {
    padding: 18px 45px;
    font-size: 1.1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-hover));
    color: var(--text-white);
    font-weight: 600;
    transition: transform var(--transition-standard), box-shadow var(--transition-standard);
    border: none;
    cursor: pointer;
    animation: fadeUp 1s forwards 0.4s;
    opacity: 0;
}

.cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow-red);
}

.hero-visual {
    width: 380px;
    animation: floatGlow 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.hero-visual img {
    width: 100%;
}

/* ==================== BUTTONS (Consolidated) ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-standard);
    border: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--text-white);
    box-shadow: var(--shadow-glow-red);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(153, 0, 0, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-3px);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.1rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, #000000, #0a0a0a);
    padding: 80px 80px 40px;
    border-top: 1px solid rgba(153, 0, 0, 0.2);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-inline: auto;
}

.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 1.5px;
    color: var(--text-white);
    text-transform: uppercase;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand img {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 15px;
}

.footer-list a,
.footer-col p a {
    color: var(--text-glass);
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.footer-list a:hover,
.footer-col p a:hover {
    color: var(--primary-red-hover);
    text-shadow: 0 0 10px var(--primary-red-glow);
}

.footer-col p {
    color: var(--text-glass);
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-glass-muted);
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--text-glass-muted);
    transition: color var(--transition-fast);
}

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

/* ==================== FORMS (CONTACT & DEMO) ==================== */
.contact-form-container, .demo-form-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 80px;
    z-index: 2;
}

.contact-form, .demo-form {
    width: 100%;
    max-width: 700px;
    border-radius: var(--radius-lg);
    padding: 50px;
    border: var(--glass-border);
    box-shadow: var(--shadow-premium);
    background: var(--bg-form);
}

.demo-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text-white);
    letter-spacing: -1px;
}
.contact-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -1px;
}
/* Quitar flechas navegador (*/
.no-arrows::-webkit-inner-spin-button,
.no-arrows::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-arrows {
    -moz-appearance: textfield;
}
/* ) */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-glass-muted);
    transition: color var(--transition-fast);
}
#demoForm {
    margin-top: 25px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-glass);
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-white);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px var(--primary-red-glow);
}

.form-group input:focus + label,
.form-group textarea:focus + label {
    color: var(--text-white);
}

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

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-glass);
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-red);
    margin-top: 2px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-hover));
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-glow-red);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--primary-red-glow);
}

/* ==================== SOCIAL SECTION ==================== */
.social-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a202c 100%);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.social-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 15px;
    animation: fadeUp 0.8s forwards;
}

.social-subtitle {
    font-size: 1.1rem;
    color: var(--text-glass-muted);
    margin-bottom: 50px;
    animation: fadeUp 0.8s forwards 0.2s;
    opacity: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all var(--transition-standard);
}

.social-icon:hover {
    border-color: var(--primary-red);
    background: var(--primary-red-glow);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-icon svg {
    width: 28px;
    height: 28px;
    transition: transform var(--transition-fast);
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* ==================== MAPA ==================== */
.map-container {
    width: 100%;
    border-top: 1px solid rgba(79, 70, 229, 0.2);
    padding-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 380px;
    border-radius: 20px;
    border: 1px solid rgba(79, 70, 229, 0.25);
}

/* ==================== FUNCIONES PAGE SPECIFIC ==================== */
.features-section {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 100px auto 80px;
    background: rgba(20, 20, 35, 0.85);
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: var(--radius-lg);
    border: var(--glass-border);
    box-shadow: var(--shadow-premium);
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-blue));
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.15rem;
    color: var(--text-glass);
    line-height: 1.7;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.feature-card {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: rgb(18 18 18 / 58%);
    border-radius: var(--radius-lg);
    border: var(--glass-border);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg-func);
    border-color: var(--border-hover-func);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--secondary-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-standard);
}

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

.feature-card:nth-child(even) {
    direction: rtl;
}

.feature-card:nth-child(even) > * {
    direction: ltr;
}

.feature-image-container {
    position: relative;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    cursor: zoom-in;
    transition: var(--transition-standard);
}

.feature-image-container:hover {
    box-shadow: 0 0 30px rgba(153, 0, 0, 0.3);
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-func);
    transition: var(--transition-normal-func);
}

.feature-image-container:hover .feature-image {
    transform: scale(1.05);
}

.feature-card.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    width: 90vw;
    max-width: 1200px;
    height: auto;
    max-height: 90vh;
    z-index: 10000;
    display: grid;
    flex-direction: column;
    gap: 30px;
    padding: 40px;
    background: rgb(198 198 198 / 24%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    animation: expandModal 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    overflow-y: auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal-func);
}

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

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color-func);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast-func);
    z-index: 10001;
    opacity: 0;
}

.feature-card.expanded .close-modal-btn {
    opacity: 1;
}

.close-modal-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.close-modal-btn::before,
.close-modal-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #ffffff;
}

.close-modal-btn::before {
    transform: rotate(45deg);
}

.close-modal-btn::after {
    transform: rotate(-45deg);
}

.feature-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgb(255, 255, 255);
    line-height: 1;
    transition: var(--transition-normal-func);
}

.feature-card:hover .feature-number {
    color: #990000;
}

.feature-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.5px;
    transition: var(--transition-standard);
}

.feature-card:hover .feature-title {
    color: var(--text-white);
}

.feature-description {
    font-size: 1rem;
    color: var(--text-glass);
    line-height: 1.8;
    text-align: left;
}

.tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-glass);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: var(--glass-border);
    transition: var(--transition-standard);
}

.tag:hover {
    background: rgba(153, 0, 0, 0.2);
    border-color: #990000;
    color: var(--text-white);
}

.cta-section {
    padding: 0px 40px;
    padding-bottom: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content {
    text-align: center;
    background: rgba(20, 20, 35, 0.9);
    backdrop-filter: blur(15px);
    padding: 80px 60px;
    border-radius: var(--radius-lg);
    border: var(--glass-border);
    box-shadow: var(--shadow-premium);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.cta-description {
    font-size: 1.15rem;
    color: var(--text-glass);
    margin-bottom: 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}



/* Utility Classes */
.text-primary-link {
    color: var(--primary-red) !important;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.text-primary-link:hover {
    color: var(--primary-red-hover) !important;
    text-decoration: underline;
}

/* Page Specific Overrides */
.demo-page .text-primary-link {
    color: var(--primary-red) !important;
}

/* ==================== ENVIO PAGE SPECIFIC ==================== */
.envio-page {
    margin: 0;
    padding: 0;
    background: #0f1419;
    color: #fff;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.envio-page .container {
    background: rgba(40, 40, 50, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 80px 60px;
    max-width: 600px;
    box-shadow: 0 0 120px rgba(0, 0, 0, 0.5), 0 30px 80px rgba(200, 200, 200, 0.1);
    animation: slideUpEnvio 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.envio-page .checkmark {
    font-size: 80px;
    color: #cc0000;
    margin-bottom: 30px;
    animation: scaleInEnvio 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    text-shadow: 0 0 30px rgba(204, 0, 0, 0.6), 0 0 60px rgba(204, 0, 0, 0.3);
}

.envio-page h1 {
    font-size: 3rem;
    margin: 0 0 15px 0;
    animation: fadeUpEnvio 0.8s ease-out 0.2s forwards;
    opacity: 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.envio-page .subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    animation: fadeUpEnvio 0.8s ease-out 0.4s forwards;
    opacity: 0;
    line-height: 1.6;
}

.envio-page .message {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    animation: fadeUpEnvio 0.8s ease-out 0.6s forwards;
    opacity: 0;
    margin-bottom: 40px;
}

.envio-page .loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(204, 0, 0, 0.15);
    border-top: 5px solid #cc0000;
    border-radius: 50%;
    animation: spinEnvio 2s linear infinite;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(204, 0, 0, 0.4), inset 0 0 15px rgba(204, 0, 0, 0.1);
}

/* ==================== DEMO PAGE SPECIFIC ==================== */
.demo-page .demo-form {
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02)) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 2px 8px rgba(255,255,255,0.02) inset !important;
    border-radius: 18px !important;
    padding: 48px !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    backdrop-filter: blur(10px) saturate(120%);
    max-width: 680px;
}

.demo-page .demo-form:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.65);
}

.demo-page .form-group { position: relative; margin-bottom: 40px; }
.demo-page .form-group input,
.demo-page .form-group textarea {
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px 14px;
    color: #e6eef8;
    font-size: 15px;
    outline: none;
    transition: box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    width: 100%;
    box-sizing: border-box;
}

.demo-page .form-group label {
    color: rgba(255,255,255,0.75) !important;
    background: transparent;
    padding: 0 6px;
    position: absolute;
    top: -30px;
    left: 0;
    font-size: 12px;
    pointer-events: none;
}

.demo-page .form-group input:focus,
.demo-page .form-group textarea:focus {
    border-color: #cc0000 !important;
    box-shadow: 0 8px 30px rgba(204,0,0,0.10);
    background: rgba(255,255,255,0.03) !important;
    display: block;
}

.demo-page .checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #cc0000;
    border-radius: 4px;
}
.demo-page .checkbox-row a { color: #990000 !important; text-decoration: underline; }

.btn-demo {
    background: linear-gradient(135deg, #990000, #c20303) !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 14px 40px rgba(181, 0, 0, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    width: 100%;
}
.btn-demo:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(181, 0, 0, 0.32) !important;
}

.demo-form .form-disabled-msg {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.demo-form .demo-form h2 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    font-size: 2.4rem;
    margin-bottom: 15px;
    text-align: center;
}

.demo-page .demo-form > p {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* ==================== CONTACTO PAGE SPECIFIC ==================== */
.contacto-page .contact-form {
    background: rgba(40, 40, 50, 0.5) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px;
}

.contacto-page .contact-form-container {
    padding: 40px 20px;
}

.contacto-page .contact-title {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.contacto-page .form-group input,
.contacto-page .form-group textarea {
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px 14px;
    color: #e6eef8;
    font-size: 15px;
    outline: none;
    transition: box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.contacto-page .form-group label {
    color: rgba(255,255,255,0.75) !important;
    background: transparent;
    padding: 0 6px;
    position: absolute;
    top: -30px !important;
    left: 0;
    font-size: 12px !important;
    pointer-events: none;
    z-index: 2;
}

.contacto-page .form-group input:focus,
.contacto-page .form-group textarea:focus {
    border-color: #990000 !important;
    box-shadow: 0 8px 30px rgba(204,0,0,0.10);
    background: rgba(255,255,255,0.03) !important;
}

.contacto-page .checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #990000;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4) inset;
}

.contacto-page .checkbox-row a {
    color: #c90707 !important;
    text-decoration: underline;
}

.contacto-page .btn-enviar {
    background: linear-gradient(135deg, #990000, #c20303) !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 14px 40px rgba(181, 0, 0, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contacto-page .btn-enviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(181, 0, 0, 0.32);
}

/* Modals Success & Loading */
#successScreen, #loadingScreen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    text-align: center;
    padding: 80px 50px;
    border-radius: 12px;
    min-width: 300px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: none;
}

#successScreen {
    background: linear-gradient(135deg, rgba(153,0,0,0.05) 0%, rgba(153,0,0,0.01) 100%);
    border: 2px solid #990000;
    color: #990000;
    animation: slideUp 0.5s ease-out;
}

#loadingScreen {
    background: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, rgba(14,165,233,0.02) 100%);
    color: #fff;
    animation: fadeIn 0.3s ease-in;
}

.map-container iframe {
    border-radius: 12px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 3px rgba(255, 255, 255, 0.2), 0 0 6px rgba(100, 100, 100, 0.15); }
    50% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.3), 0 0 15px rgba(100, 100, 100, 0.2); }
}

@keyframes floatGlow {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

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

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

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 5px #ffffff, 0 0 10px rgba(255, 255, 255, 0.4); color: #fff; }
    50% { text-shadow: 0 0 20px #ffffff, 0 0 30px rgba(255, 255, 255, 0.7); color: #e0e7ff; }
}

@keyframes titleGlowSoft {
    0%, 100% { text-shadow: 0 0 4px rgba(180, 180, 180, 0.35), 0 0 8px rgba(160, 160, 160, 0.25); }
    50% { text-shadow: 0 0 10px rgba(200, 200, 200, 0.55), 0 0 18px rgba(180, 180, 180, 0.45); }
}

@keyframes scaleUpFade {
    0% { opacity: 0; transform: scale(0.7) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

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

@keyframes demoGlow {
    0% { text-shadow: 0 0 6px rgba(255, 255, 255, 0.4), 0 0 12px rgba(255, 255, 255, 0.3); }
    100% { text-shadow: 0 0 14px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6); }
}

@keyframes floatBackground {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, 60px); }
}

@keyframes zoomInRotate {
    0% { opacity: 0; transform: scale(0) rotate(-45deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes expandModal {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(153, 0, 0, 0.4); }
    50% { box-shadow: 0 0 40px rgba(153, 0, 0, 0.6); }
}

@keyframes spinEnvio {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideUpEnvio {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUpEnvio {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scaleInEnvio {
    0% { opacity: 0; transform: scale(0.3); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, -30%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

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

/* ==================== RESPONSIVE DESIGN (CONSOLIDATED) ==================== */

/* Desktop & Large Tablets (1200px) */
@media (max-width: 1200px) {
    .nav { padding: 15px 40px; }
    .footer { padding: 60px 40px 40px; }
    .feature-card:nth-child(even) { direction: ltr; }
    .feature-card.expanded { width: 95vw; padding: 30px; }
}

/* Tablets (992px) */
@media (max-width: 992px) {
    .feature-card { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
    .hero-overlay h1 { font-size: 3rem; }
}

/* Small Tablets & Large Phones (768px) */
@media (max-width: 768px) {
    .nav { padding: 10px 20px; }
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(20, 20, 35, 0.98);
        flex-direction: column;
        padding: 40px;
        border-bottom: var(--glass-border);
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-cta {
        padding: 10px 20vh;
    }
    .nav-links.active {
        display: flex;
        max-height: 500px;
        padding: 20px 0;
        margin-top: -1vh;
    }
    .menu-toggle { display: flex; }
    .hero.funciones{
        padding: 0px 2vh;
    }
    .hero-content-box { 
        flex-direction: column; 
        padding: 40px 30px; 
        text-align: center;
        margin-top: 5vh;
    }
    .hero-overlay h1 { font-size: 2.2rem; }
    .hero-visual { width: 100%; max-width: 320px; margin: 0 auto; }
    
    .feature-card { padding: 30px; gap: 30px; }
    .feature-title { font-size: 1.5rem; }
    .feature-number { font-size: 2.5rem; }
    .feature-card.expanded { width: 95vw; height: 85vh; padding: 20px; }
    
    .cta-content { padding: 50px 30px; }
    .cta-title { font-size: 1.8rem; }

    .section-header {
        padding: 5vh 2vh;
    }
    /* Home */
    .hero.heroHome {
        padding: 2em 2vh;
    }
    /* Contacto */
    .hero.contactHero {
        padding: 2em 2.5vh;
    }
    /* Demo Movil */
    .hero.demoHero {
        padding: 2em 2.5vh;
    }
    .demo-form-container {
        padding: 0px;
        margin-top: 5vh;
    }
    .demo-form {
        padding: 2vh;
    }
    .demo-title {
        margin-bottom: 0;
    }
    .tag{
        display: grid;
        margin-bottom: 1vh;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand {
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    .cta-section{
        padding: 0px;
    }
}

/* Phones (480px) */
@media (max-width: 480px) {
    .hero-overlay h1 { font-size: 1.8rem; }
    .hero-overlay p { font-size: 1rem; }
    .cta { width: 100%; padding: 15px 5vh; }

    .tag{
        display: grid;
        margin-bottom: 1vh;
    }
    .demo-title{
        font-size: 2em;
    }
    .contact-form, .demo-form{
        padding: 2em;
    }
    .contact-title {
        margin-bottom: 10px;
        font-size: 2em;
    }
    .section-title { font-size: 1.8rem; }
    .feature-card { padding: 20px; }
    .close-modal-btn { top: 10px; right: 10px; width: 35px; height: 35px; }
    .footer-links { flex-direction: column; align-items: center; gap: 10px; }
}
