/* ═══════════════════════════════════════════════
   SEGNEC — Propuesta 2: Informal & Accesible
   Paleta: Verde (#10b981) · Naranja (#f97316) · Celeste (#0ea5e9)
   ═══════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
    --green:        #10b981;
    --green-dark:   #059669;
    --green-light:  #d1fae5;
    --orange:       #f97316;
    --orange-dark:  #ea580c;
    --orange-light: #fff7ed;
    --blue:         #0ea5e9;
    --blue-dark:    #0284c7;
    --blue-light:   #e0f2fe;
    --purple:       #8b5cf6;
    --teal:         #14b8a6;
    --red:          #ef4444;

    --text-dark:    #1e293b;
    --text-mid:     #475569;
    --text-light:   #64748b;
    --bg-page:      #f8fafc;
    --bg-white:     #ffffff;
    --border:       #e2e8f0;

    --font:         'Poppins', sans-serif;
    --radius-sm:    12px;
    --radius-md:    20px;
    --radius-lg:    30px;
    --shadow-sm:    0 4px 12px rgba(0,0,0,.06);
    --shadow-md:    0 10px 30px rgba(0,0,0,.08);
    --shadow-lg:    0 20px 50px rgba(0,0,0,.10);
    --transition:   0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg-page);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; outline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--blue); border-radius: 4px; }
ul { list-style: none; }

/* ── Container ── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══ NAVBAR ═══ */
.navbar {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.logo-link { display: flex; align-items: center; }
.logo-img { height: 45px; width: auto; }

.nav-links {
    display: flex;
    gap: 30px;
}
.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
    transition: width var(--transition);
}
.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── Buttons ── */
.btn {
    padding: 11px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    font-family: var(--font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    white-space: nowrap;
    outline-offset: 3px;
}
.btn:focus-visible { outline: 3px solid var(--blue); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn:active { transform: scale(0.97); box-shadow: 0 4px 10px rgba(0,0,0,.10); }

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

.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover { background: var(--orange-dark); }

.btn-whatsapp { background: var(--green); color: white; }
.btn-whatsapp:hover { background: var(--green-dark); }

.btn-large { padding: 16px 36px; font-size: 17px; }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px; /* Bigger touch target */
    border-radius: var(--radius-sm);
}
.mobile-menu-btn:focus-visible { outline: 2px solid var(--blue); }

/* Mobile drawer */
.mobile-menu {
    display: none;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.mobile-menu.open {
    max-height: 500px;
    padding: 16px 0 24px;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; padding: 0 24px; }
.mobile-link {
    display: block;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}
.mobile-link:hover { background: var(--bg-page); color: var(--blue); }
.mobile-link-cta { background: var(--green); color: white !important; margin-top: 8px; text-align: center; }
.mobile-link-cta:hover { background: var(--green-dark) !important; color: white; }

/* ═══ HERO ═══ */
.hero {
    position: relative;
    padding: 110px 0 80px;
    text-align: center;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.80) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: rgba(14,165,233,.10);
    color: var(--blue-dark);
    border: 1.5px solid rgba(14,165,233,.25);
    padding: 7px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}
.hero-title {
    font-size: 62px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 22px;
    animation: fadeInUp 0.7s ease 0.1s both;
    letter-spacing: -1px;
}
.hero-accent { color: var(--orange); }

.hero-subtitle {
    font-size: 20px;
    color: var(--text-mid);
    max-width: 640px;
    margin: 0 auto 44px;
    animation: fadeInUp 0.7s ease 0.2s both;
    font-weight: 400;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease 0.3s both;
}

/* Scroll hint */
.scroll-hint {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    margin-top: 50px;
    animation: bounce 2s infinite;
}

/* ═══ STATS STRIP ═══ */
.stats-strip {
    background: linear-gradient(135deg, var(--blue), var(--green));
    padding: 40px 0;
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}
.stat-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.85;
}

