/* =============================================
   Guía Comercial de Valle Viejo - Estilos v2
   Diseño Premium & Moderno
   ============================================= */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-50: #eff6ff;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --success: #10b981;
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 10px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.12), 0 8px 16px -6px rgba(0,0,0,0.06);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.2);
    --shadow-primary: 0 8px 25px -5px rgba(37,99,235,0.25);
    --shadow-whatsapp: 0 8px 25px -5px rgba(37,211,102,0.35);

    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--primary);
    color: white;
}

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

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

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

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
    border-bottom-color: var(--border);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
}

.navbar-brand:hover {
    opacity: 0.85;
}

.navbar-brand i {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand small {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.navbar-menu a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

.navbar-menu a:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.navbar-menu a.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

.navbar-menu a i {
    font-size: 0.85rem;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-toggle:hover {
    background: var(--bg);
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}
.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../../img/fondo.webp') center/cover no-repeat;
    padding: 130px 20px 100px;
    overflow: hidden;
    margin-top: 72px;
}

/* Dark overlay sobre la imagen de fondo */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.65) 0%, rgba(15,23,42,0.5) 50%, rgba(30,58,138,0.45) 100%);
    z-index: 1;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.hero-badge i {
    color: var(--accent);
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-content h1 span {
    display: block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-content > p {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 36px;
    font-weight: 300;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Wave Divider */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ========================================
   SEARCH BOX
   ======================================== */
.hero-search,
.search-form-page {
    max-width: 580px;
    margin: 0 auto 44px;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 60px;
    padding: 6px 6px 6px 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.1);
    transition: var(--transition);
}

.search-box:focus-within {
    box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 3px rgba(59,130,246,0.3);
    transform: translateY(-2px);
}

.search-box i.fa-search {
    color: var(--text-muted);
    font-size: 1rem;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 14px;
    font-size: 0.98rem;
    font-family: inherit;
    color: var(--text);
    background: transparent;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: var(--shadow-primary);
}

.search-box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px -5px rgba(37,99,235,0.4);
}

.search-form-page {
    margin-bottom: 30px;
    max-width: 100%;
}

.search-form-page .search-box {
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.search-form-page .search-box:focus-within {
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(37,99,235,0.1);
    border-color: var(--primary);
}

/* ========================================
   HERO STATS
   ======================================== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px 28px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-2px);
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat-item span {
    font-size: 0.78rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: linear-gradient(180deg, var(--bg) 0%, #eef2ff 100%);
}

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

.section-header h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Decorative line under section header */
.section-header::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    margin: 16px auto 0;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    color: white;
    padding: 110px 0 50px;
    margin-top: 72px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
    top: -100px;
    right: -50px;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.page-header h1 i {
    margin-right: 12px;
    opacity: 0.8;
}

.page-header p {
    opacity: 0.8;
    font-size: 1.1rem;
    font-weight: 300;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb a {
    opacity: 0.65;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.6rem;
    opacity: 0.4;
}

.breadcrumb span {
    font-weight: 600;
}

/* ========================================
   RUBROS GRID
   ======================================== */
.rubros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

.rubros-grid-full {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.rubro-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 16px 24px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Top accent line */
.rubro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rubro-color, var(--primary));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.rubro-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.rubro-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--rubro-color, var(--primary)) 10%, transparent);
    margin-bottom: 16px;
    transition: var(--transition-bounce);
}

.rubro-icon i {
    font-size: 1.5rem;
    color: var(--rubro-color, var(--primary));
    transition: var(--transition);
}

.rubro-card:hover .rubro-icon {
    background: var(--rubro-color, var(--primary));
    transform: scale(1.08);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--rubro-color, var(--primary)) 30%, transparent);
}

.rubro-card:hover .rubro-icon i {
    color: white;
    transform: scale(1.1);
}

.rubro-card h3 {
    font-size: 0.92rem;
    font-weight: 650;
    margin-bottom: 6px;
    color: var(--text);
    transition: var(--transition);
}

.rubro-card:hover h3 {
    color: var(--rubro-color, var(--primary));
}

.rubro-desc {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.4;
}

