/* ================================
   TAM - Tecnologías Amber
   Main Stylesheet
   ================================ */

/* Variables */
:root {
    /* Primarios */
    --primary: #2d5a87;
    --primary-dark: #1e3d5c;
    --primary-light: #4a7ba8;

    /* Acentos */
    --accent: #7DA177;
    --accent-dark: #5c8356;

    /* Alerta */
    --alert: #dc3545;

    /* Naranja quemado */
    --orange: #c2703a;
    --orange-dark: #a35a2a;
    --orange-light: #d4884f;

    /* Neutros */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-900: #212529;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height: 1.6;

    /* Borders */
    --radius: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);

    /* Transitions */
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--gray-900);
    background-color: var(--white);
}

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

a:hover {
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Sections */
.section {
    padding: var(--space-xl) 0;
}

.section-alt {
    background-color: var(--gray-100);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

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

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

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

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

.logo-img {
    height: 48px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: var(--space-md);
}

.nav-menu a {
    color: var(--gray-900);
    font-weight: 500;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--gray-900);
    transition: var(--transition);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: calc(var(--space-xl) + 70px) 0 var(--space-xl);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Hero with Video */
.hero-with-video {
    background: transparent;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(45, 90, 135, 0.85) 0%,
        rgba(30, 58, 95, 0.9) 50%,
        rgba(194, 112, 58, 0.7) 100%
    );
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(125, 161, 119, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(194, 112, 58, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-brand {
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.9;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--space-sm);
}

.hero-tagline {
    font-size: 1rem;
    opacity: 0.75;
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-app-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.85;
}

.hero-app-note a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: border-color var(--transition);
}

.hero-app-note a:hover {
    border-color: var(--white);
    color: var(--white);
}

.hero .btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
}

.hero .btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
}

.hero .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

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

/* Productos Grid */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.producto-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.producto-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-icon svg {
    width: 32px;
    height: 32px;
}

.producto-icon.icon-primary {
    background-color: rgba(45, 90, 135, 0.1);
    color: var(--primary);
}

.producto-icon.icon-accent {
    background-color: rgba(125, 161, 119, 0.1);
    color: var(--accent);
}

.producto-icon.icon-orange {
    background-color: rgba(194, 112, 58, 0.1);
    color: var(--orange);
}

.producto-icon.icon-alert {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--alert);
}

.producto-card {
    position: relative;
}

.producto-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.producto-tagline {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.producto-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
}

.producto-link {
    display: inline-block;
    margin-top: var(--space-sm);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

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

.video-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--orange);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.catalog-category {
    color: var(--primary);
    margin: var(--space-lg) 0 var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--gray-200);
    text-transform: capitalize;
}

.no-products {
    text-align: center;
    color: var(--gray-600);
    padding: var(--space-lg);
}

/* Beneficios */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.beneficio {
    text-align: center;
    padding: var(--space-md);
}

.beneficio-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.beneficio-icon svg {
    width: 32px;
    height: 32px;
}

.beneficio-icon.icon-primary {
    background-color: var(--primary);
    color: var(--white);
}

.beneficio-icon.icon-accent {
    background-color: var(--accent);
    color: var(--white);
}

.beneficio-icon.icon-orange {
    background-color: var(--orange);
    color: var(--white);
}

.beneficio-icon.icon-alert {
    background-color: var(--alert);
    color: var(--white);
}

.beneficio h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.cta-section p {
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: var(--white);
    color: var(--accent-dark);
    border-color: var(--white);
}

.cta-section .btn-primary:hover {
    background-color: var(--gray-100);
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-200);
    padding: var(--space-lg) 0 var(--space-md);
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-col a {
    color: var(--gray-300);
}

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

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

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: var(--space-sm);
}

.footer-contact {
    margin-top: var(--space-sm);
}

.footer-contact p {
    margin-bottom: var(--space-xs);
}

.footer-contact a {
    color: var(--accent);
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-600);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    color: var(--gray-600);
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-legal a {
    color: var(--gray-600);
    font-size: 0.875rem;
}

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

/* Page Hero (internal pages) */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: calc(var(--space-xl) + 70px) 0 var(--space-lg);
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-xs);
}

.page-hero p {
    opacity: 0.9;
    font-size: 1.125rem;
}

/* Forms */
.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.form-info h2 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.check-list {
    margin-bottom: var(--space-md);
}

