/* ===================================
   STUDIO REDHOUSE — DESIGN SYSTEM
   Dark Premium Theme
   =================================== */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #CC0000;
    --red-light: #E31B23;
    --red-glow: rgba(227, 27, 35, 0.3);
    --red-glow-strong: rgba(227, 27, 35, 0.6);
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

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

.section {
    padding: 120px 0;
    position: relative;
}

.text-red {
    color: var(--red-light);
}

/* ---------- HEADER / NAV ---------- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

#header.scrolled {
    padding: 8px 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

#header.scrolled .logo-img {
    height: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-light);
    transition: var(--transition);
}

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

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #25d366;
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--red-glow);
    top: -10%;
    right: -5%;
    animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(204, 0, 0, 0.15);
    bottom: -5%;
    left: -5%;
    animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.3s forwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--red-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s forwards;
}

.hero-line:nth-child(1) {
    animation-delay: 0.5s;
}

.hero-line:nth-child(2) {
    animation-delay: 0.7s;
}

.hero-line:nth-child(3) {
    animation-delay: 0.9s;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--red-light), #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 1.1s forwards;
}

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

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 1.3s forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-light));
    color: white;
    box-shadow: 0 4px 24px var(--red-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--red-glow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-glass);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 1.5s forwards;
}

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

.hero-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--red-light);
}

.hero-stat-plus {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--red-light);
}

.hero-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-glass);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInUp 0.8s 2s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--red-light), transparent);
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---------- SECTION COMMON ---------- */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--red-light);
    margin-bottom: 16px;
    position: relative;
    padding-left: 24px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background: var(--red-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* ---------- NOSOTROS ---------- */
.nosotros {
    background: linear-gradient(180deg, var(--bg-dark), #0d0d0d);
}

.nosotros-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(227, 27, 35, 0.2);
    transform: translateX(8px);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(227, 27, 35, 0.15), rgba(227, 27, 35, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-light);
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Nosotros Visual Cards */
.nosotros-visual {
    position: relative;
    height: 450px;
}

.visual-card {
    position: absolute;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    transition: var(--transition-slow);
    cursor: default;
}

.visual-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(227, 27, 35, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px var(--red-glow);
}

.visual-card-1 {
    top: 0;
    left: 0;
    width: 260px;
    z-index: 3;
}

.visual-card-2 {
    top: 80px;
    right: 0;
    width: 260px;
    z-index: 2;
}

.visual-card-3 {
    bottom: 0;
    left: 40px;
    width: 280px;
    z-index: 1;
}

.visual-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.visual-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.visual-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ---------- SERVICIOS ---------- */
.servicios {
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 36px 28px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
    overflow: hidden;
    cursor: default;
    animation-delay: var(--delay) !important;
}

.service-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--red-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.service-card:hover .service-card-glow {
    opacity: 0.08;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(227, 27, 35, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(227, 27, 35, 0.15), rgba(227, 27, 35, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-light);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--red), var(--red-light));
    color: white;
    box-shadow: 0 8px 24px var(--red-glow);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags span {
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- PROCESO ---------- */
.proceso {
    background: linear-gradient(180deg, #0d0d0d, var(--bg-dark));
}

.process-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    left: 36px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--red-light), var(--border-glass));
}

.process-step {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
    align-items: flex-start;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-number {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--red-light);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.process-step:hover .process-number {
    background: linear-gradient(135deg, var(--red), var(--red-light));
    color: white;
    border-color: var(--red);
    box-shadow: 0 8px 24px var(--red-glow);
}

.process-content {
    padding-top: 12px;
}

.process-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.process-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- CLIENTES ---------- */
.clientes {
    background: var(--bg-dark);
    overflow: hidden;
}

.clients-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
    display: flex;
    gap: 48px;
    animation: marquee 25s linear infinite;
    width: max-content;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.client-logo-item {
    flex-shrink: 0;
    padding: 24px 48px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.client-logo-item:hover {
    border-color: rgba(227, 27, 35, 0.3);
    background: var(--bg-card-hover);
}

.client-logo-item span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: 1px;
}

/* ---------- CONTACTO ---------- */
.contacto {
    background: linear-gradient(180deg, var(--bg-dark), #0d0d0d);
}

.contacto-grid {
    gap: 60px;
}

.contact-details {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(227, 27, 35, 0.15), rgba(227, 27, 35, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-light);
}

.contact-item h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--text-primary);
    font-size: 0.95rem;
}

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

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--red-glow);
}

/* Contact Form */
.contact-form {
    padding: 40px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--border-glass);
}

.form-title {
    font-size: 1.3rem;
    margin-bottom: 28px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: #CC0000;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group label {
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--red-light);
    box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.1);
}

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

/* ---------- HUBSPOT FORM OVERRIDE ---------- */
.hubspot-form-wrapper {
    min-height: 300px;
}

.hubspot-form-wrapper .hs-form {
    font-family: 'Inter', sans-serif !important;
}

.hubspot-form-wrapper .hs-form-field {
    margin-bottom: 18px;
}

.hubspot-form-wrapper .hs-form-field label {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px !important;
    display: block;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}

.hubspot-form-wrapper .hs-form-field .hs-input {
    width: 100% !important;
    padding: 14px 16px !important;
    background: var(--bg-dark) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: var(--transition) !important;
    box-sizing: border-box !important;
}

.hubspot-form-wrapper .hs-form-field .hs-input:focus {
    border-color: var(--red-light) !important;
    box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.1) !important;
}

.hubspot-form-wrapper .hs-form-field textarea.hs-input {
    min-height: 100px !important;
    resize: vertical !important;
}

.hubspot-form-wrapper .hs-form-field select.hs-input {
    cursor: pointer !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-color: var(--bg-dark) !important;
}

.hubspot-form-wrapper .hs-submit .hs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 32px !important;
    border-radius: var(--radius-full) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
    background: linear-gradient(135deg, var(--red), var(--red-light)) !important;
    color: white !important;
    box-shadow: 0 4px 24px var(--red-glow) !important;
    margin-top: 8px;
}

.hubspot-form-wrapper .hs-submit .hs-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 32px var(--red-glow-strong) !important;
}

.hubspot-form-wrapper .hs-error-msgs {
    list-style: none !important;
    padding: 0 !important;
    margin: 4px 0 0 !important;
}

.hubspot-form-wrapper .hs-error-msgs li label {
    color: var(--red-light) !important;
    font-size: 0.75rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.hubspot-form-wrapper .hs_error_rollup {
    display: none;
}

.hubspot-form-wrapper .submitted-message {
    color: #25d366 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    text-align: center;
    padding: 20px 0;
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 60px 0 24px;
    background: #050505;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-glass);
}

.footer-logo {
    height: 36px;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-links span {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--red-light);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 999;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 32px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.1);
    }
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger delays for service cards */
.reveal-up[style*="--delay"] {
    transition-delay: var(--delay);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .nosotros-visual {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 20px;
        transition: var(--transition);
        border-left: 1px solid var(--border-glass);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-title {
        letter-spacing: -1px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form {
        padding: 24px;
    }

    .nosotros-visual {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .visual-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
    }

    .process-step {
        gap: 20px;
    }

    .process-number {
        width: 56px;
        height: 56px;
        font-size: 1rem;
    }

    .process-line {
        left: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-badge {
        font-size: 0.7rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}