.rubro-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg);
    padding: 3px 12px;
    border-radius: 20px;
}

/* ========================================
   COMERCIOS GRID
   ======================================== */
.comercios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}

.comercio-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.comercio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.comercio-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Decorative gradient overlay on logo area */
.comercio-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--bg-white) 0%, transparent 100%);
    pointer-events: none;
}

.comercio-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.comercio-card:hover .comercio-logo img {
    transform: scale(1.05);
}

.comercio-logo > i {
    font-size: 3rem;
    transition: var(--transition-bounce);
}

.comercio-card:hover .comercio-logo > i {
    transform: scale(1.15);
}

.comercio-info {
    padding: 18px 22px 22px;
    flex: 1;
}

.comercio-rubro {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 20px;
    background: currentColor;
    /* The color is set inline but we need bg with opacity */
}

/* Override with proper background */
.comercio-rubro {
    background: transparent;
}

.comercio-rubro i {
    font-size: 0.65rem;
}

.comercio-info h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.3;
}

.comercio-desc {
    font-size: 0.84rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.55;
}

.comercio-dir,
.comercio-tel {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.comercio-dir i,
.comercio-tel i {
    font-size: 0.72rem;
    width: 16px;
    text-align: center;
    color: var(--primary);
}

.badge-destacado {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(245,158,11,0.35);
    letter-spacing: 0.3px;
    z-index: 2;
}

.badge-destacado.inline {
    position: static;
    display: inline-flex;
    margin-top: 8px;
}

.results-count {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   COMERCIO DETALLE
   ======================================== */
.comercio-detalle {
    max-width: 900px;
    margin: 0 auto;
}

.detalle-header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 32px;
    padding: 28px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.detalle-logo {
    width: 110px;
    height: 110px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detalle-logo img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}

.detalle-titulo h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.detalle-imagen {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.detalle-imagen img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.detalle-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    margin-bottom: 32px;
}

.info-block {
    margin-bottom: 28px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.info-block h3,
.detalle-contacto h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.info-block h3 i,
.detalle-contacto h3 i {
    color: var(--primary);
    font-size: 0.9rem;
}

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

.detalle-contacto {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    height: fit-content;
    box-shadow: var(--shadow);
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

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

.contacto-item i {
    color: var(--primary);
    width: 18px;
    text-align: center;
    margin-top: 3px;
    font-size: 0.9rem;
}

.contacto-item a {
    color: var(--primary);
    transition: var(--transition);
    font-weight: 500;
}

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

.detalle-redes {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.red-social {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition-bounce);
}

.red-social.facebook { background: #1877f2; }
.red-social.instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }

.red-social:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: var(--shadow-md);
}

.detalle-mapa {
    margin-top: 12px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.detalle-mapa h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detalle-mapa h3 i {
    color: var(--primary);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 40px 0 80px;
}

.cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    border-radius: var(--radius-xl);
    padding: 48px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(59,130,246,0.15);
    top: -80px;
    right: -60px;
}

.cta-box::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(245,158,11,0.08);
    bottom: -60px;
    left: -40px;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.cta-content p {
    opacity: 0.8;
    font-size: 1.02rem;
    font-weight: 300;
}

/* ========================================
   NOSOTROS
   ======================================== */
.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.nosotros-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.nosotros-text > p {
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 36px;
    font-size: 1.02rem;
}

.nosotros-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-50));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.feature-icon i {
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature:hover .feature-icon i {
    color: white;
}

.feature h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.55;
}

.nosotros-contacto-box {
    background: linear-gradient(135deg, #0f172a, #1e3a8a, #2563eb);
    border-radius: var(--radius-xl);
    padding: 36px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nosotros-contacto-box::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -80px;
    right: -60px;
}

.nosotros-contacto-box h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.nosotros-contacto-box p {
    opacity: 0.8;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 300;
    position: relative;
}

/* ========================================
   CONTACTO
   ======================================== */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contacto-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacto-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    transition: var(--transition);
}

.contacto-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.contacto-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.whatsapp-bg {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 6px 15px rgba(37,211,102,0.3);
}

.email-bg {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 6px 15px rgba(37,99,235,0.3);
}

.location-bg {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 6px 15px rgba(239,68,68,0.3);
}

.contacto-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
}