.check-list li {
    padding: var(--space-xs) 0;
    padding-left: 1.5rem;
    position: relative;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.form-note {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.lead-form {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.lead-form h2 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--gray-900);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-block {
    display: block;
    width: 100%;
}

.form-privacy {
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    color: var(--gray-600);
    text-align: center;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    align-items: start;
}

.contact-info h2 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.contact-item {
    margin-bottom: var(--space-md);
}

.contact-item h3 {
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.contact-item p {
    color: var(--gray-600);
}

.contact-item .btn {
    margin-top: var(--space-xs);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
    position: relative;
    transition: transform var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.pricing-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
}

.pricing-desc {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.pricing-price {
    text-align: center;
    margin-bottom: var(--space-md);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.pricing-features {
    margin-bottom: var(--space-md);
}

.pricing-features li {
    padding: var(--space-xs) 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-600);
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.pricing-note {
    text-align: center;
    color: var(--gray-600);
}

.pricing-note p {
    margin-bottom: var(--space-xs);
}

/* Access Grid */
.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.access-card {
    display: block;
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition);
    color: var(--gray-900);
}

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

.access-icon {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.access-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.access-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
}

.access-link {
    color: var(--primary);
    font-weight: 600;
}

.access-note {
    text-align: center;
    padding: var(--space-lg);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
}

.access-note h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.access-note p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

/* Demo Grid */
.demo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.demo-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.demo-card.demo-featured {
    border: 2px solid var(--primary);
}

.demo-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.demo-icon svg {
    width: 32px;
    height: 32px;
}

.demo-card h2 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.demo-card > p {
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

.demo-features {
    margin-bottom: var(--space-md);
}

.demo-features li {
    padding: var(--space-xs) 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.demo-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.demo-note {
    text-align: center;
    padding: var(--space-lg);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
}

.demo-note h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.demo-note p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

/* About / Nosotros */
.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: calc(var(--space-xl) + 70px) 0 var(--space-lg);
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.about-content p {
    margin-bottom: var(--space-md);
    color: var(--gray-600);
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.value-card {
    text-align: center;
    padding: var(--space-md);
}

.value-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: var(--space-sm);
    color: var(--gray-600);
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
}

.legal-content li {
    margin-bottom: var(--space-xs);
    color: var(--gray-600);
    list-style: disc;
}

.legal-content a {
    color: var(--primary);
}

/* 404 Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-content h1 {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.error-content h2 {
    margin-bottom: var(--space-sm);
}

.error-content p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-sm);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--white);
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: var(--space-sm) var(--space-md);
    color: var(--gray-600);
    background: var(--gray-100);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-sm);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav .btn {
        display: none;
    }

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

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

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

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

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .form-container,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

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

    .demo-card.demo-featured {
        order: -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
.producto-card,
.beneficio,
.pricing-card,
.demo-card,
.access-card,
.value-card,
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.producto-card.animate-in,
.beneficio.animate-in,
.pricing-card.animate-in,
.demo-card.animate-in,
.access-card.animate-in,
.value-card.animate-in,
.faq-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.header-scrolled {
    box-shadow: var(--shadow-md);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .producto-card,
    .beneficio,
    .pricing-card,
    .demo-card,
    .access-card,
    .value-card,
    .faq-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =====================
   Social Proof Bar
   ===================== */
.social-proof {
    background: var(--primary);
    color: white;
    padding: 2rem 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.proof-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.proof-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.proof-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .proof-number {
        font-size: 2rem;
    }
}

/* =====================
   Steps / Cómo Funciona
   ===================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 1rem auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
}

.step-icon.icon-alert {
    background: rgba(220, 53, 69, 0.1);
    color: var(--alert);
}

.step-icon.icon-orange {
    background: rgba(194, 112, 58, 0.1);
    color: var(--orange);
}

.step-icon.icon-accent {
    background: rgba(125, 161, 119, 0.1);
    color: var(--accent);
}

.step-icon svg {
    width: 40px;
    height: 40px;
}

.step h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.25rem;
}

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

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* =====================
   Featured Product
   ===================== */
.featured-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-badge {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.featured-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.featured-lead {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.featured-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.featured-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text);
}

.featured-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Phone Mockup */
.featured-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2d5a87 0%, #1e3a5f 100%);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.panic-button {
    width: 160px;
    height: 160px;
    background: linear-gradient(145deg, #dc3545, #b02a37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}

.panic-button:hover {
    transform: scale(1.05);
}

.panic-button span {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.phone-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .featured-product {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .featured-content h2 {
        font-size: 1.75rem;
    }

    .featured-list {
        text-align: left;
        max-width: 320px;
        margin: 0 auto 2rem;
    }

    .featured-visual {
        order: -1;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .panic-button {
        width: 120px;
        height: 120px;
    }

    .panic-button span {
        font-size: 0.75rem;
    }
}

/* =====================
   About List
   ===================== */
.about-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.about-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.about-list li:last-child {
    border-bottom: none;
}

.about-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* =====================
   Hero Badge
   ===================== */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

/* =====================
   Problem Section
   ===================== */
.problem-section {
    background: var(--gray-100);
    padding: 1.5rem 0;
    text-align: center;
}

.problem-text {
    font-size: 1.125rem;
    color: var(--text-light);
    margin: 0;
    font-style: italic;
}

/* =====================
   Steps Note
   ===================== */
.steps-note {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
}

.steps-note p {
    margin: 0;
    font-size: 1.125rem;
}

/* =====================
   Includes Grid
   ===================== */
.includes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.include-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
}

.include-card.include-main {
    border: 2px solid var(--primary);
    position: relative;
}

.include-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.include-icon svg {
    width: 28px;
    height: 28px;
}

.include-icon.icon-sm {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    color: var(--primary);
}

.include-icon.icon-sm svg {
    width: 22px;
    height: 22px;
}

.include-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.include-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

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

    .include-card.include-main {
        grid-column: 1;
    }
}

/* =====================
   Optional Box
   ===================== */
.optional-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--gray-100) 0%, white 100%);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
}

.optional-badge {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.optional-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.optional-content p {
    margin: 0;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .optional-box {
        flex-direction: column;
        text-align: center;
    }
}

/* =====================
   Audience Grid
   ===================== */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.audience-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.audience-card.audience-yes {
    background: white;
    border: 2px solid var(--accent);
}

.audience-card.audience-grow {
    background: var(--gray-100);
    border: 2px solid var(--border);
}

.audience-card h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: var(--text);
}

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

.audience-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text);
}

.audience-yes ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.audience-grow ul li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
}

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

/* =====================
   Step Icon Primary
   ===================== */
.step-icon.icon-primary {
    background: rgba(45, 90, 135, 0.1);
    color: var(--primary);
}

/* =====================
   Visual Demo
   ===================== */
.visual-demo {
    overflow: hidden;
}

.demo-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.demo-item {
    text-align: center;
    flex: 0 0 auto;
}

.demo-item img {
    height: 200px;
    width: auto;
    margin-bottom: 1rem;
}

.demo-item p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.demo-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .demo-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .demo-arrow {
        transform: rotate(90deg);
    }

    .demo-item img {
        height: 150px;
    }
}

