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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

img,
svg,
video {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

:root {
    /* Colors - Monochrome Editorial */
    --bg-body: #ffffff;
    --bg-surface: #ffffff;
    --text-main: #000000;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    --border-strong: #000000;

    /* Accents - Minimal */
    --primary: #000000;
    --primary-inverse: #ffffff;
    --accent: #2563eb;
    /* Royal Blue for small highlights */

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;

    /* Spacing & Layout */
    --container-width: 1400px;
    /* Wider container */
    --section-padding: 6rem 2rem;
    --header-height: 70px;
    --grid-gap: 1px;
    /* For grid lines */

    /* Borders */
    --radius-sm: 0px;
    /* Sharp corners */
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background: var(--bg-body);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
    border-bottom: 1px solid var(--border-color);
}

/* Reducir padding superior de la primera sección después del hero */
.problem-section {
    padding-top: 3rem;
}

/* ===== UTILITIES ===== */
.grid-bg {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, #f0f0f0 1px, transparent 1px),
        linear-gradient(to bottom, #f0f0f0 1px, transparent 1px);
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 12rem 0 4rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

/* Hide old blobs */
.hero-background {
    display: none;
}

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

.hero-badge {
    display: inline-block;
    border: 1px solid var(--border-strong);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    background: white;
}

.badge-icon {
    display: none;
    /* Minimalist */
}

/* Show badge icon in use case pages */
.hero-badge .badge-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 0 3rem 0;
    font-weight: 300;
    text-align: left;
    line-height: 1.7;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.check-icon {
    width: 16px;
    height: 16px;
    color: var(--text-main);
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Visual / Demo */
.hero-visual {
    position: relative;
}

.automation-demo {
    border: 1px solid var(--border-strong);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 900px;
    margin: 3rem auto;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    position: relative;
    background: white;
    position: relative;
}

/* Technical diagram look */
.automation-demo::before,
.automation-demo::after {
    content: '';
    position: absolute;
    background: var(--border-strong);
}

/* Horizontal line */
.automation-demo::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    z-index: 0;
}

/* Vertical line */
.automation-demo::after {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    z-index: 0;
}

.demo-node {
    background: white;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 120px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    align-items: center;
    gap: 1rem;
    z-index: 1;
    transition: var(--transition);
}

.demo-node:hover {
    border-color: var(--border-strong);
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 var(--border-strong);
}

.node-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.demo-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    border: 1px solid var(--border-strong);
    cursor: pointer;
}

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

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

.btn-secondary,
.btn-outline {
    background: transparent;
    color: var(--primary);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: var(--primary);
    color: var(--primary-inverse);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
}

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

/* ===== SECTIONS GENERAL ===== */
.section-header {
    margin-bottom: 5rem;
    border-left: 4px solid var(--border-strong);
    padding-left: 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Mejorar contraste en sección de integraciones */
.integrations-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== PROBLEM SECTION (Grid Layout) ===== */
.problem-section {
    background: var(--bg-surface);
}

.problem-grid,
.problem-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.stat-card,
.problem-card {
    padding: 3rem 2rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: white;
    transition: var(--transition);
}

.stat-card:hover {
    background: #fafafa;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* ===== SOLUTION / BENEFITS (Bento Grid) ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-color);
    /* Creates grid lines */
    border: 1px solid var(--border-color);
}

.benefit-card {
    background: white;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
}

.benefit-card:hover {
    background: #f8f8f8;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.benefit-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ===== INTEGRATIONS (Carousel) ===== */
.integrations-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    background: black;
    color: white;
    overflow: hidden;
}

.integrations-section .container {
    padding: 0 2rem;
}

.logos-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    margin-top: 2rem;
}

.logos-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logos-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.logos-track:hover {
    animation-play-state: paused;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    width: 120px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-img[src*=".svg"],
.logo-img[src*="jsdelivr"],
.logo-img[src*="unpkg"] {
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important;
}

/* Estilos específicos para logos problemáticos */
.logo-img[src*="pipedrive"],
.logo-img[src*="activecampaign"] {
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
    display: inline-block;
}

.logo-item:hover .logo-img {
    transform: scale(1.15);
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

.logo-item:hover .logo-placeholder {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.15);
}

.logo-name {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.logo-item:hover .logo-name {
    color: white;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo-item {
        width: 100px;
        gap: 0.5rem;
    }

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

    .logo-placeholder {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .logo-name {
        font-size: 0.65rem;
    }

    .logos-track {
        gap: 2rem;
    }
}

/* ===== PROCESS ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: process;
}

.process-step {
    position: relative;
    padding-top: 2rem;
    border-top: 1px solid var(--border-strong);
}

.step-number {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ===== USE CASES (List View) ===== */
.use-cases-grid {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-strong);
}

.use-case-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.use-case-card:hover {
    padding-left: 2rem;
    background: #fafafa;
}

.use-case-icon {
    font-size: 1.5rem;
}

.use-case-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.use-case-description {
    display: none;
    /* Minimalist list */
}

/* Related use cases grid */
.use-cases-grid-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.use-case-card-related {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: white;
    text-decoration: none;
    color: inherit;
}

.use-case-card-related:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.use-case-card-related .use-case-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.use-case-card-related .use-case-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.use-case-card-related .use-case-description {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-footer {
    display: none;
}

/* ===== PLANS ===== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.plan-card {
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.plan-featured {
    border: 2px solid var(--border-strong);
    transform: scale(1.05);
    background: white;
    position: relative;
    z-index: 10;
}

.plan-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.plan-features li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.plan-features li:last-child {
    border-bottom: none;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    background: white;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: black;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question span {
    flex: 1;
    text-align: left;
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    stroke: currentColor;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 0;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    padding: 0 0 1.5rem 0;
}

.faq-answer p {
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact-section {
    background: black;
    color: white;
    padding: 6rem 2rem;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-title {
    color: white;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.contact-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    color: black;
    border-radius: var(--radius-lg);
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: #f9f9f9;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

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


/* Responsive */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* ===== FORM SUCCESS MESSAGE WITH ANIMATION ===== */
.form-success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-success-message.show {
    opacity: 1;
    transform: scale(1);
}

.success-checkmark {
    margin-bottom: 1.5rem;
}

.checkmark {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto;
    position: relative;
}

.checkmark.animate {
    animation: scale 0.3s ease-in-out 1.1s both;
}

.checkmark-circle {
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #000000;
    fill: none;
}

.checkmark.animate .checkmark-circle {
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    stroke: #000000;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.checkmark.animate .checkmark-check {
    animation: stroke 0.5s cubic-bezier(0.65, 0, 0.45, 1) 0.7s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}


.success-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-main);
    font-weight: 500;
    max-width: 500px;
    margin: 0;
}

@media (max-width: 768px) {
    .form-success-message {
        padding: 2rem 1.5rem;
    }

    .checkmark {
        width: 60px;
        height: 60px;
    }

    .success-text {
        font-size: 1rem;
    }
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    color: white;
    will-change: transform, opacity;
    /* Usar pseudo-elemento para sombra animada (mejor rendimiento) */
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    z-index: -1;
    animation: whatsapp-pulse-shadow 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.1);
}

.whatsapp-float:hover::before {
    background: rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Animación de pulso optimizada (usando opacity en lugar de box-shadow) */
@keyframes whatsapp-pulse-shadow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ===== FOOTER ===== */
/* ===== FOOTER ===== */
.footer {
    background: white;
    color: black;
    padding: 5rem 2rem 2rem;
    border-top: 1px solid var(--border-strong);
}

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

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: black;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.footer-logo .logo-text {
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    color: black;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-list li {
    margin: 0;
}

.footer-list a {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: black;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    border-radius: 6px;
}

.social-link:hover {
    color: black;
    background: var(--bg-light);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ===== RESPONSIVE ===== */

/* ===== TABLET (601px - 1024px) ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
    text-align: left;
        margin: 0 auto 3rem;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-benefits {
        align-items: center;
        border-left: none;
        padding-left: 0;
    }

    .problem-grid,
    .problem-stats,
    .benefits-grid,
    .testimonials-grid,
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Plans grid se maneja en media query específica para tablets */

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.8125rem;
    }
}

/* ===== MOBILE (hasta 600px) ===== */
@media (max-width: 600px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }
    
    /* Permitir scroll horizontal en plans section */
    .plans-section .container {
        padding: 0;
        overflow-x: visible;
    }
    
    .plans-section .section-header {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    /* Navigation */
    .nav {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        width: 100%;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        width: 100%;
        text-align: left;
        font-size: 1rem;
        font-weight: 500;
    }

    .nav-menu .btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .nav-toggle {
        display: block;
    }

    /* Hero */
    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
    text-align: left;
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

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

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .badge-icon {
        font-size: 1rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* Problem & Benefits */
    .problem-grid,
    .problem-stats,
    .benefits-grid,
    .plans-grid,
    .testimonials-grid,
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .benefit-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .benefit-title {
        font-size: 1.25rem;
    }

    /* Plans */
    .plan-card {
        padding: 1.5rem;
    }

    .plan-title {
        font-size: 1.5rem;
    }

    .plan-features {
        gap: 0.75rem;
    }

    /* Contact */
    .contact-section {
        padding: 3rem 1rem;
    }

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

    .contact-description {
        font-size: 1rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-group {
        gap: 0.5rem;
    }

    .form-label {
        font-size: 0.8125rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.875rem;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 1rem 2rem;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo {
        font-size: 1.25rem;
    }

    .footer-logo .logo-icon {
        width: 28px;
        height: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }

    .footer-social {
        align-self: center;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }

    /* FAQ */
    .faq-item {
        padding: 1rem 0;
    }

    .faq-question {
        font-size: 1rem;
        padding-right: 2.5rem;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
    }

    /* Process */
    .process-step {
        padding-top: 1.5rem;
    }

    .step-number {
        font-size: 0.875rem;
    }

    /* WhatsApp Button */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Use Cases Grid */
    .use-cases-grid-related {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .use-case-card-related {
        padding: 1.5rem;
    }

    .use-case-card-related .use-case-icon {
        font-size: 2.5rem;
    }

    .use-case-card-related .use-case-title {
        font-size: 1.125rem;
    }

    .use-case-card-related .use-case-description {
        font-size: 0.875rem;
    }

    /* Process Steps */
    .process-steps {
        gap: 1.5rem;
    }

    /* Flow Diagrams - Mobile */
    .automation-demo {
        display: none !important;
    }

    .demo-node {
        width: 100%;
        min-width: auto;
        padding: 1.5rem 1rem;
        margin: 0;
    }

    .demo-arrow {
        transform: rotate(90deg);
        font-size: 1.25rem;
        margin: 0.5rem 0;
    }

    .node-icon {
        font-size: 2rem;
    }

    .node-label {
        font-size: 0.8125rem;
        margin-top: 0.75rem;
    }

    .demo-node > div:last-child {
        font-size: 0.8125rem;
        margin-top: 0.5rem;
    }

    /* Flow text descriptions - Mobile */
    div[style*="max-width: 800px"][style*="margin: 3rem auto"],
    div[style*="max-width: 800px"][style*="margin: 2rem auto"] {
        margin: 2rem auto !important;
        padding: 1.5rem 1rem !important;
    }

    /* Long flow text (like "Turno creado → n8n → ...") */
    div[style*="background: white"][style*="padding: 2rem"][style*="text-align: center"],
    div[style*="background: white"][style*="padding: 2rem"][style*="border-radius: var(--radius-xl)"] {
        padding: 1.5rem 1rem !important;
        font-size: 0.9375rem !important;
        line-height: 1.6 !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Process step lists */
    ol[style*="flex-direction: column"],
    ol[style*="display: flex"][style*="flex-direction: column"] {
        padding-left: 1.25rem !important;
        gap: 0.875rem !important;
    }

    ol[style*="flex-direction: column"] li,
    ol[style*="display: flex"][style*="flex-direction: column"] li {
        font-size: 0.9375rem !important;
        line-height: 1.7 !important;
    }

    h3[style*="font-size: 1.5rem"] {
        font-size: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* Plans - Scroll horizontal en mobile con efecto carousel */
    .plans-section {
        overflow-x: hidden;
    }
    
    .plans-section .container {
        padding: 0;
    }
    
    .plans-grid {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 2rem 0;
        /* Ocultar scrollbar pero mantener funcionalidad */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .plans-grid::-webkit-scrollbar {
        display: none;
    }
    
    /* Espaciado al inicio y final para centrar visualmente */
    .plans-grid::before {
        content: '';
        flex: 0 0 calc((100vw - 75%) / 2);
        min-width: calc((100vw - 75%) / 2);
    }
    
    .plans-grid::after {
        content: '';
        flex: 0 0 calc((100vw - 75%) / 2);
        min-width: calc((100vw - 75%) / 2);
    }
    
    .plan-card {
        flex: 0 0 75%;
        min-width: 75%;
        max-width: 75%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        transform: scale(0.85);
        opacity: 0.75;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    }
    
    /* Tarjeta centrada (visible completamente) */
    .plan-card.scroll-center {
        transform: scale(1);
        opacity: 1;
        z-index: 10;
    }
    
    /* Por defecto, la tarjeta featured empieza centrada */
    .plan-featured {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== SMALL MOBILE (hasta 360px) ===== */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .section {
        padding: 2.5rem 0.75rem;
    }

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

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

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* ===== LARGE DESKTOP (1441px+) ===== */
@media (min-width: 1441px) {
    .container {
        max-width: 1600px;
    }

    .hero-title {
        font-size: 6rem;
    }

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

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== TABLETS (601px - 1024px) - Todas las orientaciones ===== */
@media (min-width: 601px) and (max-width: 1024px) {
    /* Plans - Scroll horizontal en tablets */
    .plans-section {
        overflow-x: hidden;
    }
    
    .plans-section .container {
        padding: 0;
    }
    
    .plans-grid {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 2rem 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .plans-grid::-webkit-scrollbar {
        display: none;
    }
    
    .plans-grid::before {
        content: '';
        flex: 0 0 calc((100vw - 70%) / 2);
        min-width: calc((100vw - 70%) / 2);
    }
    
    .plans-grid::after {
        content: '';
        flex: 0 0 calc((100vw - 70%) / 2);
        min-width: calc((100vw - 70%) / 2);
    }
    
    .plan-card {
        flex: 0 0 70%;
        min-width: 70%;
        max-width: 70%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        transform: scale(0.85);
        opacity: 0.75;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    }
    
    .plan-card.scroll-center {
        transform: scale(1);
        opacity: 1;
        z-index: 10;
    }
    
    .plan-featured {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== TABLET LANDSCAPE (768px - 1024px) - Solo para otros ajustes ===== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
        padding: 8rem 0 6rem;
    }

    .hero-title {
        font-size: 3rem;
    }

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

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

/* ===== TABLET PORTRAIT (601px - 768px) ===== */
@media (min-width: 601px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .use-cases-grid-related {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Flow Diagrams - Tablet */
    .automation-demo {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }

    .demo-node {
        width: 100%;
        min-width: auto;
    }
    

    .demo-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    /* Flow text descriptions - Tablet */
    div[style*="background: white"][style*="padding: 2rem"][style*="text-align: center"] {
        padding: 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* ===== DESKTOP MEDIUM (1025px - 1440px) ===== */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .use-cases-grid-related {
        grid-template-columns: repeat(3, 1fr);
    }
}