/* ============================================================
   WATER WIZARD — CSS Principal
   Diseño: limpio, técnico, premium. Paleta azul profundo.
   Tipografía: Barlow + Barlow Condensed
   ============================================================ */

:root {
    --blue-deep:    #0d2a4a;
    --blue-mid:     #1a4b7a;
    --blue-bright:  #2a7fc1;
    --blue-light:   #5db8e8;
    --blue-pale:    #e8f4fc;
    --blue-ghost:   #f0f8ff;
    --teal:         #1a9e8f;
    --white:        #ffffff;
    --gray-100:     #f7f9fb;
    --gray-200:     #e8edf2;
    --gray-400:     #9baab8;
    --gray-600:     #5a6a78;
    --gray-800:     #2d3c4a;
    --text:         #1c2d3d;
    --shadow-sm:    0 2px 12px rgba(13,42,74,.08);
    --shadow-md:    0 8px 32px rgba(13,42,74,.14);
    --shadow-lg:    0 20px 60px rgba(13,42,74,.22);
    --radius:       12px;
    --radius-lg:    20px;
    --transition:   .3s cubic-bezier(.4,0,.2,1);
    --container:    1240px;
    --font-head:    'Barlow Condensed', sans-serif;
    --font-body:    'Barlow', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- UTILITIES ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.section-tag {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--blue-bright);
    background: rgba(42,127,193,.1);
    padding: .35em 1em;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.section-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    color: var(--blue-deep);
    margin-bottom: 1rem;
}
.section-title span { color: var(--blue-bright); }
.section-sub {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 640px;
    line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    padding: .82rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: .02em;
}
.btn-primary {
    background: var(--blue-bright);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(42,127,193,.35);
}
.btn-primary:hover {
    background: var(--blue-mid);
    box-shadow: 0 6px 28px rgba(42,127,193,.45);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--white);
}
.btn-outline-dark {
    background: transparent;
    color: var(--blue-bright);
    border: 2px solid var(--blue-bright);
}
.btn-outline-dark:hover {
    background: var(--blue-bright);
    color: var(--white);
}

/* ---- HEADER ---- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}
.site-header.scrolled {
    background: rgba(13,42,74,.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    padding: .6rem 0;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.logo-link { flex-shrink: 0; }
.logo-img { height: 44px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .25rem; align-items: center; }
.main-nav a {
    font-weight: 600;
    font-size: .9rem;
    color: rgba(255,255,255,.85);
    padding: .5rem .85rem;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,.1);
}
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: var(--transition);
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.dropdown li a {
    color: var(--text) !important;
    font-size: .88rem;
    padding: .55rem 1rem;
    border-radius: 6px;
    display: block;
    background: transparent !important;
}
.dropdown li a:hover { background: var(--blue-pale) !important; color: var(--blue-mid) !important; }
.btn-header {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .875rem;
    background: var(--blue-bright);
    color: var(--white);
    padding: .65rem 1.4rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: var(--transition);
    letter-spacing: .02em;
}
.btn-header:hover { background: var(--blue-light); transform: translateY(-1px); }
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    margin-left: auto;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13,42,74,.92) 0%,
        rgba(13,42,74,.75) 40%,
        rgba(13,42,74,.4) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 8rem 0 5rem;
    max-width: 700px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--blue-light);
}
.hero h1 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -.01em;
}
.hero h1 span { color: var(--blue-light); }
.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 580px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.5);
    font-size: .75rem;
    font-family: var(--font-head);
    letter-spacing: .12em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- TRUST BAR ---- */
.trust-bar {
    background: var(--blue-deep);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}
.trust-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/water_wizard_back.jpg') center/cover;
    opacity: .06;
}
.trust-bar-inner {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}
.trust-item {}
.trust-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.8rem;
    line-height: 1;
    color: var(--blue-light);
    letter-spacing: -.02em;
}
.trust-label {
    font-size: .85rem;
    color: rgba(255,255,255,.65);
    font-weight: 500;
    margin-top: .3rem;
    line-height: 1.4;
}

