/* ============================================================
   MANGUIREAL - Hoja de Estilos Principal
   Colores: Azul marino #0d1e4a | Azul #1a4fc8 | Cyan #00aaff
   ============================================================ */

/* ── Variables CSS ─────────────────────────────────────────── */
:root {
    --primary:      #0d1e4a;
    --secondary:    #1a4fc8;
    --accent:       #00aaff;
    --dark:         #080f24;
    --light:        #f4f7fc;
    --gray:         #6c757d;
    --white:        #ffffff;
    --text:         #2d3748;
    --border:       #dee2e6;
    --gradient:     linear-gradient(135deg, #0d1e4a 0%, #1a4fc8 60%, #00aaff 100%);
    --gradient-rev: linear-gradient(135deg, #00aaff 0%, #1a4fc8 50%, #0d1e4a 100%);
    --shadow:       0 8px 32px rgba(13, 30, 74, 0.15);
    --shadow-lg:    0 16px 48px rgba(13, 30, 74, 0.25);
    --radius:       12px;
    --radius-lg:    20px;
    --transition:   all 0.35s cubic-bezier(.4,0,.2,1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body:    'Open Sans', sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
::selection { background: var(--secondary); color: var(--white); }

/* ── Top Bar ────────────────────────────────────────────────── */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,.8);
    font-size: .82rem;
    padding: .45rem 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.top-bar .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    font-size: .75rem;
    margin-left: .3rem;
    transition: var(--transition);
}
.top-bar .social-icon:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.main-navbar {
    background: var(--primary) !important;
    padding: .4rem 0;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    z-index: 1030;
}
.main-navbar.scrolled {
    padding: .2rem 0;
    background: rgba(13, 30, 74, .97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.navbar-brand {
    padding: 0;
}
.navbar-logo {
    height: 120px;
    width: auto;
    filter: brightness(1.05) drop-shadow(0 2px 8px rgba(0,170,255,.25));
    transition: var(--transition);
    transform-origin: left center;
}
.main-navbar.scrolled .navbar-logo {
    height: 80px;
}
.navbar-brand:hover .navbar-logo {
    filter: brightness(1.15) drop-shadow(0 4px 14px rgba(0,170,255,.5));
    transform: scale(1.04);
}
.navbar-brand-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--white) !important;
    letter-spacing: .05em;
    text-shadow: 0 2px 10px rgba(0,170,255,.3);
}
.main-navbar .nav-link {
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: rgba(255,255,255,.85) !important;
    padding: .55rem 1.1rem !important;
    border-radius: 6px;
    position: relative;
    transition: var(--transition);
}
.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--white) !important;
}
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.main-navbar .btn-contacto {
    background: var(--secondary) !important;
    color: var(--white) !important;
    border-radius: 30px !important;
    padding: .5rem 1.4rem !important;
    margin-left: .5rem;
    border: 2px solid transparent;
}
.main-navbar .btn-contacto:hover {
    background: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,170,255,.4);
}
.main-navbar .btn-contacto::after { display: none; }