/* =====================
   Form Success
   ===================== */
.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.form-success svg {
    color: var(--accent);
    margin-bottom: 1rem;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-success p {
    color: var(--text-light);
}

/* =====================
   Video Container
   ===================== */
.video-container {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.demo-video {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Demo Layout */
.demo-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.demo-video-side {
    width: 350px;
    flex-shrink: 0;
}

.demo-form-side {
    flex: 1;
    min-width: 280px;
}

.demo-form-side h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.demo-form-side > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .demo-layout {
        flex-direction: column;
    }

    .demo-video-side {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .demo-video-side .video-container {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* =====================
   Catalog - Dynamic Pricing
   ===================== */

/* Campaign Banner */
.campaign-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.campaign-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.campaign-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.campaign-tagline {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.campaign-desc {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.campaign-includes {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.campaign-list {
    margin-top: 0.5rem;
    line-height: 1.8;
}

/* Products Pricing Grid */
.products-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.product-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.product-tagline {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-definition {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-prices {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.price-item:last-child {
    border-bottom: none;
}

.price-name {
    font-size: 0.875rem;
    color: var(--gray-900);
}

.price-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.price-iva-note {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-align: right;
    margin-top: 0.5rem;
    font-style: italic;
}

.price-consult {
    text-align: center;
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .campaign-banner {
        padding: 1.5rem;
    }

    .campaign-content h2 {
        font-size: 1.5rem;
    }

    .products-pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Quoter CTA Section
   ================================ */
.quoter-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.quoter-cta-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.quoter-cta-content p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.quoter-cta-content .check-list {
    margin-bottom: 2rem;
}

.quoter-cta-content .check-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
}

.quoter-cta-content .check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.quoter-cta-preview {
    display: flex;
    justify-content: center;
}

.preview-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    width: 100%;
    max-width: 320px;
    border: 2px solid var(--primary);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.preview-icon {
    font-size: 1.5rem;
}

.preview-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-900);
}

.preview-item span {
    color: var(--primary);
    font-weight: 700;
}

.preview-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .quoter-cta {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .quoter-cta-content {
        text-align: center;
    }

    .quoter-cta-content h2 {
        font-size: 1.5rem;
    }

    .quoter-cta-content .check-list {
        display: inline-block;
        text-align: left;
    }

    .quoter-cta-preview {
        order: -1;
    }

    .preview-card {
        max-width: 100%;
    }
}

/* ================================
   Form Validation v2.0
   ================================ */

/* Error de campo individual */
.field-error {
    display: none;
    color: var(--alert);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    padding-left: 0.25rem;
}

/* Input con error */
.input-error {
    border-color: var(--alert) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

/* Mensaje de error general del formulario */
.form-error-message {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    color: var(--alert);
    font-size: 0.9rem;
}

.form-error-message svg {
    flex-shrink: 0;
}

/* Animación de entrada */
.form-error-message.show,
.field-error.show {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* Success message mejorado */
.form-success {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-in-out;
}

.form-success svg {
    color: var(--accent);
    margin-bottom: 1rem;
}

.form-success h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--gray-600);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================
   New Components for Redesign
   ================================ */

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

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform var(--transition);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 1001;
    padding: 0.5rem 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

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

.nav-dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #212529 !important;
    font-size: 0.9rem;
    background: transparent;
}

.nav-dropdown-menu li a:hover {
    background: #f8f9fa;
    color: #2d5a87 !important;
}

.nav-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem 0;
}

/* Features Grid 3 columns */
.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-icon.icon-primary {
    background: rgba(45, 90, 135, 0.1);
    color: var(--primary);
}

.feature-icon.icon-accent {
    background: rgba(125, 161, 119, 0.1);
    color: var(--accent);
}

.feature-icon.icon-orange {
    background: rgba(194, 112, 58, 0.1);
    color: var(--orange);
}

.feature-card h3 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Features Grid 6 columns (2x3) */
.features-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-mini {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.feature-mini-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--primary);
}

.feature-mini-icon svg {
    width: 24px;
    height: 24px;
}

.feature-mini-icon.icon-alert {
    background: rgba(220, 53, 69, 0.1);
    color: var(--alert);
}

.feature-mini h4 {
    color: var(--gray-900);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-mini p {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin: 0;
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* Demo Cards Large */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.demo-card-large {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--gray-900);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 2px solid transparent;
}

.demo-card-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--gray-900);
}

.demo-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.demo-card-icon svg {
    width: 32px;
    height: 32px;
}

.demo-card-icon.icon-primary {
    background: rgba(45, 90, 135, 0.1);
    color: var(--primary);
}

.demo-card-icon.icon-alert {
    background: rgba(220, 53, 69, 0.1);
    color: var(--alert);
}

.demo-card-icon.icon-accent {
    background: rgba(125, 161, 119, 0.1);
    color: var(--accent);
}

.demo-card-content {
    flex: 1;
}

.demo-card-content h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.demo-card-subtitle {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.demo-card-content p:last-of-type {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.demo-card-cta {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.demo-note-box {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
}

.demo-note-box p {
    margin: 0 0 1rem 0;
    color: var(--gray-600);
}

/* Pricing Plans */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.plan-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    position: relative;
    transition: transform var(--transition);
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-featured {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.plan-featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 1rem;
}

.plan-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.plan-tagline {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.plan-price {
    text-align: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.plan-price .price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.plan-price .price-unit {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.plan-features {
    margin-bottom: 1.5rem;
}

.plan-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.pricing-note-small {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

/* Products Grid 4 columns */
.products-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-mini-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.product-featured {
    border: 2px solid var(--orange);
}

.product-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: var(--white);
    padding: 0.2rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-mini-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--primary);
}

.product-mini-icon svg {
    width: 24px;
    height: 24px;
}

.product-mini-card h4 {
    color: var(--gray-900);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.product-mini-card p {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.product-price {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.product-note {
    display: block;
    color: var(--accent);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.product-link {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Marketplace Preview */
.marketplace-preview {
    margin-top: 2rem;
}

.marketplace-categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.marketplace-cat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.cat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.marketplace-cat h4 {
    color: var(--gray-900);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.marketplace-cat p {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0;
}

.marketplace-cta {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
}

.marketplace-cta p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cta-section .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-section .btn-outline:hover {
    background: var(--white);
    color: var(--accent-dark);
}

/* Responsive for new components */
@media (max-width: 1024px) {
    .products-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }

    .features-grid-3,
    .demos-grid,
    .pricing-plans {
        grid-template-columns: 1fr;
    }

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

    .products-grid-4 {
        grid-template-columns: 1fr;
    }

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

    .plan-featured {
        transform: none;
    }

    .plan-featured:hover {
        transform: translateY(-5px);
    }
}

/* ================================
   Why Amber Section (Nosotros)
   ================================ */
.why-amber-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.why-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.why-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
}

.why-card-icon svg {
    width: 32px;
    height: 32px;
}

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

.why-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

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

/* Mission Quote */
.mission-quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.mission-quote blockquote {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.mission-quote p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* ================================
   Pricing Tables (Precios page)
   ================================ */
.pricing-section {
    margin-bottom: 3rem;
}

.pricing-section-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pricing-table th,
.pricing-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-900);
}

.pricing-table td {
    color: var(--gray-600);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table .price-cell {
    color: var(--primary);
    font-weight: 600;
}

.pricing-table .free-cell {
    color: var(--accent);
    font-weight: 600;
}

/* Demo Hub Styles */
.demo-hub-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.demo-hub-intro p {
    color: var(--gray-600);
}

/* Product Page Styles */
.product-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: calc(var(--space-xl) + 70px) 0 var(--space-lg);
}

.product-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

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

.product-hero-text .product-tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.product-hero-price {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.product-hero-price .price-big {
    font-size: 3rem;
    font-weight: 700;
}

.product-hero-price .price-unit {
    font-size: 1rem;
    opacity: 0.9;
}

.product-demo-section {
    padding: 3rem 0;
    background: var(--gray-100);
}

.demo-iframe-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-top: 1.5rem;
}

.demo-iframe-container iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.product-cta-section {
    padding: 3rem 0;
    text-align: center;
}

.product-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

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

    .product-hero-text h1 {
        font-size: 1.75rem;
    }

    .demo-iframe-container iframe {
        height: 400px;
    }
}

/* ================================
   WCAG AA Accessibility Improvements
   ================================ */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 var(--radius) 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Focus visible for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Buttons focus */
.btn:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(45, 90, 135, 0.2);
}

.btn-primary:focus-visible {
    outline-color: var(--white);
    box-shadow: 0 0 0 4px var(--primary-dark);
}

/* Navigation focus */
.nav-menu a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Cards focus */
.feature-card:focus-within,
.product-card:focus-within,
.demo-card:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Dropdown focus */
.nav-dropdown-menu a:focus-visible {
    background-color: var(--gray-100);
    outline: none;
}

/* High contrast text - ensure 4.5:1 ratio */
.section-subtitle,
.form-privacy,
.feature-card p,
.feature-mini p {
    color: #555555; /* Improved from #6c757d for better contrast */
}

/* Ensure links in paragraphs are distinguishable */
p a,
.content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

p a:hover,
.content a:hover {
    text-decoration-thickness: 2px;
}

/* Focus within for interactive cards */
.pricing-card:focus-within {
    outline: 2px solid var(--primary);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Visible focus for mobile navigation */
.nav-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Ensure sufficient touch target size (44x44px minimum) */
.nav-toggle {
    min-width: 44px;
    min-height: 44px;
}

.btn {
    min-height: 44px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #1a4570;
        --gray-600: #333333;
    }

    .btn {
        border-width: 3px;
    }

    a {
        text-decoration: underline;
    }
}

/* Focus indicator for dropdown toggle */
.nav-dropdown-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Ensure footer links are accessible */
.footer a:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* ================================
   Nuevas secciones - Tarea #232
   ================================ */

/* Beneficios Cuantificables */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.benefit-card {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.benefit-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.benefit-highlight .benefit-number,
.benefit-highlight .benefit-label {
    color: var(--white);
}

.benefit-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.benefit-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.benefit-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.benefit-highlight p {
    color: rgba(255, 255, 255, 0.85);
}

/* Cómo Funciona */
.how-it-works {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.step-card {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: var(--space-md) auto var(--space-sm);
    color: var(--primary);
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
    color: var(--gray-900);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
}

.step-arrow {
    font-size: 2rem;
    color: var(--gray-300);
    align-self: center;
    padding-top: var(--space-lg);
}

.how-it-works-cta {
    text-align: center;
}

.how-it-works-cta p {
    margin-bottom: var(--space-sm);
    color: var(--gray-600);
}

/* Demos Grid 2 columnas */
.demos-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.demo-featured {
    border: 2px solid var(--primary);
    position: relative;
}

.demo-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-features {
    list-style: none;
    padding: 0;
    margin: var(--space-sm) 0 0 0;
    text-align: left;
}

.demo-features li {
    font-size: 0.875rem;
    color: var(--gray-600);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.demo-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* Testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.testimonial-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial-quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-light);
    line-height: 0;
    display: block;
    margin-bottom: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-info strong {
    font-size: 0.9rem;
    color: var(--gray-900);
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
}

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

.trust-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.trust-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: var(--space-xs);
}

/* Separador Visual */
.section-separator {
    padding: var(--space-lg) 0;
    background: var(--gray-100);
}

.separator-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.separator-line {
    flex: 1;
    max-width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

.separator-text {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
    text-align: center;
    padding: 0 var(--space-sm);
}

/* App Gratis Section */
.section-app-gratis {
    background: var(--gray-50);
}

.app-gratis-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.app-gratis-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.app-gratis-cta {
    text-align: center;
    margin-top: var(--space-lg);
}

.app-note {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: var(--space-sm);
}

.app-privacy {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* CTA Phone */
.cta-phone {
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: var(--gray-600);
}

.cta-phone a {
    color: var(--primary);
    font-weight: 600;
}

/* Hero App Note */
.hero-app-note {
    margin-top: var(--space-md);
    font-size: 0.9rem;
}

.hero-app-note a {
    color: var(--primary-light);
}

.hero-app-note a:hover {
    color: var(--white);
}

/* Responsive - Nuevas secciones */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-it-works {
        flex-wrap: wrap;
    }

    .step-arrow {
        display: none;
    }

    .step-card {
        max-width: none;
        flex: 1 1 calc(50% - var(--space-md));
    }

    .demos-grid-2 {
        grid-template-columns: 1fr;
    }

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

    .trust-badges {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
}

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

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

    .step-card {
        flex: 1 1 100%;
    }

    .trust-badges {
        flex-direction: column;
        gap: var(--space-md);
    }

    .separator-line {
        display: none;
    }

    .separator-text {
        font-size: 0.9rem;
    }
}

/* =====================
   Comparison Table
   ===================== */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.comparison-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table thead {
    background: var(--gray-100);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.comparison-table .feature-col {
    text-align: left;
    font-weight: 500;
    color: var(--gray-800);
    width: 25%;
}

.comparison-table .highlight-col {
    background: rgba(45, 90, 135, 0.05);
}

.comparison-table thead .highlight-col {
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.comparison-table tbody tr:hover {
    background: var(--gray-50);
}

.comparison-table tbody tr:hover .highlight-col {
    background: rgba(45, 90, 135, 0.1);
}

/* Comparison Icons */
.compare-yes {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
}

.compare-yes::before {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.compare-no {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.compare-no::before {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--gray-300);
    border-radius: 50%;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: 10px;
    background-position: center;
    background-repeat: no-repeat;
}

.compare-partial {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--orange);
    font-size: 0.85rem;
}

.compare-partial::before {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--orange);
    border-radius: 50%;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
    background-size: 10px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Cost Row */
.comparison-table .cost-row td {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-top: 2px solid var(--gray-200);
}

.cost-high {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--alert);
}

.cost-medium {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--orange);
}

.cost-low {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-600);
}

.cost-amber {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.comparison-table small {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
    margin-top: 0.25rem;
}

.comparison-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 1rem;
    font-style: italic;
}

.comparison-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Comparison Table Mobile */
@media (max-width: 768px) {
    .comparison-table-wrapper {
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .comparison-table .feature-col {
        width: 30%;
        font-size: 0.8rem;
    }

    .compare-yes,
    .compare-no,
    .compare-partial {
        font-size: 0.75rem;
    }

    .compare-yes::before,
    .compare-no::before,
    .compare-partial::before {
        width: 14px;
        height: 14px;
    }

    .cost-high,
    .cost-medium,
    .cost-low,
    .cost-amber {
        font-size: 0.95rem;
    }
}

/* ================================
   Pricing Page - Value Reframe
   ================================ */

/* Minimum Callout */
.minimum-callout {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 0;
}

.callout-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.callout-icon {
    font-size: 1.5rem;
}

.callout-content {
    text-align: left;
}

.callout-content strong {
    font-size: 1.1rem;
}

.callout-content p {
    margin: 0.25rem 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Pricing Section Intro */
.pricing-section-intro {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Pricing Value Cards Grid */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pricing-value-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.pricing-value-card.pvc-featured {
    border: 2px solid var(--primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.pricing-value-card.pvc-hardware {
    border-left: 4px solid var(--orange);
}

.pvc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.pvc-header h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin: 0;
}

.pvc-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    background: var(--gray-100);
    color: var(--gray-600);
    font-weight: 600;
}

.pvc-badge-popular {
    background: var(--primary);
    color: white;
}

.pvc-badge-included {
    background: var(--orange);
    color: white;
}

.pvc-badge-free {
    background: var(--accent);
    color: white;
}

.pvc-price {
    margin-bottom: 0.5rem;
}

.pvc-amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.pvc-unit {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.pvc-daily {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.pvc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    flex: 1;
}

.pvc-features li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.pvc-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.pvc-example {
    font-size: 0.85rem;
    color: var(--gray-600);
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    margin-top: auto;
}

.pvc-comparison {
    font-size: 0.8rem;
    color: var(--primary);
    margin-top: 0.5rem;
    font-weight: 500;
}

.pvc-free-note {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: auto;
    padding: 0.5rem;
    background: rgba(125, 161, 119, 0.1);
    border-radius: var(--radius);
    text-align: center;
}

/* VS Box for comparisons */
.pvc-vs-box {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px dashed var(--gray-300);
}

.pvc-vs-title {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.pvc-vs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pvc-vs-list li {
    font-size: 0.8rem;
    color: var(--gray-500);
    padding: 0.2rem 0;
}

.pvc-vs-total {
    font-size: 0.85rem;
    color: var(--alert);
    font-weight: 600;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Pricing Standalone */
.pricing-standalone {
    margin-top: 1rem;
}

.ps-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
}

.ps-card h4 {
    margin: 0;
    color: var(--gray-900);
}

.ps-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
    flex: 1;
    margin-left: 1rem;
}

.ps-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Hardware Featured Card */
.hardware-featured-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 2px solid var(--orange);
}

.hfc-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.hfc-main {
    padding: 2rem;
}

.hfc-main h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin: 0 0 0.25rem;
}

.hfc-tagline {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.hfc-prices {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hfc-price-item {
    text-align: center;
}

.hfc-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.hfc-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.hfc-note {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.hfc-plus {
    font-size: 1.5rem;
    color: var(--gray-400);
}

.hfc-includes {
    padding: 2rem;
    background: var(--gray-50);
}

.hfc-includes h4 {
    color: var(--primary);
    margin: 0 0 1rem;
    font-size: 1rem;
}

.hfc-includes ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.hfc-includes li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.hfc-includes li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
}

.hfc-comparison {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
    }

    .pricing-value-card.pvc-featured {
        transform: none;
    }

    .hfc-content {
        grid-template-columns: 1fr;
    }

    .ps-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .ps-card p {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .callout-box {
        flex-direction: column;
        text-align: center;
    }

    .hfc-prices {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hfc-plus {
        display: none;
    }
}

/* =====================
   CTA Secondary Style
   ===================== */
.cta-secondary {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-secondary a {
    color: white;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.2s;
}

.cta-secondary a:hover {
    border-bottom-color: white;
}

/* ================================
   Mobile-First Optimizations
   ================================ */

/* Touch-friendly targets (min 44px) */
.btn {
    min-height: 44px;
    min-width: 44px;
}

.btn-lg {
    min-height: 48px;
}

/* Comparison table sticky header */
.comparison-table thead th {
    position: sticky;
    top: 70px; /* header height */
    background: var(--gray-100);
    z-index: 10;
}

@media (max-width: 375px) {
    .comparison-table thead th {
        top: 60px; /* smaller header */
    }
}

/* Mobile 768px improvements */
@media (max-width: 768px) {
    /* Full-width CTAs on mobile */
    .hero-cta .btn,
    .cta-final .btn,
    .section .btn-primary:only-child,
    .section .btn-lg {
        width: 100%;
        max-width: 320px;
    }

    /* Ensure hero is visible without scroll */
    .hero {
        min-height: auto;
        padding: calc(70px + var(--space-lg)) 0 var(--space-lg);
    }

    /* Steps stack vertically on mobile - no arrows */
    .how-it-works {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }

    .step-card {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .step-arrow {
        display: none;
    }

    /* Trust badges horizontal scroll */
    .trust-badges {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: var(--space-sm);
        -webkit-overflow-scrolling: touch;
    }

    /* Better testimonial cards */
    .testimonial-card {
        padding: var(--space-sm);
    }

    .testimonial-quote {
        font-size: 0.9rem;
    }

    /* Pricing cards stack better */
    .pvc-vs-box {
        font-size: 0.85rem;
    }
}

/* Small phones (iPhone SE 320px, older devices) */
@media (max-width: 375px) {
    /* Container padding */
    .container {
        padding: 0 12px;
    }

    /* Hero title smaller */
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .hero-tagline {
        font-size: 0.8rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    /* Section titles smaller */
    .section-title {
        font-size: 1.5rem;
    }

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

    /* Benefits numbers smaller */
    .benefit-number {
        font-size: 2rem;
    }

    .benefit-label {
        font-size: 0.9rem;
    }

    /* Step cards smaller */
    .step-card h3 {
        font-size: 1rem;
    }

    .step-card p {
        font-size: 0.85rem;
    }

    .step-icon svg {
        width: 40px;
        height: 40px;
    }

    /* Table scroll indicator */
    .comparison-table-wrapper::after {
        content: '← Desliza →';
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: var(--gray-500);
        padding: 0.5rem 0;
    }

    /* Testimonial adjustments */
    .testimonial-quote::before {
        font-size: 2rem;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    /* Pricing cards */
    .pricing-value-card {
        padding: 1rem;
    }

    .pvc-price {
        font-size: 1.75rem;
    }

    /* Trust badges smaller */
    .trust-number {
        font-size: 2rem;
    }

    .trust-label {
        font-size: 0.75rem;
    }

    /* Page hero for small screens */
    .page-hero {
        padding: calc(60px + var(--space-md)) 0 var(--space-md);
    }

    /* Hero main for small screens */
    .hero {
        padding: calc(60px + var(--space-md)) 0 var(--space-md);
    }

    .page-hero h1 {
        font-size: 1.35rem;
    }

    .page-hero p {
        font-size: 0.9rem;
    }

    /* Callout box for pricing */
    .callout-icon {
        font-size: 1.25rem;
    }

    .callout-content strong {
        font-size: 0.95rem;
    }

    .callout-content p {
        font-size: 0.8rem;
    }

    /* Nav menu mobile adjustments */
    .nav-menu {
        top: 60px;
    }

    .nav {
        height: 60px;
    }

    .logo-img {
        height: 36px;
    }
}

/* Prevent horizontal scroll globally */
html, body {
    overflow-x: hidden;
}

.container,
section,
.hero,
.section {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure nav dropdown is not clipped by container overflow */
.nav.container {
    overflow: visible;
}

/* Tablet (iPad Mini 768px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Adjust grids for tablet */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    /* Step cards side by side */
    .how-it-works {
        flex-wrap: wrap;
        justify-content: center;
    }

    .step-card {
        flex: 0 0 calc(50% - var(--space-md));
    }

    .step-arrow {
        display: none;
    }
}

/* Landscape phones */
@media (max-width: 812px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(70px + var(--space-sm)) 0 var(--space-sm);
    }

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

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

/* ================================
   Tech Partners / Trust Logos
   ================================ */
.tech-partners {
    padding: 3rem 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.tech-partners-label {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.tech-partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.tech-partners-logos img {
    height: 32px;
    width: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tech-partners-logos img:hover {
    opacity: 1;
}

.tech-partners-captions {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tech-partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 140px;
    text-align: center;
}

.tech-partner-item img {
    height: 32px;
    width: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tech-partner-item:hover img {
    opacity: 1;
}

.tech-partner-item span {
    font-size: 0.75rem;
    color: var(--gray-600);
    line-height: 1.3;
}

@media (max-width: 600px) {
    .tech-partners-logos {
        gap: 1.5rem;
    }
    .tech-partners-logos img {
        height: 26px;
    }
    .tech-partners-captions {
        gap: 1.5rem;
    }
    .tech-partner-item img {
        height: 26px;
    }
}