/* ---- ABOUT (home) ---- */
.about-home {
    padding: 7rem 0;
    background: var(--white);
}
.about-home-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-home-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.about-home-img img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}
.about-home-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(42,127,193,.2);
}
.about-home-accent {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 120px;
    height: 120px;
    background: var(--blue-bright);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.about-home-accent strong {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
}
.about-home-accent span { font-size: .7rem; opacity: .85; text-align: center; line-height: 1.3; }
.about-home-text .section-sub { margin-bottom: 2rem; }
.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
.pillar {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.pillar-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue-bright);
}
.pillar-icon svg { width: 18px; height: 18px; }
.pillar-text strong {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: var(--blue-deep);
}
.pillar-text span { font-size: .82rem; color: var(--gray-600); }

/* ---- SOLUCIONES ---- */
.solutions-section {
    padding: 7rem 0;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}
.solutions-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-bright), var(--blue-light), var(--teal));
}
.section-header { margin-bottom: 3.5rem; }
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.solution-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}
.solution-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--blue-bright), var(--blue-light));
    opacity: 0;
    transition: var(--transition);
}
.solution-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(42,127,193,.2);
}
.solution-card:hover::before { opacity: 1; }
.solution-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--blue-bright);
    transition: var(--transition);
}
.solution-card:hover .solution-icon {
    background: var(--blue-bright);
    color: var(--white);
}
.solution-icon svg { width: 26px; height: 26px; }
.solution-card h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--blue-deep);
    margin-bottom: .6rem;
}
.solution-card p {
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.solution-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.5rem;
}
.solution-tags span {
    font-size: .75rem;
    font-weight: 600;
    color: var(--blue-bright);
    background: var(--blue-pale);
    padding: .2em .75em;
    border-radius: 50px;
}
.solution-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    font-size: .875rem;
    color: var(--blue-bright);
    transition: var(--transition);
}
.solution-link:hover { gap: .7rem; color: var(--blue-mid); }
.solution-link svg { width: 16px; height: 16px; }

/* ---- COMO TRABAJAMOS ---- */
.how-section {
    padding: 7rem 0;
    background: var(--blue-deep);
    position: relative;
    overflow: hidden;
}
.how-section-bg {
    position: absolute;
    inset: 0;
}
.how-section-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .08;
}
.how-section .section-title { color: var(--white); }
.how-section .section-sub { color: rgba(255,255,255,.65); }
.how-section .section-tag { background: rgba(93,184,232,.15); color: var(--blue-light); }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    margin-top: 3.5rem;
}
.step-card {
    position: relative;
}
.step-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 4rem;
    line-height: 1;
    color: rgba(42,127,193,.2);
    margin-bottom: .5rem;
    letter-spacing: -.02em;
}
.step-card h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: .5rem;
}
.step-card p {
    font-size: .88rem;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
}

/* ---- PROYECTOS ---- */
.projects-section {
    padding: 7rem 0;
    background: var(--white);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}
.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--white);
    border: 1px solid var(--gray-200);
}
.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.project-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.project-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.project-card:hover .project-img img { transform: scale(1.06); }
.project-cat {
    position: absolute;
    top: 1rem; left: 1rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--blue-bright);
    color: var(--white);
    padding: .3em .8em;
    border-radius: 50px;
}
.project-body { padding: 1.5rem; }
.project-loc {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--gray-400);
    margin-bottom: .75rem;
}
.project-loc svg { width: 14px; height: 14px; }
.project-body h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--blue-deep);
    margin-bottom: .5rem;
}
.project-body p {
    font-size: .875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: 1rem;
}
.project-techs span {
    font-size: .72rem;
    font-weight: 600;
    color: var(--teal);
    background: rgba(26,158,143,.1);
    padding: .2em .65em;
    border-radius: 50px;
}
.project-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    font-size: .875rem;
    color: var(--blue-bright);
}
.project-link:hover { gap: .7rem; }
.project-link svg { width: 16px; height: 16px; }

/* ---- TECNOLOGIAS ---- */
.tech-section {
    padding: 7rem 0;
    background: var(--blue-ghost);
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
}
.tech-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.tech-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(42,127,193,.3);
    transform: translateY(-3px);
}
.tech-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.25rem;
}
.tech-card h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--blue-deep);
    margin-bottom: .5rem;
}
.tech-card p {
    font-size: .82rem;
    color: var(--gray-600);
    line-height: 1.55;
}