/* ── Hero Slider ────────────────────────────────────────────── */
.hero-swiper {
    height: 580px;
    position: relative;
}
@media (max-width: 768px) { .hero-swiper { height: 420px; } }
@media (max-width: 991px) {
    .navbar-logo { height: 90px; }
    .main-navbar.scrolled .navbar-logo { height: 70px; }
}
@media (max-width: 576px) {
    .navbar-logo { height: 70px; }
    .main-navbar.scrolled .navbar-logo { height: 56px; }
}
.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gradient);
    overflow: hidden;
}
.hero-slide-bg {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,30,74,.82) 0%, rgba(26,79,200,.55) 100%);
    z-index: 1;
}
.hero-slide::before {
    content: '';
    position: absolute; inset: 0;
    background: url('../img/hero-pattern.svg') repeat;
    opacity: .04;
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem 0;
    animation: heroFadeIn .9s ease forwards;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
    display: inline-block;
    background: rgba(0,170,255,.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .15em;
    padding: .35rem .9rem;
    border-radius: 30px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 2rem;
    max-width: 520px;
}
.btn-hero {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: .85rem 2rem;
    border-radius: 50px;
    border: 2px solid transparent;
    box-shadow: 0 6px 24px rgba(0,170,255,.4);
    transition: var(--transition);
}
.btn-hero:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.hero-image-col {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.hero-img {
    max-height: 420px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
    animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.swiper-pagination-bullet { background: rgba(255,255,255,.5); width: 10px; height: 10px; }
.swiper-pagination-bullet-active { background: var(--accent); width: 28px; border-radius: 5px; }

/* ── Sección general ────────────────────────────────────────── */
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 50px 0; }
.section-bg { background: var(--light); }
.section-dark { background: var(--primary); }
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: .5rem;
}
.section-title-white { color: var(--white); }
.section-subtitle {
    font-size: 1rem;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto;
}
.section-subtitle-white { color: rgba(255,255,255,.75); }
.section-line {
    display: block;
    width: 60px; height: 4px;
    background: var(--gradient);
    border-radius: 4px;
    margin: .8rem auto 2rem;
}
.section-line-left { margin-left: 0; }

/* ── Stats Counter ──────────────────────────────────────────── */
.stats-section {
    background: var(--gradient);
    padding: 50px 0;
}
.stat-item {
    text-align: center;
    color: var(--white);
    padding: 1.5rem;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    display: block;
}
.stat-symbol {
    font-size: 2rem;
    font-weight: 900;
}
.stat-label {
    font-size: .9rem;
    color: rgba(255,255,255,.8);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: .5rem;
}
.stat-icon {
    font-size: 2.4rem;
    color: rgba(255,255,255,.3);
    margin-bottom: .8rem;
}

/* ── Tarjetas de producto ────────────────────────────────────── */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    height: 100%;
    border: 1px solid rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26,79,200,.2);
}
.product-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--light);
}
.product-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover .product-card-img img { transform: scale(1.07); }
.product-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: .25rem .7rem;
    border-radius: 20px;
}
.product-card-body {
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-category {
    font-size: .75rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .5rem;
}
.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .6rem;
    line-height: 1.3;
}
.product-desc {
    font-size: .88rem;
    color: var(--gray);
    flex: 1;
    margin-bottom: 1rem;
}
.btn-product {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: .6rem 1.2rem;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: var(--transition);
    align-self: flex-start;
}
.btn-product:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateX(4px);
}

/* ── Categorías ─────────────────────────────────────────────── */
.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    height: 100%;
}
.category-card:hover,
.category-card.active {
    border-color: var(--secondary);
    box-shadow: 0 8px 30px rgba(26,79,200,.2);
    transform: translateY(-5px);
}
.category-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
    color: var(--white);
    transition: var(--transition);
}
.category-card:hover .category-icon { transform: rotate(10deg) scale(1.1); }
.category-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--primary);
}