/* ═══ ABOUT ═══ */
.about { padding: 100px 0; background: var(--bg-white); }
.about-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 70px;
    align-items: center;
}
.about-image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.about-shield {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}
.about-card-tag {
    background: var(--orange-light);
    color: var(--orange-dark);
    border: 1.5px solid rgba(249,115,22,.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
}
.section-eyebrow {
    display: block;
    color: var(--orange);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.section-title.left-align { text-align: left; margin-bottom: 20px; font-size: 30px; }
.about-text-col p { color: var(--text-mid); margin-bottom: 16px; font-size: 16px; }
.about-values {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
}
.about-values li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}
.value-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

/* ═══ SERVICES ═══ */
.services { padding: 100px 0; }
.services .section-eyebrow { text-align: center; display: block; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: var(--bg-white);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border-bottom: 4px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}
.color-blue  { border-bottom-color: var(--blue);   }
.color-orange{ border-bottom-color: var(--orange);  }
.color-green { border-bottom-color: var(--green);   }
.color-purple{ border-bottom-color: var(--purple);  }
.color-teal  { border-bottom-color: var(--teal);    }
.color-red   { border-bottom-color: var(--red);     }

.service-card:hover.color-blue   { box-shadow: 0 20px 40px rgba(14,165,233,.18); }
.service-card:hover.color-orange { box-shadow: 0 20px 40px rgba(249,115,22,.18); }
.service-card:hover.color-green  { box-shadow: 0 20px 40px rgba(16,185,129,.18); }
.service-card:hover.color-purple { box-shadow: 0 20px 40px rgba(139,92,246,.18); }
.service-card:hover.color-teal   { box-shadow: 0 20px 40px rgba(20,184,166,.18); }
.service-card:hover.color-red    { box-shadow: 0 20px 40px rgba(239,68,68,.18);  }

.service-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 22px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.color-blue   .icon { background: rgba(14,165,233,.10);  color: var(--blue);   }
.color-orange .icon { background: rgba(249,115,22,.10);  color: var(--orange); }
.color-green  .icon { background: rgba(16,185,129,.10);  color: var(--green);  }
.color-purple .icon { background: rgba(139,92,246,.10);  color: var(--purple); }
.color-teal   .icon { background: rgba(20,184,166,.10);  color: var(--teal);   }
.color-red    .icon { background: rgba(239,68,68,.10);   color: var(--red);    }

.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-light); font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.service-link { font-weight: 700; font-size: 14px; color: var(--orange); transition: gap var(--transition); }
.service-link:hover { text-decoration: underline; }

/* features list inside service card */
.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    text-align: left;
}
.service-features li {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    padding-left: 4px;
}