/* ---- POR QUE WW ---- */
.why-section {
    padding: 7rem 0;
    background: var(--white);
}
.why-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.why-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}
.why-img img { width: 100%; height: 480px; object-fit: cover; }
.why-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.why-item:hover {
    background: var(--blue-pale);
    border-color: rgba(42,127,193,.2);
}
.why-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: .1rem;
}
.why-check svg { width: 14px; height: 14px; color: white; }
.why-item-text strong {
    display: block;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: .2rem;
    font-size: .95rem;
}
.why-item-text span { font-size: .87rem; color: var(--gray-600); }

/* ---- BLOG PREVIEW ---- */
.blog-section {
    padding: 7rem 0;
    background: var(--gray-100);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-cat {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--blue-deep);
    color: var(--white);
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .25em .75em;
    border-radius: 50px;
}
.blog-card-body { padding: 1.5rem; }
.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .78rem;
    color: var(--gray-400);
    margin-bottom: .75rem;
}
.blog-card-body h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--blue-deep);
    margin-bottom: .6rem;
    line-height: 1.3;
}
.blog-card-body p { font-size: .875rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 1.25rem; }
.blog-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    font-size: .875rem;
    color: var(--blue-bright);
}
.blog-link:hover { gap: .7rem; }
.blog-link svg { width: 16px; height: 16px; }

/* ---- FAQS ---- */
.faqs-section { padding: 7rem 0; background: var(--white); }
.faqs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 3.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.open { border-color: rgba(42,127,193,.3); }
.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    font-size: .95rem;
    color: var(--blue-deep);
    background: var(--gray-100);
    transition: var(--transition);
}
.faq-item.open .faq-q { background: var(--blue-pale); color: var(--blue-mid); }
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.65;
}
.faq-item.open .faq-a { max-height: 400px; padding: 1.25rem 1.5rem; }

/* ---- CTA FINAL ---- */
.cta-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-bg {
    position: absolute;
    inset: 0;
}
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,42,74,.95), rgba(26,75,122,.88));
}
.cta-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}
.cta-section .section-title { color: var(--white); }
.cta-section .section-tag { background: rgba(93,184,232,.15); color: var(--blue-light); }
.cta-section .section-sub { color: rgba(255,255,255,.75); margin: 0 auto 2.5rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.site-footer {
    position: relative;
    background: var(--blue-deep);
    color: var(--white);
    overflow: hidden;
}
.footer-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.footer-bg img { width: 100%; height: 100%; object-fit: cover; }
.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,42,74,.96);
}
.footer-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 5rem 2rem 3rem;
}
.footer-logo { height: 56px; width: auto; margin-bottom: 1.5rem; }
.footer-brand p { font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.footer-col h4 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a {
    font-size: .88rem;
    color: rgba(255,255,255,.55);
    transition: var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-contact ul { gap: .85rem; }
.footer-contact li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .88rem;
    color: rgba(255,255,255,.55);
}
.footer-contact li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--blue-light); }
.footer-contact a { color: rgba(255,255,255,.55); }
.footer-contact a:hover { color: var(--white); }
.btn-footer {
    display: inline-flex;
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .875rem;
    background: var(--blue-bright);
    color: var(--white);
    padding: .7rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-footer:hover { background: var(--blue-light); }
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.5rem 2rem;
}
.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-bottom ul { display: flex; gap: 1.5rem; }
.footer-bottom a { font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: rgba(255,255,255,.75); }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---- CONTACTO ---- */
.contact-page { padding: 9rem 0 7rem; background: var(--gray-100); }
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}
.contact-info h2 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2rem;
    color: var(--blue-deep);
    margin-bottom: 1rem;
}
.contact-info p { color: var(--gray-600); margin-bottom: 2rem; line-height: 1.7; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}
.contact-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue-bright);
}
.contact-item-icon svg { width: 20px; height: 20px; }
.contact-item-text strong { display: block; font-weight: 700; color: var(--blue-deep); font-size: .9rem; }
.contact-item-text a, .contact-item-text span { font-size: .88rem; color: var(--gray-600); }
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}
.contact-form-wrap h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--blue-deep);
    margin-bottom: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: .45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .82rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 3px rgba(42,127,193,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--teal);
    font-weight: 600;
}

