/* =========================================================
   SERVIRNET - LANDING PAGE
   ========================================================= */

:root {
    --blue: #087dcc;
    --blue-dark: #073b57;
    --blue-deep: #06354e;
    --blue-soft: #eaf6ff;
    --blue-pale: #f5fbff;
    --text: #123b56;
    --white: #ffffff;
    --whatsapp: #16b858;
    --shadow: 0 18px 45px rgba(7, 59, 87, .12);
    --radius: 28px;
    --container: 1180px;
}

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

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

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

/* ================= HEADER ================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(7, 59, 87, .06);
}

.header-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand img {
    width: 215px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 38px;
}

.main-nav a {
    position: relative;
    padding: 34px 0 27px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color .25s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    height: 3px;
    border-radius: 99px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--blue);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 27px;
    height: 3px;
    margin: 5px 0;
    border-radius: 10px;
    background: var(--blue-dark);
}

/* ================= HERO ================= */

.hero {
    overflow: hidden;
    background: var(--blue-pale);
}

.hero-grid {
    min-height: 610px;
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: stretch;
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: 76px 30px 68px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 16px;
    letter-spacing: .18em;
    font-weight: 500;
}

.hero h1 {
    margin-bottom: 18px;
    font-size: clamp(60px, 6vw, 88px);
    line-height: .93;
    letter-spacing: -.04em;
    color: var(--blue-dark);
}

.hero h1 span {
    display: block;
    font-weight: 300;
}

.hero-text {
    max-width: 460px;
    font-size: 20px;
    line-height: 1.4;
}

.accent-line {
    width: 70px;
    height: 4px;
    margin: 25px 0 30px;
    border-radius: 99px;
    background: var(--blue);
}

.price-card {
    width: min(100%, 470px);
    min-height: 155px;
    padding: 18px 27px;
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.wifi-icon {
    width: 105px;
    flex: 0 0 105px;
    padding-right: 22px;
    border-right: 1px solid rgba(255,255,255,.5);
}

.wifi-icon svg {
    width: 80px;
}

.price-info {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.price-info span {
    font-size: 21px;
    font-weight: 800;
}

.price-info small {
    margin-top: 6px;
    font-size: 16px;
}

.price-info strong {
    margin: 5px 0 7px;
    font-size: clamp(38px, 4vw, 58px);
    letter-spacing: -.04em;
}

.price-info b {
    font-size: 16px;
    letter-spacing: .01em;
}

.hero-photo {
    position: relative;
    min-height: 610px;
    overflow: hidden;
}

.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--blue-pale) 0%, rgba(245,251,255,0) 22%);
    pointer-events: none;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ================= BENEFITS ================= */

.benefits {
    padding: 76px 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.benefit {
    min-height: 180px;
    padding: 0 30px;
    text-align: center;
    border-right: 1px solid #d8e4eb;
}

.benefit:last-child {
    border-right: 0;
}

.benefit-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: var(--blue-soft);
    border-radius: 50%;
}

.benefit-icon svg {
    width: 49px;
    height: 49px;
}

.benefit h2 {
    margin-bottom: 9px;
    font-size: 18px;
}

.benefit p {
    font-size: 16px;
    color: #31566c;
}

/* ================= WHY US ================= */

.why-us {
    position: relative;
    overflow: hidden;
    padding: 88px 0;
    background: var(--blue-soft) url("../img/fondo-servirnet.jpg") center / cover no-repeat;
}

.why-grid {
    min-height: 320px;
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;
}

.why-copy h2 {
    margin-bottom: 18px;
    font-size: clamp(42px, 4.5vw, 62px);
    line-height: .98;
    letter-spacing: -.035em;
}

.why-copy h2 span {
    font-weight: 400;
}

.why-copy > p:not(.eyebrow) {
    max-width: 500px;
    font-size: 19px;
}

.router-visual {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.router {
    position: relative;
    width: 300px;
    height: 155px;
    transform: perspective(500px) rotateX(7deg);
}

.router-body {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 25px;
    height: 95px;
    border-radius: 18px 18px 11px 11px;
    background: linear-gradient(#fdfdfd, #dfe9ef);
    box-shadow: 0 20px 35px rgba(7,59,87,.18);
}

.router-body::after {
    content: "";
    position: absolute;
    left: 35px;
    right: 35px;
    bottom: 20px;
    height: 5px;
    border-radius: 10px;
    background: #b5d4e5;
}

.router-antennas::before,
.router-antennas::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 100px;
    top: -10px;
    background: var(--blue-dark);
    border-radius: 99px;
}

.router-antennas::before {
    left: 67px;
    transform: rotate(-9deg);
}

.router-antennas::after {
    right: 67px;
    transform: rotate(9deg);
}

.router-lights {
    position: absolute;
    z-index: 2;
    left: 90px;
    bottom: 57px;
    width: 120px;
    height: 8px;
    background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 19px);
    opacity: .8;
}

.connected-note {
    position: absolute;
    right: 6%;
    top: 42px;
    color: var(--blue-dark);
    font-size: 27px;
    font-style: italic;
    transform: rotate(-8deg);
}

/* ================= CONTACT ================= */