/* ═══ BLOG ═══ */
.blog { padding: 80px 0; background: var(--bg-white); }
.blog .section-eyebrow { text-align: center; display: block; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}
.blog-card {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.blog-image { width: 100%; height: 210px; object-fit: cover; }
.blog-content { padding: 28px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-category {
    color: var(--orange);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}
.blog-content h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.blog-content p { color: var(--text-light); font-size: 15px; margin-bottom: 20px; flex-grow: 1; }
.read-more { color: var(--blue); font-weight: 700; font-size: 14px; margin-top: auto; display: inline-block; }
.read-more:hover { text-decoration: underline; }

/* ═══ COMING SOON ═══ */
.coming-soon { padding: 100px 0; }
.coming-box {
    background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
    border-radius: var(--radius-lg);
    padding: 2px;
    box-shadow: var(--shadow-lg);
}
.coming-inner {
    background: linear-gradient(135deg, #0c4a6e, #064e3b);
    border-radius: calc(var(--radius-lg) - 2px);
    padding: 60px 50px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.coming-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.coming-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.25);
    color: white;
    padding: 7px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
    position: relative;
}
.coming-inner h2 { font-size: 38px; font-weight: 800; margin-bottom: 16px; position: relative; }
.coming-inner > p { font-size: 18px; opacity: .85; max-width: 600px; margin: 0 auto 36px; position: relative; }
.coming-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}
.coming-feature {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: left;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    max-width: 300px;
    flex: 1;
}
.cf-icon { font-size: 32px; flex-shrink: 0; }
.coming-feature strong { display: block; font-size: 18px; margin-bottom: 6px; }
.coming-feature p { font-size: 14px; opacity: .8; margin: 0; }

/* ═══ CONTACT ═══ */
.contact { padding: 80px 0 100px; }
.contact-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    box-shadow: var(--shadow-lg);
}
.contact-text .section-eyebrow { margin-bottom: 8px; }
.contact-text h2 { font-size: 36px; font-weight: 800; color: var(--green-dark); margin-bottom: 16px; line-height: 1.2; }
.contact-text p { color: var(--text-mid); font-size: 16px; margin-bottom: 30px; line-height: 1.7; }
.contact-info { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}
a.contact-info-item:hover { border-color: var(--blue); }
.ci-icon { font-size: 22px; flex-shrink: 0; }
.contact-info-item strong { display: block; font-size: 13px; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-info-item span { font-size: 15px; font-weight: 600; color: var(--text-dark); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 700; color: var(--text-mid); }
.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    font-family: var(--font);
    font-size: 15px;
    background: var(--bg-page);
    color: var(--text-dark);
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}

/* ═══ FOOTER ═══ */
footer {
    background: var(--text-dark);
    color: #cbd5e1;
    padding: 70px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo-img { height: 45px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-tagline { color: var(--green); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.footer-desc { font-size: 14px; opacity: .7; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col a, .footer-col span {
    display: inline-block;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 10px;
    padding: 4px 0; /* Increase touch target */
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom strong { color: #94a3b8; }

/* ═══ FLOATING WHATSAPP BUTTON ═══ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37,211,102,.45);
    color: white;
    transition: transform var(--transition), box-shadow var(--transition);
    /* Start hidden, show after delay */
    opacity: 0;
    transform: scale(0.8);
    animation: waFadeIn 0.6s ease 1.5s forwards;
}
.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 28px rgba(37,211,102,.55);
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); pointer-events: auto; }

/* Pulse ring */
.wa-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px solid #25d366;
    opacity: 0;
    animation: waPulse 2.5s ease-out 2s infinite;
}

/* Tooltip */
.wa-tooltip {
    position: absolute;
    right: 72px;
    background: #1e293b;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}
.wa-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1e293b;
}
.wa-icon { position: relative; z-index: 1; }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}
@keyframes waFadeIn {
    to { opacity: 1; transform: scale(1); }
}
@keyframes waPulse {
    0%   { transform: scale(1);   opacity: .7; }
    100% { transform: scale(1.7); opacity: 0;  }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-layout { grid-template-columns: 1fr; text-align: center; }
    .about-image-col { flex-direction: row; justify-content: center; }
    .section-title.left-align { text-align: center; }
    .about-values li { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-actions .btn-outline { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-menu { display: block; }

    .hero { min-height: 70vh; padding: 80px 0 60px; }
    .hero-title { font-size: 40px; }
    .hero-subtitle { font-size: 17px; }

    .stats-grid { gap: 30px; }
    .stat-number { font-size: 28px; }

    .section-title { font-size: 28px; }
    .services-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }

    .coming-inner { padding: 40px 28px; }
    .coming-inner h2 { font-size: 26px; }
    .coming-features { flex-direction: column; align-items: center; }

    .contact-box { grid-template-columns: 1fr; padding: 36px 24px; gap: 36px; }
    .contact-text h2 { font-size: 28px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .whatsapp-float { bottom: 20px; right: 20px; width: 54px; height: 54px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-large { width: 100%; max-width: 320px; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { flex-direction: column; gap: 20px; }
}
