/* ================================================================
   HT INTERNACIONAL — Estilos Compartidos
   ================================================================ */
:root {
    --primary: #046bd2;
    --primary-dark: #045cb4;
    --dark: #1e293b;
    --gray: #334155;
    --light-bg: #F0F5FA;
    --accent: #f59e0b;
    --whatsapp: #25D366;
}

html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--gray);
}

/* ── NAVBAR ── */
.navbar {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    padding: 8px 0;
}
.navbar-brand {
    font-weight: 700;
    color: var(--dark) !important;
}
.navbar-brand img { height: 58px; margin-right: 10px; }
.nav-link {
    color: var(--gray) !important;
    font-weight: 500;
}
.nav-link:hover,
.nav-link.active { color: var(--primary) !important; }
.nav-link.btn-wa-nav {
    background: var(--whatsapp);
    color: white !important;
    border-radius: 20px;
    padding: 6px 16px !important;
    font-size: .85rem;
}
.nav-link.btn-wa-nav:hover {
    background: #1da851;
    color: white !important;
}

/* ── PAGE HEADER ── */
.page-header {
    position: relative;
    background: linear-gradient(135deg, #0a1628, #0f2340);
    color: white;
    padding: 4rem 0 2.5rem;
    text-align: center;
    overflow: hidden;
}
.page-header .header-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .22;
    z-index: 0;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-weight: 800; font-size: 2.2rem; }
.page-header p { opacity: .85; font-size: 1rem; max-width: 550px; margin: .5rem auto 0; }

/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, #0a1628, #0f2340);
    color: white;
    padding: 7rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(4,107,210,.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
}
.hero p { font-size: 1.2rem; opacity: .9; }
.hero-img-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .25;
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

/* ── SECTION TITLES ── */
.section-title { color: var(--dark); font-weight: 700; margin-bottom: .5rem; }
.section-desc {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    color: var(--gray);
    text-align: center;
}

/* ── SERVICE CARDS (con imagen) ── */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    height: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.1); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-card-body { padding: 1.5rem 1.8rem 2rem; }
.service-card h4 { color: var(--primary); font-weight: 700; margin-bottom: .75rem; font-size: 1.15rem; }
.service-card p { font-size: .92rem; color: var(--gray); line-height: 1.7; }

/* ── SERVICE ICON CARDS ── */
.service-icon-card {
    background: white;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: 0 3px 16px rgba(0,0,0,.05);
    text-align: center;
    transition: transform .2s;
}
.service-icon-card:hover { transform: translateY(-4px); }
.service-icon-card .icon-circle {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}
.service-icon-card h5 { color: var(--dark); font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.service-icon-card p { font-size: .85rem; color: var(--gray); line-height: 1.6; }
.service-icon-card img {
    width: 100%; height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: .8rem;
}

/* ── WHY CARDS ── */
.why-card {
    background: white;
    border-radius: 14px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 3px 16px rgba(0,0,0,.05);
    border-left: 4px solid var(--primary);
    transition: transform .2s;
}
.why-card:hover { transform: translateY(-3px); }
.why-card h5 { color: var(--dark); font-weight: 700; font-size: 1rem; }
.why-card p { font-size: .9rem; color: var(--gray); margin-bottom: 0; }

/* ── ABOUT CARDS ── */
.about-card {
    background: white;
    border-radius: 14px;
    padding: 2rem 1.8rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    border-top: 4px solid var(--primary);
}
.about-card h5 { color: var(--primary); font-weight: 700; margin-bottom: .75rem; }
.about-card p { font-size: .92rem; color: var(--gray); line-height: 1.7; }

/* ── FOUNDER CARDS ── */
.founder-card {
    background: white;
    border-radius: 14px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    text-align: center;
}
.founder-card .initials {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 700;
    margin: 0 auto 1rem;
}
.founder-card h5 { color: var(--dark); font-weight: 700; }
.founder-card .role { color: var(--primary); font-size: .85rem; font-weight: 600; }

/* ── CONTACT CARDS ── */
.contact-card {
    background: white;
    border-radius: 14px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.contact-card h5 { color: var(--primary); font-weight: 700; margin-bottom: 1rem; }
.contact-card .big-phone { font-size: 1.3rem; font-weight: 600; color: var(--dark); }
.contact-card p { margin-bottom: .3rem; }

/* ── LOCATION CARD ── */
.location-card {
    background: white;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.location-card h5 { color: var(--dark); font-weight: 700; }

/* ── BUTTONS ── */
.btn-wa {
    background: var(--whatsapp);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s;
    text-decoration: none;
}
.btn-wa:hover { background: #1da851; color: white; }
.btn-primary-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
    text-decoration: none;
}
.btn-primary-outline:hover { background: var(--primary); color: white; }

/* ── CTA SECTION ── */
.cta-section {
    background: linear-gradient(135deg, var(--dark), #0f172a);
    color: white;
    padding: 5rem 0;
    text-align: center;
}
.cta-section h2 { font-weight: 800; }

/* ── FOOTER ── */
.footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 2.5rem 0 2rem;
    text-align: center;
    font-size: .9rem;
}
.footer img { height: 30px; vertical-align: middle; margin-right: 8px; filter: brightness(1.5); }
.footer a { color: #94a3b8; text-decoration: none; }
.footer a:hover { color: white; }

/* ── BADGES ── */
.badge-exp {
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .78rem;
    display: inline-block;
    margin-bottom: 1rem;
}

/* ── PROCESS STEPS ── */
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    margin-bottom: 1rem;
}
.process-num {
    background: var(--primary);
    color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.process-step h5 { font-weight: 700; color: var(--dark); margin-bottom: .3rem; }
.process-step p { font-size: .88rem; color: var(--gray); margin-bottom: 0; }

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

/* ── WHATSAPP FLOAT BUTTON ── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px; height: 56px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(37,211,102,.35);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37,211,102,.45);
    color: white;
}

/* ── BACK TO TOP ── */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 998;
    width: 44px; height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: none;
    align-items: center; justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(4,107,210,.25);
    cursor: pointer;
    border: none;
    transition: opacity .3s;
}
.back-to-top.visible { display: flex; }

/* ── GALLERY GRID (para el home) ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}
.gallery-grid a::after {
    content: '🔍';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
    z-index: 1;
}
.gallery-grid a:hover::after { opacity: .9; }
.gallery-grid a:hover img { transform: scale(1.05); filter: brightness(.7); }
.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform .3s, filter .3s;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* ── GALLERY MORE ── */
.gallery-more { display: contents; }

/* ── GALLERY FILTER BUTTONS ── */
.gallery-filters { margin-bottom: 2rem; }
.filter-btn {
    background: transparent;
    border: 2px solid #cbd5e1;
    color: var(--gray);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.filter-btn:hover { background: var(--light-bg); border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ── APP CARDS (Control desde tu celular) ── */
.app-card img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    transition: transform .3s;
}
.app-card img:hover { transform: scale(1.03); }

/* ── AOS ANIMACIONES ── */
[data-aos] {
    transition-property: transform, opacity;
    transition-duration: .6s;
    transition-timing-function: ease-out;
}
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
}
[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}
[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-20px);
}
[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}
[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(20px);
}
[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}
[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(.95);
}
[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .navbar-brand img { height: 50px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .navbar-brand img { height: 42px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid img { height: 130px; }
    .page-header { padding: 3.5rem 0 2rem; }
    .page-header h1 { font-size: 1.8rem; }
    .hero { padding: 5rem 0 3rem; }
}