/* ── Noticias / Blog ─────────────────────────────────────────── */
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    border: 1px solid rgba(0,0,0,.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.news-card-img {
    height: 200px;
    overflow: hidden;
    background: var(--light);
    position: relative;
}
.news-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-date-badge {
    position: absolute;
    bottom: 0; left: 0;
    background: var(--secondary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: .75rem;
    font-weight: 700;
    padding: .35rem .8rem;
    border-radius: 0 var(--radius) 0 0;
}
.news-card-body {
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .7rem;
    line-height: 1.35;
    transition: var(--transition);
}
.news-card:hover .news-card-title { color: var(--secondary); }
.news-card-desc {
    font-size: .88rem;
    color: var(--gray);
    flex: 1;
    margin-bottom: 1rem;
}
.btn-news {
    color: var(--secondary);
    font-weight: 700;
    font-size: .83rem;
    letter-spacing: .05em;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    align-self: flex-start;
}
.btn-news:hover { color: var(--accent); gap: .6rem; }

/* ── Page Hero (banner interno) ─────────────────────────────── */
.page-hero {
    background: var(--gradient);
    padding: 70px 0 50px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url('../img/hero-pattern.svg') repeat;
    opacity: .05;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: .5rem;
}
.page-hero-subtitle { color: rgba(255,255,255,.8); font-size: 1rem; }
.breadcrumb { background: none; padding: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
.breadcrumb-item a { color: rgba(255,255,255,.7); }
.breadcrumb-item a:hover { color: var(--white); }
.breadcrumb-item.active { color: var(--accent); font-weight: 600; }

/* ── Nosotros ────────────────────────────────────────────────── */
.value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    height: 100%;
    border-bottom: 4px solid transparent;
}
.value-card:hover {
    border-bottom-color: var(--secondary);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.value-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.7rem;
    color: var(--white);
}
.value-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.value-desc { font-size: .9rem; color: var(--gray); }

.timeline { position: relative; padding-left: 0; }
.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.timeline-icon {
    width: 52px; height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(26,79,200,.3);
}
.timeline-content h5 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.timeline-content p { font-size: .9rem; color: var(--gray); margin: 0; }

/* ── Formulario de contacto ──────────────────────────────────── */
.contact-section { background: var(--light); }
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}
.contact-info-icon {
    width: 52px; height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    flex-shrink: 0;
}
.contact-info-text h6 { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.contact-info-text p,
.contact-info-text a { font-size: .9rem; color: var(--gray); margin: 0; }
.contact-info-text a:hover { color: var(--secondary); }

.form-control, .form-select {
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: .75rem 1rem;
    font-size: .92rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(26,79,200,.12);
}
.btn-submit {
    background: var(--gradient);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .08em;
    padding: .85rem 2.5rem;
    border-radius: 50px;
    border: none;
    transition: var(--transition);
    cursor: pointer;
}
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26,79,200,.4);
    color: var(--white);
}

/* ── Mapa ────────────────────────────────────────────────────── */
.map-container { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-container iframe { display: block; width: 100%; height: 380px; border: none; }

/* ── Botones generales ───────────────────────────────────────── */
.btn-primary-custom {
    background: var(--secondary);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .83rem;
    letter-spacing: .08em;
    padding: .75rem 1.8rem;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: var(--transition);
    display: inline-block;
}
.btn-primary-custom:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,170,255,.35);
}
.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.5);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .83rem;
    letter-spacing: .08em;
    padding: .75rem 1.8rem;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-block;
}
.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-section {
    background: var(--gradient);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url('../img/hero-pattern.svg') repeat;
    opacity: .05;
}
.cta-content { position: relative; z-index: 2; }
.cta-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: .6rem;
}
.cta-subtitle { color: rgba(255,255,255,.82); margin-bottom: 2rem; }

/* ── Modal detalle producto ─────────────────────────────────── */
.modal-product .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    overflow: hidden;
}
.modal-product .modal-header {
    background: var(--gradient);
    border-bottom: none;
    padding: 1.5rem 2rem;
}
.modal-product .modal-title { color: var(--white); font-weight: 800; }
.modal-product .btn-close { filter: invert(1); }
.modal-product .modal-body { padding: 2rem; }
.modal-product-img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
    max-height: 280px;
    background: var(--light);
}

