:root {
    --color-primary: #d92e2e;
    --color-primary-dark: #b82424;
    --color-primary-light: #ff4444;
    --color-primary-glow: rgba(217, 46, 46, 0.15);
    --color-secondary: #0a0a0a;
    --color-accent: #b82424;
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #555555;
    --color-border: #e0e0e0;
    --color-bg-light: #f5f5f5;
    --color-bg-warm: #fafafa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-red: 0 8px 32px rgba(217, 46, 46, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-wrap: balance;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    text-wrap: balance;
    letter-spacing: -0.5px;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
}

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

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

button, a, input, textarea, select {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   IMAGE PLACEHOLDERS - Guia visual
   ======================================== */
.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(217, 46, 46, 0.05) 10px,
        rgba(217, 46, 46, 0.05) 20px
    );
}

.img-placeholder .material-icons {
    font-size: 3rem;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
}

.img-placeholder .placeholder-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.img-placeholder .placeholder-file {
    font-family: 'Source Sans 3', monospace;
    font-size: 0.75rem;
    color: var(--color-primary);
    background: rgba(217, 46, 46, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px dashed rgba(217, 46, 46, 0.3);
    position: relative;
    z-index: 1;
}

.img-placeholder .placeholder-size {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
}

.img-placeholder--avatar {
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
}

.img-placeholder--avatar .material-icons {
    font-size: 1.75rem;
}

.img-placeholder--avatar .placeholder-label {
    font-size: 0.55rem;
    letter-spacing: 1px;
}

/* ========================================
   Particles Canvas
   ======================================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   Accessibility
   ======================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    background: var(--color-primary);
    color: white;
    padding: 12px 24px;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

main {
    position: relative;
    z-index: 1;
}

section[id] {
    scroll-margin-top: 80px;
}

.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(217, 46, 46, 0.15), var(--color-primary), rgba(217, 46, 46, 0.15), transparent);
    margin: 0;
}

/* ========================================
   Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

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

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217, 46, 46, 0.4); }
    50% { box-shadow: 0 0 24px 6px rgba(217, 46, 46, 0.12); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ========================================
   Header & Navigation
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float {
    z-index: 999;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.08);
}

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

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    transition: color 0.3s ease;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--color-primary);
}

header.scrolled .logo {
    color: var(--color-secondary);
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

header.scrolled .nav-links a {
    color: var(--color-text);
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

header.scrolled .nav-links a:hover {
    color: var(--color-primary);
    background: var(--color-primary-glow);
}

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

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

header.scrolled .hamburger span {
    background: var(--color-secondary);
}

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

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

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

/* ========================================
   Hero
   ======================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(10, 10, 10, 0.8) 100%
    );
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 0 24px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(217, 46, 46, 0.15);
    border: 1px solid rgba(217, 46, 46, 0.3);
    border-radius: 100px;
    color: #ff6b6b;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease;
    backdrop-filter: blur(10px);
}

.hero-badge .material-icons {
    font-size: 1rem;
}

.hero h1 {
    animation: fadeInUp 1s ease 0.1s backwards;
    margin-bottom: 20px;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero h1 strong {
    color: var(--color-primary-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s backwards;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
}

.cta-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-red);
}

.cta-button .fab {
    font-size: 1.25rem;
}

.cta-button--outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button--outline::before {
    display: none;
}

.cta-button--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.hero-image-note {
    margin-top: 40px;
    padding: 16px 24px;
    background: rgba(217, 46, 46, 0.1);
    border: 1px dashed rgba(217, 46, 46, 0.4);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-image-note strong {
    color: var(--color-primary-light);
}

/* ========================================
   Section Titles
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--color-primary-glow);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
    color: var(--color-secondary);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ========================================
   Valor / Nosotros Section
   ======================================== */
.valor-section {
    background: var(--color-bg-light);
}

.valor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 72px;
}