.contacto-card p {
    color: var(--text-light);
    font-size: 0.85rem;
    width: 100%;
}

.contacto-cta {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contacto-cta h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--secondary);
    letter-spacing: -0.01em;
}

.contacto-cta > p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.75;
}

.cta-benefits {
    list-style: none;
    margin-bottom: 28px;
}

.cta-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 500;
}

.cta-benefits li i {
    color: var(--success);
    font-size: 1.1rem;
}

/* ========================================
   EMPTY STATE & ALERT
   ======================================== */
.empty-state {
    text-align: center;
    padding: 70px 20px;
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--border);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.empty-state a:not(.btn) {
    color: var(--primary);
    text-decoration: underline;
}

.alert {
    background: #fef2f2;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid #fecaca;
}

.alert a {
    color: #991b1b;
    text-decoration: underline;
    font-weight: 600;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: var(--transition-fast);
}

.btn:hover::after {
    background: rgba(255,255,255,0.1);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    box-shadow: 0 10px 30px -5px rgba(37,99,235,0.4);
    transform: translateY(-2px);
}

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

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

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow: var(--shadow-whatsapp);
}

.btn-whatsapp:hover {
    box-shadow: 0 10px 30px -5px rgba(37,211,102,0.4);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 9px 20px;
    font-size: 0.84rem;
}

.btn-block {
    display: flex;
    width: 100%;
    margin: 14px 0;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col h3 i {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.footer-col p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.75;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-col ul li i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.35);
    font-size: 0.82rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    z-index: 998;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

/* ========================================
   WHATSAPP FLOAT
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition-bounce);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,0.3);
    animation: wa-ring 2s ease-out infinite;
}

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

@keyframes wa-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ========================================
   SCROLL REVEAL ANIMATION
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered delay for grid children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 360ms; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 420ms; }
.reveal-stagger > .reveal:nth-child(9) { transition-delay: 480ms; }
.reveal-stagger > .reveal:nth-child(10) { transition-delay: 540ms; }
.reveal-stagger > .reveal:nth-child(n+11) { transition-delay: 600ms; }

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 24px; }

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

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

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

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

    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 32px;
    }

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

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 12px 20px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-xl);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .navbar-menu a {
        padding: 14px 18px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .hero {
        min-height: auto;
        padding: 105px 20px 80px;
    }

    .hero::after {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-content > p {
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 10px;
    }

    .stat-item {
        padding: 12px 20px;
    }

    .stat-item strong {
        font-size: 1.5rem;
    }

    .hero-wave svg {
        height: 35px;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .page-header {
        padding: 95px 0 35px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .rubros-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .rubro-card {
        padding: 22px 12px 18px;
    }

    .rubro-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .rubro-icon i {
        font-size: 1.2rem;
    }

    .comercios-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .comercio-card {
        flex-direction: row;
    }

    .comercio-logo {
        width: 110px;
        height: auto;
        min-height: 110px;
        flex-shrink: 0;
    }

    .comercio-logo::after {
        display: none;
    }

    .comercio-logo i {
        font-size: 2rem;
    }

    .comercio-info {
        padding: 16px;
    }

    .detalle-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 22px;
    }

    .detalle-titulo h1 {
        font-size: 1.5rem;
    }

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

    .nosotros-features {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 30px 22px;
    }

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

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

    .search-box button {
        padding: 12px 22px;
        font-size: 0.85rem;
    }

    .back-to-top {
        bottom: 92px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

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

    /* Reduce stagger on mobile */
    .reveal-stagger > .reveal { transition-delay: 0ms !important; }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px 16px;
    }

    .stat-item strong {
        font-size: 1.3rem;
    }

    .stat-item span {
        font-size: 0.72rem;
    }

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

    .rubro-card h3 {
        font-size: 0.82rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: var(--radius);
        padding: 8px;
    }

    .search-box i.fa-search {
        display: none;
    }

    .search-box input {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .search-box button {
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-header::after {
        width: 36px;
        height: 3px;
    }
}