/* ── Alertas de formulario ───────────────────────────────────── */
.alert-success-custom {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.alert-error-custom {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ── WhatsApp flotante ───────────────────────────────────────── */
.wa-widget {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.whatsapp-float {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 24px rgba(37,211,102,.5);
    transition: var(--transition);
    animation: whatsappPulse 2.5s infinite;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 10px 32px rgba(37,211,102,.6);
    color: var(--white);
}
@keyframes whatsappPulse {
    0%   { box-shadow: 0 6px 24px rgba(37,211,102,.5), 0 0 0 0   rgba(37,211,102,.4); }
    70%  { box-shadow: 0 6px 24px rgba(37,211,102,.5), 0 0 0 14px rgba(37,211,102,0);  }
    100% { box-shadow: 0 6px 24px rgba(37,211,102,.5), 0 0 0 0   rgba(37,211,102,0);  }
}
/* Popup de agentes */
.wa-popup {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,.18);
    min-width: 240px;
    overflow: hidden;
    animation: waFadeIn .2s ease;
}
@keyframes waFadeIn {
    from { opacity:0; transform: translateY(8px); }
    to   { opacity:1; transform: translateY(0);   }
}
.wa-popup-header {
    background: #25D366;
    color: var(--white);
    padding: .65rem 1rem;
    font-size: .88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wa-popup-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .2rem;
    opacity: .8;
    transition: opacity .2s;
}
.wa-popup-close:hover { opacity: 1; }
.wa-popup-body { padding: .5rem; }
.wa-agent {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: background .2s;
}
.wa-agent:hover { background: #f0fdf4; color: var(--text); }
.wa-agent-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.wa-agent-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.wa-agent-info strong { font-size: .9rem; }
.wa-agent-info small  { font-size: .75rem; color: var(--gray); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--dark); }
.footer-top { padding: 60px 0 40px; }
.footer-logo { height: 52px; width: auto; }
.footer-brand { font-family: var(--font-heading); color: var(--white); font-size: 1.8rem; font-weight: 900; }
.footer-desc { color: rgba(255,255,255,.6); font-size: .88rem; line-height: 1.7; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    margin-right: .4rem;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--white); transform: translateY(-3px); }
.footer-title {
    font-family: var(--font-heading);
    font-size: .9rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1.2rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid rgba(0,170,255,.3);
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
    color: rgba(255,255,255,.6);
    font-size: .88rem;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    color: rgba(255,255,255,.6);
    font-size: .88rem;
    margin-bottom: .8rem;
}
.footer-contact li i { color: var(--accent); margin-top: 3px; min-width: 14px; }
.footer-contact a { color: rgba(255,255,255,.6); }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
    background: rgba(0,0,0,.3);
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 1.2rem 0;
}
.footer-bottom p { color: rgba(255,255,255,.5); font-size: .83rem; }
.footer-admin-link {
    color: rgba(255,255,255,.3);
    font-size: .78rem;
    transition: var(--transition);
}
.footer-admin-link:hover { color: var(--accent); }

/* ── Productos - página ──────────────────────────────────────── */
.product-detail-img {
    border-radius: var(--radius-lg);
    width: 100%;
    object-fit: cover;
    max-height: 400px;
    box-shadow: var(--shadow);
    background: var(--light);
}
.product-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}
.product-detail-content { color: var(--text); line-height: 1.8; }
.product-detail-content ul { padding-left: 1.5rem; }
.product-detail-content li { margin-bottom: .4rem; }

/* ── Placeholder imágenes ────────────────────────────────────── */
.img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light) 0%, #dde4f0 100%);
    color: rgba(13,30,74,.25);
    font-size: 3rem;
}

/* ── Scroll top ─────────────────────────────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 100px; right: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(26,79,200,.4);
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--accent); transform: translateY(-3px); color: var(--white); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .main-navbar .nav-link { font-size: .85rem; padding: .6rem .8rem !important; }
    .section-padding { padding: 55px 0; }
    .hero-swiper { height: 460px; }
    .hero-title { font-size: 1.9rem; }
}
@media (max-width: 767.98px) {
    .section-padding { padding: 45px 0; }
    .hero-swiper { height: auto; min-height: 400px; }
    .hero-content { text-align: center; }
    .hero-subtitle { margin: 0 auto 1.5rem; }
    .hero-image-col { display: none; }
    .contact-form-card { padding: 1.5rem; }
    .stat-number { font-size: 2.2rem; }
}