.valor-card {
    background: white;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.valor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

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

.valor-card-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.valor-card-icon .material-icons {
    font-size: 1.75rem;
    color: var(--color-primary);
}

.valor-card h3 {
    margin-bottom: 12px;
    color: var(--color-secondary);
    font-size: 1.15rem;
}

.valor-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Stats */
.stats-bar {
    background: var(--color-secondary);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    margin-top: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-primary-light);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ========================================
   Mision Section
   ======================================== */
.mision-section {
    background: white;
}

.mision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.mision-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.mision-image .img-placeholder {
    height: 520px;
}

.mision-text h2 {
    color: var(--color-secondary);
    margin-bottom: 24px;
}

.mision-text h2 span {
    color: var(--color-primary);
}

.mision-text p {
    margin-bottom: 20px;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

/* ========================================
   Motores Section
   ======================================== */
.motores-section {
    background: var(--color-bg-light);
}

.motores-intro {
    max-width: 800px;
    margin: 0 auto 56px;
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.motores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.motor-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.motor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.motor-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.motor-card-body {
    padding: 28px;
}

.motor-card-body h3 {
    color: var(--color-secondary);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.motor-card-body p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.motor-card-body ul {
    list-style: none;
    padding: 0;
}

.motor-card-body ul li {
    padding: 8px 0;
    color: var(--color-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--color-bg-light);
}

.motor-card-body ul li:last-child {
    border-bottom: none;
}

.motor-card-body ul li .material-icons {
    font-size: 1.125rem;
    color: var(--color-primary);
}

/* ========================================
   Productos Section
   ======================================== */
.productos-section {
    background: white;
    position: relative;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.producto-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.producto-image {
    overflow: hidden;
    height: 220px;
    position: relative;
}

.producto-card:hover .img-placeholder {
    background: linear-gradient(135deg, #222, #333, #222);
}

.producto-info {
    padding: 24px;
}

.producto-info h3 {
    margin-bottom: 10px;
    color: var(--color-secondary);
    font-size: 1.15rem;
}

.producto-info p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.producto-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.producto-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.producto-card {
    cursor: pointer;
}

/* ========================================
   Producto Dialog
   ======================================== */
.producto-dialog {
    border: none;
    border-radius: var(--radius-xl);
    padding: 0;
    max-width: 720px;
    width: 92vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: white;
}

.producto-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.producto-dialog[open] {
    animation: dialogIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dialog-inner {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.dialog-close:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.dialog-close .material-icons {
    font-size: 1.25rem;
}

.dialog-image {
    width: 100%;
    height: 280px;
    position: relative;
    flex-shrink: 0;
}

.dialog-image .img-placeholder {
    height: 100%;
}

.dialog-body {
    padding: 32px;
}

.dialog-body h3 {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 16px;
}

.dialog-body > p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.dialog-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.dialog-spec-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.dialog-spec-item .material-icons {
    font-size: 1rem;
    color: var(--color-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.dialog-spec-label {
    font-weight: 700;
    color: var(--color-secondary);
}

.dialog-spec-value {
    color: var(--color-text-light);
}

.dialog-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .dialog-image {
        height: 200px;
    }

    .dialog-body {
        padding: 24px;
    }

    .dialog-specs {
        grid-template-columns: 1fr;
    }
}

.producto-btn .fab {
    font-size: 1rem;
}

/* ========================================
   Galeria Section
   ======================================== */
.galeria-section {
    background: var(--color-bg-light);
}

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

.galeria-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.galeria-item:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.galeria-item img,
.galeria-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-item:hover img,
.galeria-item:hover video {
    transform: scale(1.08);
}

.galeria-placeholder {
    text-align: center;
    padding: 64px;
    color: var(--color-text-light);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.galeria-loading {
    text-align: center;
    padding: 64px;
    color: var(--color-text-light);
    grid-column: 1 / -1;
}

.galeria-supabase-note {
    text-align: center;
    margin-top: 32px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px dashed var(--color-border);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.galeria-supabase-note strong {
    color: var(--color-primary);
}

/* ========================================
   Testimonios Section
   ======================================== */
.testimonios-section {
    background: white;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.testimonio-card {
    background: var(--color-bg-light);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

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

.testimonio-quote {
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}

.testimonio-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.8;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.autor-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.autor-info h4 {
    font-size: 1rem;
    color: var(--color-secondary);
    margin-bottom: 2px;
}

.autor-info p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.rating {
    margin-top: 6px;
    display: flex;
    gap: 2px;
}

.rating .material-icons {
    font-size: 0.875rem;
    color: #fbbf24;
}

/* ========================================
   Contacto Section
   ======================================== */
.contacto-section {
    background: var(--color-bg-light);
}

.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contacto-form-wrapper h3 {
    margin-bottom: 24px;
    color: var(--color-secondary);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

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

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

.submit-btn {
    padding: 14px 40px;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.form-message {
    display: none;
    margin-top: 20px;
    padding: 16px;
    background: #d4edda;
    color: #155724;
    border-radius: var(--radius-sm);
    border: 1px solid #c3e6cb;
}

.form-message.active {
    display: block;
}

.contacto-info h3 {
    margin-bottom: 24px;
    color: var(--color-secondary);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-md);
    transition: box-shadow 0.3s ease;
}

.info-item:hover {
    box-shadow: var(--shadow-md);
}

.info-item .material-icons,
.info-item .fab {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 2px;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--color-secondary);
}

.info-item p,
.info-item a {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.info-item a {
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--color-primary);
}

.map-container {
    margin-top: 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--color-secondary);
    color: white;
    padding: 72px 0 24px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.social-links .fab {
    font-size: 1.15rem;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 4px;
}

/* ========================================
   WhatsApp Float
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
    text-decoration: none;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.5); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.whatsapp-float .fab {
    font-size: 2rem;
    color: white;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: white;
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 8px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
        overscroll-behavior: contain;
    }

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

    .nav-links a {
        color: var(--color-text);
        font-size: 1.1rem;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }

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

    .hamburger {
        display: flex;
    }

    section {
        padding: 72px 0;
    }

    .mision-content,
    .contacto-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .productos-grid,
    .testimonios-grid,
    .motores-grid {
        grid-template-columns: 1fr;
    }

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

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }

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

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

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

    .stats-bar {
        padding: 32px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    #particles-canvas {
        display: none;
    }
}
