/**
 * ============================================
 * ESTILOS PRINCIPALES DEL SITIO
 * Sistema de repuestos de tractores
 * ============================================
 */

/* ============================================
   RESET Y CONFIGURACIÓN BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --primary-color: #21618C;
    --primary-dark: #2876a9;
    --secondary-color: #308FCF;
    --accent-color: #e74c3c;

    /* Colores de fondo */
    --bg-light: #f8f9fa;
    --bg-dark: #273746;

    /* Colores de texto */
    --text-dark: #333;
    --text-light: #666;
    --text-white: #fff;

    /* Sombras */
    --shadow-sm: 0 2px 4px 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.15);

    /* Transiciones */
    --transition: all 0.3s ease;

    /* Tamaños */
    --header-height: 70px;
    --container-max-width: 1200px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* ============================================
   ENCABEZADO Y NAVEGACIÓN
   ============================================ */
.header {
    background-color: var(--bg-dark);
    color: var(--text-white);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
}

.logo img {
    width: 200px;
    height: 63px;
}

img {
    display: block;
    margin-top: -11px;
    width: 100%;
    height: 100%;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-list a:hover,
.nav-list a.active {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

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

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

/* ============================================
   SECCIÓN HERO
   ============================================ */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/img/img.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

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

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   SECCIÓN DE CARACTERÍSTICAS
   ============================================ */
.features {
    padding: 5rem 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    border-radius: 50%;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   SECCIÓN DE PRODUCTOS
   ============================================ */
.products-showcase {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.products-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.products-showcase .container {
    position: relative;
    z-index: 1;
}

.products-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 50px;
    font-weight: 300;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-item {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    cursor: default;
    border: 2px solid transparent;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.product-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-item:hover .product-icon {
    transform: rotateY(360deg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.product-icon i {
    font-size: 32px;
    color: white;
}

.product-item h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================
   SECCIÓN DE MARCAS
   ============================================ */
.brands {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.brand-item-link {
    text-decoration: none;
    display: block;
}

.brand-item {
    background-color: white;
    padding: 2rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.brand-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.brand-logo {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.2);
    transition: all 0.4s ease;
}

.brand-item:hover .brand-logo {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

@supports not (filter: grayscale(100%)) {
    .brand-logo { opacity: 0.6; }
    .brand-item:hover .brand-logo { opacity: 1; }
}

/* ============================================
   LLAMADO A LA ACCIÓN (CTA)
   ============================================ */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ============================================
   PIE DE PÁGINA
   ============================================ */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    overflow-x: hidden;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.footer-col {
    min-width: 0;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    word-wrap: break-word;
}

.footer-col p {
    line-height: 1.6;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.footer-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-list li i {
    margin-top: 0.2rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.footer-list li span {
    word-break: break-word;
    overflow-wrap: break-word;
}

.footer-list li a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-list li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-credits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.company-info {
    flex: 1;
    min-width: 250px;
}

.company-info p {
    margin: 0.5rem 0;
    opacity: 0.9;
    word-wrap: break-word;
}

.footer-tagline {
    font-size: 0.85rem;
    opacity: 0.7 !important;
}

.developer-credit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.developer-link {
    display: flex;
    align-items: center;
}

.developer-name {
    font-weight: 600;
}

.developer-logo {
    width: 160px;
    height: 35px;
    object-fit: contain;
    margin-top: 5px;
}

/* ============================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 150px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    50%       { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
}

/* ============================================
   MODAL CATÁLOGO DE FAROS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 30, 0.82);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    animation: modalFadeIn 0.3s ease;
}

.modal-overlay.hidden { display: none; }

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

.modal-container {
    background: #0d1b2a;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.65);
    width: 100%;
    max-width: min(900px, 96vw);
    max-height: 96vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.36s cubic-bezier(0.34, 1.5, 0.64, 1);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.modal-image-wrap {
    width: 100%;
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 0;
    line-height: 0;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.modal-body {
    flex: 0 0 auto;
    padding: 0.9rem 1.4rem 1rem;
    background: #0d1b2a;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.modal-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f0a500, #f5c518);
    color: #0d1b2a;
    text-decoration: none;
    padding: 0.72rem 1.8rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(240,165,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240,165,0,0.55);
    color: #0d1b2a;
}

.modal-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: rgba(255,255,255,0.5);
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.modal-btn-secondary:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    background: rgba(0,0,0,0.55);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}

.modal-close:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: scale(1.1) rotate(90deg);
}

/* ============================================
   RESPONSIVE - TABLETS (≤992px)
   ============================================ */
@media (max-width: 992px) {
    .footer {
        padding: 2.5rem 0 1rem;
    }

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

    .footer-col:last-child {
        grid-column: 1 / -1;
    }
}

/* ============================================
   RESPONSIVE - TABLETS (≤768px)
   ============================================ */
@media (max-width: 768px) {
    /* Menú hamburguesa */
    .menu-toggle { display: flex; }

    .nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--bg-dark);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active { max-height: 400px; }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .nav-list li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-list a {
        display: block;
        padding: 1rem 2rem;
    }

    /* Hero */
    .hero { height: 500px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; padding: 1rem 1.5rem; }

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

    /* Productos */
    .products-showcase { padding: 60px 0; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-item { padding: 25px 15px; }
    .product-icon { width: 60px; height: 60px; margin-bottom: 15px; }
    .product-icon i { font-size: 28px; }
    .product-item h4 { font-size: 0.9rem; }
    .products-intro { font-size: 1rem; margin-bottom: 35px; padding: 0 15px; }

    /* Footer */
    .footer { padding: 2rem 0 1rem; margin-top: 3rem; }
    .footer .container { padding: 0 0.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-col { text-align: left; }
    .footer-col h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
    .footer-list li { font-size: 0.9rem; margin-bottom: 0.6rem; }
    .social-links { justify-content: flex-start; }
    .social-links a { width: 38px; height: 38px; font-size: 1.1rem; }
    .footer-bottom { padding-top: 1.5rem; margin-top: 1.5rem; }
    .footer-credits { flex-direction: column; text-align: center; gap: 1rem; }
    .company-info { min-width: 100%; }
    .company-info p { font-size: 0.85rem; }
    .developer-credit { justify-content: center; font-size: 0.85rem; }
    .footer * { word-wrap: break-word; overflow-wrap: break-word; }

    /* Modal */
    .modal-body { padding: 0.75rem 1rem 0.85rem; }
    .modal-actions { gap: 0.5rem; }

}

/* ============================================
   RESPONSIVE - MÓVILES (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; padding: 1rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .section-title { font-size: 1.8rem; }
    .cta-content h2 { font-size: 1.8rem; }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Productos */
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .product-item { padding: 20px 10px; }
    .product-icon { width: 50px; height: 50px; }
    .product-icon i { font-size: 24px; }

    /* Footer */
    .footer { padding: 1.5rem 0 1rem; }
    .footer-grid { gap: 1.5rem; }
    .footer-col h3 { font-size: 1rem; }
    .footer-list li { font-size: 0.85rem; gap: 0.4rem; }
    .footer-list li i { font-size: 0.9rem; }
    .social-links a { width: 35px; height: 35px; font-size: 1rem; }
    .company-info p { font-size: 0.8rem; }
    .footer-tagline { font-size: 0.75rem; }
    .developer-credit { font-size: 0.75rem; }
    .developer-logo { height: 16px; }

    /* Modal */
    .modal-container { border-radius: 12px; }
    .modal-btn-primary  { font-size: 0.88rem; padding: 0.65rem 1.2rem; }
    .modal-btn-secondary { font-size: 0.82rem; padding: 0.62rem 1rem; }
}

/* ============================================
   LISTAS DE PRECIOS
   ============================================ */
.listas-section {
    padding: 5rem 0;
    min-height: calc(100vh - var(--header-height) - 200px);
}

.listas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.lista-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

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

.lista-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.lista-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.lista-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.lista-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lista-meta-item i { color: var(--primary-color); }

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

.no-listas {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.no-listas i {
    font-size: 2rem;
    color: var(--text-light);
}

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

/* ============================================
   PEDIDO
   ============================================ */
.pedido-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group label .required { color: var(--accent-color); }

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 97, 140, 0.1);
}

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

.alert {
    padding: 1rem 1.25rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert i { margin-top: 2px; font-size: 1.1rem; }

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.whatsapp-info {
    background-color: #e8f5e9;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #25D366;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.whatsapp-info-text { flex: 1; min-width: 200px; }
.whatsapp-info-text h3 { color: var(--primary-dark); margin-bottom: 0.25rem; font-size: 1rem; }
.whatsapp-info-text p  { margin: 0; color: var(--text-light); font-size: 0.95rem; }

.btn-whatsapp-direct {
    background-color: #25D366;
    color: white !important;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-whatsapp-direct:hover { background-color: #1ebe5d; }

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

.success-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    text-align: center;
}

.success-actions p { color: var(--text-light); margin: 0; }

.success-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 600px) {
    .form-container { padding: 2rem 1.25rem; }
}

/* ============================================
   CONTACTO
   ============================================ */
.contacto-section {
    padding: 3rem 0;
    background: var(--bg-light);
    overflow-x: hidden;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.info-contacto,
.formulario-contacto {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.info-contacto h3,
.formulario-contacto h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    word-wrap: break-word;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.contacto-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contacto-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contacto-detalles { flex: 1; min-width: 0; }

.contacto-detalles h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    word-wrap: break-word;
}

.contacto-detalles p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contacto-detalles a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    word-break: break-word;
}

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

.redes-sociales {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.red-social {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
    text-decoration: none;
}

.red-social:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.red-social.whatsapp  { background: #25D366; }
.red-social.facebook  { background: #1877f2; }
.red-social.instagram { background: #E4405F; }

.btn-enviar { width: 100%; padding: 1rem; font-size: 1.1rem; }

.mapa-section { padding: 0 1rem; margin-top: 3rem; }

.mapa-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mapa-container iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 992px) {
    .contacto-grid { gap: 2rem; }
    .info-contacto,
    .formulario-contacto { padding: 1.5rem; }
}

@media (max-width: 768px) {
    .contacto-section { padding: 2rem 0; }
    .contacto-grid { grid-template-columns: 1fr; gap: 1.5rem; margin: 2rem auto; }
    .info-contacto h3,
    .formulario-contacto h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
    .contacto-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .contacto-detalles h4 { font-size: 1rem; }
    .contacto-detalles p  { font-size: 0.9rem; }
    .form-control { font-size: 16px; padding: 0.7rem; } /* Previene zoom en iOS */
    textarea.form-control { min-height: 100px; }
    .btn-enviar { padding: 0.9rem; font-size: 1rem; }
    .mapa-section { margin-top: 2rem; }
    .mapa-container { height: 300px; }
    .redes-sociales { justify-content: center; }
    .alert { padding: 0.8rem; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .info-contacto,
    .formulario-contacto { padding: 1.2rem; }
    .contacto-item { gap: 0.8rem; margin-bottom: 1.2rem; padding-bottom: 1.2rem; }
    .contacto-icon { width: 35px; height: 35px; font-size: 1.1rem; }
    .red-social { width: 40px; height: 40px; font-size: 1.2rem; }
    .form-group { margin-bottom: 1.2rem; }
    .mapa-container { height: 250px; border-radius: 8px; }
}

@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea { font-size: 16px !important; }
}

/* ============================================
   HISTORIA
   ============================================ */
.historia-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}

.historia-hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.historia-hero p  { font-size: 1.3rem; opacity: 0.9; max-width: 700px; margin: 0 auto; }

.historia-overlay {
    position: absolute;
    inset: 0;
    background-image: url('../assets/img/jose-genna.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.historia-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.5) 100%);
}

.timeline-section { padding: 5rem 0; background: white; }

.timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item { margin-bottom: 3rem; position: relative; }

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    width: calc(50% - 40px);
    position: relative;
}

.timeline-item:nth-child(odd)  .timeline-content { margin-left: 0; margin-right: auto; }
.timeline-item:nth-child(even) .timeline-content { margin-left: auto; margin-right: 0; }

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    border: 4px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--primary-color);
    z-index: 1;
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.timeline-content h3 { color: var(--primary-dark); margin-bottom: 1rem; font-size: 1.5rem; }
.timeline-content p  { color: var(--text-light); line-height: 1.8; }

.valores-section { padding: 5rem 0; background: var(--bg-light); }

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.valor-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.valor-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.valor-card h3 { color: var(--primary-dark); font-size: 1.5rem; margin-bottom: 1rem; }
.valor-card p  { color: var(--text-light); line-height: 1.8; }

.equipo-section { padding: 5rem 0; background: white; }

.equipo-content { max-width: 800px; margin: 2rem auto; text-align: center; }
.equipo-content p { font-size: 1.2rem; color: var(--text-light); line-height: 1.8; margin-bottom: 1.5rem; }

.stats-destacadas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-destacada { text-align: center; padding: 2rem; }

.stat-numero {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .historia-hero h1 { font-size: 2rem; }
    .historia-hero p  { font-size: 1.1rem; }
    .timeline::before { left: 20px; }
    .timeline-marker  { left: 20px; }
    .timeline-content { width: calc(100% - 60px); margin-left: 60px !important; }
    .stat-numero { font-size: 2.5rem; }
}

/* ============================================
   LOGIN DE CLIENTES
   ============================================ */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 2rem 0;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    animation: fadeInDown 0.5s ease;
}

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

.login-header {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header i   { font-size: 3rem; margin-bottom: 1rem; }
.login-header h1  { font-size: 2rem; margin-bottom: 0.5rem; }
.login-header p   { opacity: 0.9; }
.login-body       { padding: 2rem; }

.input-group { position: relative; }

.input-group .icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.login-container .form-control {
    padding-left: 45px;
    border-radius: 8px;
}

.input-icon-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(33,97,140,0.4); }

.divider { text-align: center; margin: 1.5rem 0; position: relative; }
.divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: #ddd; }
.divider span     { background: white; padding: 0 1rem; position: relative; color: #666; font-size: 0.9rem; }

.registro-link    { text-align: center; }
.registro-link a  { color: var(--primary-color); font-weight: 600; text-decoration: none; transition: var(--transition); }
.registro-link a:hover { color: var(--primary-dark); text-decoration: underline; }

.back-link   { text-align: center; margin-top: 1.5rem; }
.back-link a { color: #666; text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.back-link a:hover { color: var(--primary-color); }

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    transition: var(--transition);
    z-index: 10;
}

.password-toggle:hover { color: var(--primary-color); }

@media (max-width: 480px) {
    .login-header h1 { font-size: 1.5rem; }
    .login-body      { padding: 1.5rem; }
}

/* ============================================
   REGISTRO DE CLIENTES
   ============================================ */
.registro-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 2rem 0;
}

.registro-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 90%;
    margin: 2rem auto;
}

.registro-header {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.registro-header .logo { display: block; }
.registro-header .logo img { width: 90px; height: 70px; }
.registro-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.registro-header p  { opacity: 0.9; font-size: 1.1rem; }

.registro-body { padding: 2rem; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group.full-width { grid-column: 1 / -1; }

.btn-registro {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-registro:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(33,97,140,0.4); }

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.login-link a { color: var(--primary-color); font-weight: 600; text-decoration: none; transition: var(--transition); }
.login-link a:hover { color: var(--primary-dark); text-decoration: underline; }

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
}

.password-strength {
    margin-top: 0.5rem;
    height: 5px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-wrapper { position: relative; }

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .registro-header h1 { font-size: 1.5rem; }
    .registro-body { padding: 1.5rem; }
}