/* ---- PAGE HERO ---- */
.page-hero {
    padding: 9rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: var(--blue-deep);
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.page-hero h1 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--white);
    margin: .75rem 0 1rem;
    line-height: 1.1;
}
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.7); max-width: 560px; line-height: 1.7; }
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.5); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb svg { width: 12px; height: 12px; }

/* ---- BLOG PAGE ---- */
.blog-page { padding: 5rem 0 7rem; background: var(--gray-100); }
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}
.blog-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}
.sidebar-widget h4 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--blue-deep);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.cat-list { display: flex; flex-direction: column; gap: .5rem; }
.cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .875rem;
    color: var(--gray-600);
    padding: .35rem 0;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}
.cat-list a:hover { color: var(--blue-bright); }

/* ---- POST PAGE ---- */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3.5rem;
    align-items: start;
    padding: 4rem 0 7rem;
}
.post-content h2, .post-content h3 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--blue-deep);
    margin: 2rem 0 1rem;
}
.post-content h2 { font-size: 1.7rem; }
.post-content h3 { font-size: 1.3rem; }
.post-content p { line-height: 1.8; color: var(--gray-800); margin-bottom: 1.25rem; }
.post-content ul, .post-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--gray-800);
    line-height: 1.8;
}
.post-content strong { color: var(--blue-deep); }
.post-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
}

/* ---- PROYECTOS PAGE ---- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 3rem;
}
.filter-btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .85rem;
    padding: .55rem 1.25rem;
    border-radius: 50px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--blue-bright);
    background: var(--blue-bright);
    color: var(--white);
}

/* ---- ALERTS ---- */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: .9rem;
    font-weight: 600;
}
.alert-success { background: rgba(26,158,143,.1); color: var(--teal); border: 1px solid rgba(26,158,143,.2); }
.alert-error { background: rgba(200,30,30,.08); color: #c81e1e; border: 1px solid rgba(200,30,30,.15); }

/* ---- ADMIN ---- */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px;
    background: var(--blue-deep);
    padding: 2rem 0;
    flex-shrink: 0;
}
.admin-sidebar .admin-logo { padding: 0 1.5rem 2rem; }
.admin-sidebar .admin-logo img { height: 40px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.5rem;
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    transition: var(--transition);
}
.admin-nav a:hover, .admin-nav a.active { color: var(--white); background: rgba(255,255,255,.07); }
.admin-nav a svg { width: 18px; height: 18px; }
.admin-content { flex: 1; padding: 2.5rem; background: var(--gray-100); }
.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left;
    padding: .75rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
}
.admin-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--gray-200); font-size: .9rem; color: var(--gray-800); }
.admin-table tr:last-child td { border-bottom: none; }
.badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: .2em .75em;
    border-radius: 50px;
}
.badge-green { background: rgba(26,158,143,.1); color: var(--teal); }
.badge-gray { background: var(--gray-200); color: var(--gray-600); }
.badge-blue { background: var(--blue-pale); color: var(--blue-bright); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .about-home-inner { grid-template-columns: 1fr; }
    .about-home-img { display: none; }
    .why-inner { grid-template-columns: 1fr; }
    .why-img { display: none; }
    .faqs-grid { grid-template-columns: 1fr; }
    .contact-inner { grid-template-columns: 1fr; }
    .blog-layout { grid-template-columns: 1fr; }
    .post-layout { grid-template-columns: 1fr; }
    .post-layout .sidebar-widget:not(:first-of-type) { display: none; }
}

@media (max-width: 768px) {
    .main-nav { 
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(13,42,74,.98);
        padding: 6rem 2rem 2rem;
        z-index: 999;
    }
    .main-nav.open { display: flex; flex-direction: column; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { font-size: 1.1rem; padding: .85rem 0; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
    .dropdown { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; background: transparent; padding: 0; }
    .dropdown li a { color: rgba(255,255,255,.5) !important; padding-left: 1rem; }
    .header-cta { display: none; }
    .menu-toggle { display: flex; }
    .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1rem 2rem; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .projects-grid, .blog-grid { grid-template-columns: 1fr; }
    .solutions-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-main-grid { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr 1fr; }
    .cta-btns { flex-direction: column; align-items: center; }
    .contact-form-wrap { padding: 1.5rem; }
}