.contact {
    padding: 52px 0;
    background: linear-gradient(115deg, #eaf8ff, #d9efff);
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.contact-copy .eyebrow {
    margin-bottom: 3px;
}

.contact-copy h2 {
    margin-bottom: 3px;
    font-size: 32px;
    line-height: 1.05;
}

.contact-copy p:last-child {
    font-size: 17px;
}

.whatsapp-btn {
    min-width: 510px;
    padding: 16px 25px;
    display: flex;
    align-items: center;
    gap: 17px;
    text-decoration: none;
    color: var(--white);
    background: var(--whatsapp);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(22,184,88,.22);
    transition: transform .25s ease, box-shadow .25s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 17px 35px rgba(22,184,88,.28);
}

.whatsapp-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

.whatsapp-icon svg {
    width: 100%;
    height: 100%;
}

.whatsapp-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.whatsapp-text small {
    font-size: 14px;
}

.whatsapp-text strong {
    margin-top: 5px;
    font-size: 25px;
}

.whatsapp-action {
    margin-left: auto;
    padding-left: 18px;
    border-left: 1px solid rgba(255,255,255,.45);
    font-weight: 700;
}

.whatsapp-action b {
    margin-left: 8px;
    font-size: 25px;
}

/* ================= FOOTER ================= */

.site-footer {
    color: var(--white);
    background: var(--blue-deep);
}

.footer-grid {
    min-height: 180px;
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1fr;
    align-items: center;
    gap: 30px;
}

.footer-brand img {
    width: 205px;
    filter: brightness(0) invert(1);
    opacity: .98;
}

.footer-address,
.footer-phone {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 17px;
    padding-left: 35px;
    border-left: 1px solid rgba(255,255,255,.25);
}

.footer-icon {
    font-size: 31px;
    color: #4eb4f2;
}

.footer-grid p {
    font-size: 15px;
    line-height: 1.7;
}

.footer-bottom {
    padding: 13px 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.65);
    border-top: 1px solid rgba(255,255,255,.12);
}

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

@media (max-width: 900px) {
    .container {
        width: min(calc(100% - 34px), var(--container));
    }

    .header-inner {
        min-height: 78px;
    }

    .brand img {
        width: 175px;
    }

    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .main-nav {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        padding: 18px 25px 25px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        box-shadow: 0 18px 25px rgba(0,0,0,.08);
        transform: translateY(-150%);
        transition: transform .3s ease;
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav a {
        padding: 14px 0;
        border-bottom: 1px solid #e6eef3;
    }

    .main-nav a::after {
        display: none;
    }

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

    .hero-copy {
        padding: 60px 0 45px;
    }

    .hero-photo {
        min-height: 420px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 45px;
    }

    .benefit:nth-child(2) {
        border-right: 0;
    }

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

    .router-visual {
        margin-top: 20px;
    }

    .contact-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .whatsapp-btn {
        min-width: 0;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding: 45px 0;
        gap: 25px;
    }

    .footer-address,
    .footer-phone {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 600px) {
    html {
        scroll-padding-top: 78px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .hero h1 {
        font-size: 57px;
    }

    .hero-text {
        font-size: 18px;
    }

    .price-card {
        padding: 17px 19px;
        gap: 16px;
    }

    .wifi-icon {
        width: 70px;
        flex-basis: 70px;
        padding-right: 13px;
    }

    .wifi-icon svg {
        width: 55px;
    }

    .price-info span {
        font-size: 16px;
    }

    .price-info small {
        font-size: 13px;
    }

    .price-info strong {
        font-size: 39px;
    }

    .price-info b {
        font-size: 12px;
    }

    .hero-photo {
        min-height: 330px;
    }

    .benefits {
        padding: 55px 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 35px;
    }

    .benefit {
        padding: 0 8px;
        border-right: 0;
    }

    .benefit h2 {
        font-size: 16px;
    }

    .benefit p {
        font-size: 14px;
    }

    .benefit-icon {
        width: 64px;
        height: 64px;
    }

    .benefit-icon svg {
        width: 42px;
        height: 42px;
    }

    .why-us {
        padding: 65px 0 45px;
    }

    .why-copy h2 {
        font-size: 43px;
    }

    .router-visual {
        height: 245px;
    }

    .router {
        transform: scale(.78);
    }

    .connected-note {
        right: 3%;
        top: 15px;
        font-size: 21px;
    }

    .contact {
        padding: 38px 0;
    }

    .whatsapp-btn {
        padding: 13px 16px;
        gap: 11px;
    }

    .whatsapp-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    .whatsapp-text small {
        font-size: 11px;
    }

    .whatsapp-text strong {
        font-size: 21px;
    }

    .whatsapp-action {
        padding-left: 9px;
        font-size: 13px;
    }

    .whatsapp-action b {
        margin-left: 4px;
        font-size: 20px;
    }

    .footer-brand img {
        width: 175px;
    }
}
/* Botón Webmail en la navegación */
.nav-webmail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(8, 125, 204, 0.1);
    color: var(--blue, #087dcc);
    border: 1px solid rgba(8, 125, 204, 0.2);
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-webmail-btn:hover {
    background-color: var(--blue, #087dcc);
    color: #ffffff;
    border-color: var(--blue, #087dcc);
    transform: translateY(-2px);
}

.nav-webmail-btn svg {
    transition: stroke 0.2s ease;
}

/* Enlace Webmail en el Footer */
.footer-webmail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a0aec0;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-webmail-link:hover {
    color: var(--blue, #087dcc);
}