/* =========================================================
   00. VARIABLES / BASE
========================================================= */
:root{
    --brand-primary: #5f7f2a;   /* verde principal del logo (texto) */
    --brand-accent:  #9cc63b;   /* verde claro/acento (ondas) */
    --brand: #6aa84f;
    --page-max: 1180px;
    --page-gutter: 20px;
    --font-base: 16px;
    --font-body: 15px;
    --copy-color: #4b5563;
    --copy-line: 1.6;
    --font-h1: clamp(30px, 3vw, 46px);
    --font-h2: 34px;
    --font-h3: 18px;

    --text: #1f2937;
    --muted: #6b7280;
    --bg: #ffffff;
    --border: #e5e7eb;

    --shadow: 0 10px 25px rgba(0,0,0,.08);
}

*{ box-sizing:border-box; }

html, body{
    margin: 0;
    padding: 0;
    overflow-anchor: auto;
}

body{
    margin:0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

img{
    max-width: 100%;
    height: auto;
}

p,
li,
input,
textarea,
select,
button{
    font-size: var(--font-body);
}

.container{
    width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
    margin: 0 auto;
}

.section,
.biz,
.site-footer,
.hosting-intro,
.hosting-plans,
.domains,
.about-section,
.values-section,
.services-block,
.microserver,
.contact-page{
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

.page-loader{
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #fff;
    display: grid;
    place-content: center;
    gap: 10px;
    justify-items: center;
    transition: opacity .28s ease, visibility .28s ease;
}

.page-loader.is-hidden{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader__spinner{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid rgba(95,127,42,.18);
    border-top-color: var(--brand-primary);
    animation: pageLoaderSpin .8s linear infinite;
}

.page-loader__text{
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    letter-spacing: .2px;
}

.flash{
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: var(--font-body);
    line-height: 1.4;
}

.flash-success{
    background: #eaf6e3;
    border: 1px solid #a6cf90;
    color: #2f4d1d;
}

.flash-error{
    background: #fce8e8;
    border: 1px solid #e2a0a0;
    color: #7a1f1f;
}

/* =========================================================
   01. TOPBAR
========================================================= */
.topbar{
    margin: 0 !important;
    padding: 0 !important;
    border-top: 3px solid var(--brand);
    background: #fff;
    font-size: 13px;
}
.topbar .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 6px 0;
}
.topbar a{
    color: var(--muted);
    text-decoration:none;
}
.topbar a:hover{ color: var(--text); }

.topbar-link-inline{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: color .2s ease;
}

.topbar-icon{
    width: 20px;
    height: 20px;
    border-radius: 999px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid rgba(95,127,42,.22);
    color: #3f4a58;
    box-shadow: 0 1px 2px rgba(17,24,39,.08), inset 0 1px 0 rgba(255,255,255,.7);
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.topbar-svg{
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover:hover) and (pointer:fine){
    .topbar-link-inline:hover .topbar-icon{
        transform: translateY(-1px);
        color: #2f3b49;
        background: linear-gradient(180deg, #ffffff 0%, #e8eef5 100%);
        box-shadow: 0 4px 10px rgba(17,24,39,.14), inset 0 1px 0 rgba(255,255,255,.85);
    }

    .topbar-link-inline:hover .topbar-icon::after{
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: 999px;
        border: 1px solid rgba(95,127,42,.18);
        pointer-events: none;
    }
}

@media (max-width: 576px){
    .topbar{ font-size: 12px; }
    .topbar .container{ padding: 5px 0; }
}

/* =========================================================
   02. HEADER / NAV
========================================================= */
.header{
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

body:not(.header-effects-ready) .header,
body:not(.header-effects-ready) .header *{
    transition: none !important;
    animation: none !important;
}
.header-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 8px 0;
    gap: 18px;
    transition: none;
}
.brand{ display:flex; align-items:center; text-decoration:none; }
.brand-logo{
    height: 52px;
    width: auto;
    display:block;
    transition: none;
}

.header.is-scrolled .header-row{
    padding: 8px 0;
}

.header.is-scrolled .brand-logo{
    height: 52px;
}

html.page-scrolled .header .header-row{
    padding: 8px 0;
}

html.page-scrolled .header .brand-logo{
    height: 52px;
}

/* Toggle */
.nav-toggle{
    display:none;
    border:0;
    background:transparent;
    cursor:pointer;
    padding:8px;
}
.nav-toggle span{
    display:block;
    width:26px;
    height:2px;
    background:#111827;
    margin:6px 0;
}

/* Nav wrapper */
.nav{ display:block; }

.nav-list{
    list-style:none;
    display:flex;
    gap: 22px;
    margin:0;
    padding:0;
    align-items:center;
}

/* Links / Buttons */
.nav-link{
    text-decoration:none;
    color: #6b7280;
    font-size: 15px;
    text-transform: lowercase;
    padding: 20px 6px;
    border-radius: 12px;
    line-height: 1;
    transition: background .2s ease, color .2s ease;
    position:relative;

    /* para button.dropdown-toggle */
    background: transparent;
    border: 0;
    cursor: pointer;
}

.nav-link::before{
    content:'';
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:3px;
    height:0;
    background: var(--brand);
    border-radius:3px;
    transition: height .2s ease;
}

.nav-chevron{
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 8px;
    margin-top: -2px;
    transition: transform .2s ease, color .2s ease;
}

/* Dropdown */
.dropdown{ position:relative; }
.dropdown-toggle{ display:flex; align-items:center; gap:0; }

.dropdown-menu{
    position:absolute;
    top: 120%;
    left: 50%;
    min-width: 200px;
    transform: translateX(-50%) translateY(6px);

    background:#fff;
    border:1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 6px;
    list-style:none;
    margin:0;

    opacity:0;
    visibility:hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.dropdown-link{
    display:block;
    padding:8px 10px;
    border-radius: 8px;
    text-decoration:none;
    color:#374151;
    font-size: 14px;
    position: relative;
}

.dropdown-link::before{
    content:'';
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:4px;
    height:0;
    background: var(--brand);
    border-radius: 4px;
    transition: height .2s ease;
}

/* Separador */
.dropdown-separator{
    height: 1px;
    margin: 8px 10px;
    background: linear-gradient(to right, transparent, var(--brand), transparent);
    opacity: .4;
}

/* Hover SOLO con mouse */
@media (hover:hover) and (pointer:fine){
    .nav-link:hover::before,
    .dropdown:hover > .nav-link::before{ height:70%; }

    .nav-link:hover,
    .dropdown:hover > .nav-link{
        background: #3f3f3f;
        color:#fff;
    }

    .dropdown:hover .dropdown-menu{
        opacity:1;
        visibility:visible;
        transform: translateX(-50%) translateY(0);
    }

    .dropdown:hover > .nav-link .nav-chevron{
        color:#fff;
        transform: rotate(225deg);
    }

    .dropdown-link:hover::before{ height:70%; }
    .dropdown-link:hover{
        background: #3f3f3f;
        color: #fff;
    }
}

/* =========================================================
   03. HERO
========================================================= */
.hero{
    position:relative;
    min-height: 560px;
    display:flex;
    align-items:center;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero--home{
    --hero-image: url('../img/hero-montana.jpg');
}
.hero-overlay{
    position:absolute;
    inset:0;
    background: linear-gradient(
            to bottom,
            rgba(0, 33, 71, .30),
            rgba(0, 33, 71, .35)
    );
}
.hero-content{
    position:relative;
    z-index:1;
    text-align:center;
    color:#fff;
    padding: 60px 0;
}
.hero .hero-content h1{
    font-size: var(--font-h1);
    margin: 0 0 14px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.2;
}
.hero p{
    margin: 0 0 24px;
    font-size: clamp(18px, 2vw, 26px);
    opacity: .9;
}

@media (max-width: 768px){
    .hero .hero-content h1{ font-size: 26px; }
}

/* Buttons */
.btn{
    display:inline-flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap: 2px;
    padding: 14px 26px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.25);
    text-decoration:none;
    font-weight: 800;
}
.btn span{
    font-size: 12px;
    font-weight: 600;
    opacity: .85;
}
.btn-dark{
    background: rgba(0,0,0,.38);
    color:#fff;
}
.btn-dark:hover{ background: rgba(0,0,0,.55); }

/* down arrow */
.hero-cta{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
    min-height: 106px;
}
.hero-down{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color:#fff;
    opacity:.9;
    text-decoration:none;
    width: 26px;
    height: 26px;
    animation: bounce 1.6s infinite;
}
.hero-down:hover{ opacity:1; }

.hero-down-chevron{
    width: 10px;
    height: 10px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

@keyframes pageLoaderSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce){
    *, *::before, *::after{
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Texto rotatorio */
.hero-rotator{
    position: relative;
    height: 1.6em;
    min-height: 1.6em;
    overflow: hidden;
    display: block;
}
.rotating-text{
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .6s ease, transform .6s ease;
}
.rotating-text.active{
    opacity: .9;
    transform: translateY(0);
}

/* =========================================================
   04. SECTION BASE
========================================================= */
.section{
    padding: 70px 0;
    background:#fff;
    margin-bottom: 0;
    padding-bottom: 40px;
}
.section-title{
    text-align:center;
    margin-bottom: 40px;
}
.section-title h2{
    margin:0;
    font-size: var(--font-h2);
    font-weight: 500;
}
.underline{
    width: 80px;
    height: 3px;
    background: var(--brand);
    margin: 14px auto 12px;
}
.section-title p{
    margin:0;
    color: var(--muted);
    font-size: 16px;
}

/* =========================================================
   05. TIC CARDS
========================================================= */
.tic-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items:stretch;
}
.tic-card{
    background: #fff;
    text-align:center;
    padding: 36px 26px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.tic-card-link{
    display: block;
    text-decoration: none;
    color: inherit;
}
.tic-icon{
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
    border-radius: 999px;
    border: 6px solid #e6e6e6;
    display:flex;
    align-items:center;
    justify-content:center;
    color: #6b7280;
    font-size: 44px;
    background: #fafafa;
    transition: color .25s ease, border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.tic-card h3{
    margin: 12px 0 10px;
    font-size: var(--font-h3);
    font-weight: 700;
    color:#111827;
}
.tic-text{
    margin: 12px 0 18px;
    font-size: var(--font-body);
    line-height: var(--copy-line);
    color: var(--copy-color);
}
.mini-underline{
    width: 60px;
    height: 3px;
    background: var(--brand-accent);
    margin: 16px auto 0;
    border-radius: 2px;
    transform: scaleX(0.6);
    transform-origin: center;
    transition: transform .35s ease, background-color .35s ease;
    transition-delay: .05s;
}

/* Hover SOLO con mouse */
@media (hover:hover) and (pointer:fine){
    .tic-card:hover{
        transform: translateY(-6px);
        box-shadow: 0 20px 45px rgba(0,0,0,.14);
    }
    .tic-card:hover .tic-icon{
        color: var(--brand-primary);
        border-color: var(--brand-accent);
        background: rgba(156, 198, 59, 0.15);
    }
    .tic-card:hover h3{ color: var(--brand-primary); }
    .tic-card:hover .mini-underline{
        transform: scaleX(1.2);
        background: var(--brand-primary);
        transition-delay: .12s;
    }
}

/* =========================================================
   06. SECCIÓN: DIGITALIZAMOS NEGOCIOS (biz)
========================================================= */
.biz{
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px;
}
.biz .container{ position: relative; }

.biz-head{
    text-align: center;
    max-width: 860px;
    margin: 0 auto 50px;
}
.biz-head h2{
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 500;
    color: #111827;
    letter-spacing: .2px;
    margin: 0 0 10px;
}
.biz-underline{
    width: 80px;
    height: 3px;
    background: var(--brand);
    margin: 14px auto 12px;
}
.biz-head p{
    margin: 0;
    font-size: 16.5px;
    color: #6b7280;
    line-height: 1.6;
}
.biz-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 36px;
    align-items: start;

    background: rgba(255,255,255,.72);
    border: none;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(0,0,0,.06),
    inset 0 0 0 1px rgba(255,255,255,.55);
    backdrop-filter: blur(6px);
}
.biz-item{
    display: flex;
    gap: 14px;
    padding: 14px 14px;
    border-radius: 14px;
    transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
@media (hover:hover) and (pointer:fine){
    .biz-item:hover{
        background: rgba(156, 198, 59, 0.10);
        transform: translateY(-3px);
        box-shadow: 0 10px 26px rgba(0,0,0,.08);
    }
}
.biz-ico{
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--brand-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    margin-top: 3px;

    box-shadow: 0 10px 20px rgba(156, 198, 59, .25);
    transition: transform .25s ease, background-color .25s ease;
}
@media (hover:hover) and (pointer:fine){
    .biz-item:hover .biz-ico{
        background: var(--brand-primary);
        transform: scale(1.05);
    }
}
.biz-body h3{
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    letter-spacing: .15px;
}
.biz-body p{
    margin: 0;
    color: var(--copy-color);
    line-height: var(--copy-line);
    font-size: var(--font-body);
}

/* =========================================================
   07. WHATSAPP FLOAT + SCROLL TOP
========================================================= */
.whatsapp-float{
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    z-index: 70;
    font-size: 28px;
}
.whatsapp-float:hover{ filter: brightness(.95); }

#scrollTopBtn{
    position: fixed;
    right: 24px;
    bottom: 100px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 16px;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: 999;
}
#scrollTopBtn.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#scrollTopBtn:hover{ background: var(--brand-primary); }

/* =========================================================
   08. FOOTER
========================================================= */
.site-footer{
    color: #d1d5db;
    background: #3f3f3f;
    margin-top: 0;
    padding-top: 20px;
    position: relative;
}
.footer-main{ padding: 20px 0 34px; }

.footer-grid{
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-title{
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    margin: 0 0 14px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
}
.footer-title::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width: 56px;
    height: 3px;
    background: var(--brand-accent, #9cc63b);
    border-radius: 999px;
}
.footer-about{
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #b9c2cf;
}
.footer-list{
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.footer-list li{
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: #b9c2cf;
}
.footer-list i{
    margin-top: 3px;
    color: var(--brand-accent, #9cc63b);
    width: 18px;
    text-align: center;
}
.footer-list a{
    color: inherit;
    text-decoration: none;
}
.footer-list a:hover{
    color: #fff;
    text-decoration: underline;
}

/* Blog mini bloque */
.footer-quote{
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.18);
}
.footer-col .footer-quote:first-of-type{
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}
.footer-quote i{
    color: #e5e7eb;
    opacity: .8;
    font-size: 12px;
    margin-top: 3px;
}
.footer-post-title{
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.footer-post-title:hover{
    color: #fff;
    text-decoration: underline;
}
.footer-post-meta{
    margin-top: 6px;
    font-size: 13px;
    color: #b6c0cf;
    opacity: .9;
}

/* Newsletter */
.footer-form{
    margin-top: 10px;
    display: grid;
    gap: 12px;
}
.footer-form input[type="email"]{
    width: 100%;
    padding: 12px 14px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.06);
    color: #fff;
    outline: none;
}
.footer-form input[type="email"]::placeholder{
    color: rgba(255,255,255,.65);
}
.footer-check{
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: #b9c2cf;
    line-height: 1.4;
}
.footer-check input{
    margin-top: 3px;
    accent-color: var(--brand-accent, #9cc63b);
}
.footer-form-msg{
    margin: -2px 0 2px;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .22s ease, transform .22s ease;
}
.footer-form-msg.is-visible{
    opacity: 1;
    transform: translateY(0);
}
.footer-form-msg--success{
    background: rgba(136, 232, 163, .15);
    border: 1px solid rgba(136, 232, 163, .42);
    color: #c9f7d7;
}
.footer-form-msg--error{
    background: rgba(255, 128, 128, .14);
    border: 1px solid rgba(255, 128, 128, .45);
    color: #ffd3d3;
}
.footer-btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 11px 14px;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    background: var(--brand-primary, #5f7f2a);
    color: #fff;
    font-weight: 700;
    letter-spacing: .2px;
    transition: transform .2s ease, filter .2s ease;
}
.footer-btn:hover{
    transform: translateY(-2px);
    filter: brightness(1.05);
}
.footer-btn:disabled{
    opacity: .7;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* Barra inferior */
.footer-bottom{
    background: #2f2f2f;
    border-top: 1px solid rgba(255,255,255,.10);
    padding: 18px 0;
}
.footer-bottom-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.footer-copy{
    font-size: 13px;
    color: #b9c2cf;
}
.footer-copy a{
    color: #e5e7eb;
    text-decoration: none;
}
.footer-copy a:hover{
    text-decoration: underline;
    color: #fff;
}
.footer-social{
    display: flex;
    gap: 16px;
    align-items: center;
}
.footer-social a{
    color: #cbd5e1;
    text-decoration: none;
    opacity: .9;
    transition: opacity .2s ease, transform .2s ease, color .2s ease;
}
.footer-social a:hover{
    opacity: 1;
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================================
   09. HOSTING / DOMINIO PAGE
========================================================= */
.hosting-hero{
    background: var(--brand-primary);
    color: #fff;
    padding: 24px 0 16px;
}
.hosting-hero__title{
    margin: 0 0 10px;
    font-size: var(--font-h1);
    font-weight: 700;
    letter-spacing: .2px;
}
.hosting-hero__title small{
    font-size: 14px;
    font-weight: 600;
    opacity: .95;
}
.breadcrumb{
    font-size: 13px;
    opacity: .95;
    display:flex;
    flex-wrap:wrap;
    gap: 8px;
    align-items:center;
}
.breadcrumb a{
    color:#fff;
    text-decoration:none;
    opacity:.95;
}
.breadcrumb a:hover{ text-decoration: underline; }
.breadcrumb span{ opacity:.95; }
.breadcrumb-current{ font-weight: 700; }

/* Intro */
.hosting-intro{
    padding: 34px 0 10px;
    background: #fff;
}
.hosting-intro__grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 40px;
    color: var(--copy-color);
    line-height: var(--copy-line);
    font-size: var(--font-body);
}

/* Head Section */
.section-head{
    text-align:center;
    margin: 40px 0 26px;
}
.section-head h2{
    margin:0 0 10px;
    font-size: var(--font-h2);
    font-weight: 500;
    color:#111827;
}
.section-underline{
    width: 110px;
    height: 4px;
    background: var(--brand);
    margin: 0 auto;
    border-radius: 999px;
}

/* Plans */
.hosting-plans{
    padding: 10px 0 5px;
    background:#fff;
}
.plans-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
    margin-top: 18px;
}
.plan-card{
    background:#fff;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0,0,0,.06);
    overflow:hidden;
    position: relative;
    transition: transform .35s ease, box-shadow .35s ease;
    display: flex;
    flex-direction: column;
}
@media (hover:hover) and (pointer:fine){
    .plan-card:hover{
        transform: translateY(-12px);
        box-shadow: 0 28px 65px rgba(0,0,0,.18);
        z-index: 2;
    }
    .plan-card:hover .plan-head{ filter: brightness(1.08); }
    .plan-card:hover .btn-plan{
        background: var(--brand);
        transform: translateY(-2px);
    }
}
.plan-card::before{
    content:'';
    position:absolute;
    top:0; left:0;
    width:100%;
    height:4px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
@media (hover:hover) and (pointer:fine){
    .plan-card:hover::before{ transform: scaleX(1); }
}
.plan-head{
    background: rgba(33, 72, 16, .92);
    color:#fff;
    text-align:center;
    padding: 18px 16px 14px;
}
.plan-head-two{
    background: var(--brand-primary);
    color:#fff;
    text-align:center;
    padding: 1px 16px 14px;
}
.plan-name{
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .6px;
}
.plan-price{
    margin-top: 14px;
    display:flex;
    justify-content:center;
    align-items: baseline;
    gap: 6px;
}
.plan-price .money{
    font-size: 40px;
    font-weight: 300;
}
.plan-price .period{
    font-size: 18px;
    opacity: .95;
    font-weight: 600;
}
.plan-sub{
    margin-top: 10px;
    font-size: var(--font-body);
    opacity: .95;
}
.plan-features{
    list-style:none;
    margin:0;
    padding: 0;
    flex: 1;
}
.plan-features li{
    padding: 16px 16px;
    border-top: 1px solid rgba(17,24,39,.06);
    font-size: var(--font-body);
    color: #374151;
    text-align:center;
}
.plan-cta{
    padding: 18px 16px 22px;
    border-top: 1px solid rgba(17,24,39,.06);
}
.btn-plan{
    display:block;
    width: 100%;
    padding: 14px 16px;
    background: rgba(59, 125, 31, .95);
    color:#fff;
    text-decoration:none;
    text-align:center;
    border-radius: 10px;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}
.btn-plan:hover{
    background: var(--brand);
    transform: translateY(-2px);
}
.plans-note{
    margin: 22px 0 0;
    text-align:center;
    font-size: var(--font-body);
    line-height: var(--copy-line);
    color: var(--copy-color);
}
.plans-note span{
    display: block;
}

/* =========================================================
   10. DOMINIOS
========================================================= */
.section-general{
    padding: 40px 0 70px;
    background: #f3f4f6;
}

.domain-search{
    max-width: 820px;
    margin: 18px auto 30px;
    display: grid;
    grid-template-columns: 1fr 90px 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
    border: 1px solid rgba(17,24,39,.08);
    background: #fff;
}
.domain-input{
    border: none;
    padding: 16px 16px;
    font-size: 15px;
    outline: none;
}
.domain-select{
    border: none;
    border-left: 1px solid rgba(17,24,39,.10);
    padding: 0 12px;
    font-size: var(--font-body);
    outline: none;
    background: #fff;
}
.domain-btn{
    border: none;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
    transition: filter .2s ease;
}
.domain-btn:hover{ filter: brightness(1.05); }
.domain-btn:disabled{
    cursor: not-allowed;
    opacity: .85;
}

.domain-result{
    max-width: 820px;
    margin: 0 auto 10px;
    border-radius: 14px;
    border: 1px solid rgba(17,24,39,.10);
    background: #fff;
    box-shadow: 0 14px 34px rgba(0,0,0,.09);
    padding: 14px 16px 12px;
    position: relative;
    overflow: hidden;
}
.js-domain-result{
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .22s ease, transform .22s ease;
}
.js-domain-result.is-visible{
    opacity: 1;
    transform: translateY(0);
}
.domain-result::before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #9ca3af;
}
.domain-result strong{
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}
.domain-result p{
    margin: 6px 0 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.45;
}
.domain-result__meta{
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
}
.domain-result__meta li{
    font-size: 13px;
    color: #374151;
}
.domain-result__meta span{
    color: #111827;
    font-weight: 700;
}
.domain-result__buy{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #16a34a;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: filter .2s ease, transform .2s ease;
}
@media (hover:hover) and (pointer:fine){
    .domain-result__buy:hover{
        filter: brightness(1.06);
        transform: translateY(-1px);
    }
}
.domain-result--ok{
    border-color: rgba(22,163,74,.42);
    background: #f0fdf4;
}
.domain-result--ok::before{ background: #16a34a; }
.domain-result--ok strong{ color: #166534; }
.domain-result--no{
    border-color: rgba(220,38,38,.32);
    background: #fef2f2;
}
.domain-result--no::before{ background: #dc2626; }
.domain-result--no strong{ color: #991b1b; }
.domain-result--error{
    border-color: rgba(245,158,11,.36);
    background: #fffbeb;
}
.domain-result--error::before{ background: #f59e0b; }
.domain-result--error strong{ color: #92400e; }
.domain-result--info{
    border-color: rgba(14,116,144,.30);
    background: #f0f9ff;
}
.domain-result--info::before{ background: #0e7490; }
.domain-result--info strong{ color: #155e75; }
.domain-result--loading{
    border-color: rgba(37,99,235,.30);
    background: #eff6ff;
}
.domain-result--loading::before{ background: #2563eb; }
.domain-result--loading strong{ color: #1d4ed8; }

/* Grid contenido */
.domains-grid{
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 26px 36px;
    align-items: start;
}
.domains-copy{
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(17,24,39,.06);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(0,0,0,.06);
    backdrop-filter: blur(6px);

    position: relative;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
@media (hover:hover) and (pointer:fine){
    .domains-copy:hover{
        transform: translateY(-10px);
        box-shadow: 0 28px 65px rgba(0,0,0,.14);
        border-color: rgba(22,163,74,.35);
    }
    .domains-copy::before{
        content:'';
        position:absolute;
        left:0;
        top:18px;
        bottom:18px;
        width:4px;
        background: var(--brand);
        border-radius: 3px;
        opacity:0;
        transition: opacity .3s ease;
    }
    .domains-copy:hover::before{ opacity:1; }
}
.domains-copy p{
    margin: 0 0 14px;
    color: var(--copy-color);
    line-height: var(--copy-line);
    font-size: var(--font-body);
}
.domains-copy p:last-child{ margin-bottom: 0; }

/* Tabla/lista */
.domains-card{
    background: #fff;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,.08);

    position: relative;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
@media (hover:hover) and (pointer:fine){
    .domains-card:hover{
        transform: translateY(-10px);
        box-shadow: 0 28px 65px rgba(0,0,0,.16);
        border-color: rgba(22,163,74,.35);
    }
    .domains-card::before{
        content:'';
        position:absolute;
        left:0;
        top:16px;
        bottom:16px;
        width:4px;
        background: var(--brand);
        border-radius: 3px;
        opacity:0;
        transition: opacity .3s ease;
    }
    .domains-card:hover::before{ opacity:1; }
}

.domains-card__head{
    display:flex;
    justify-content: space-between;
    padding: 14px 16px;
    font-weight: 800;
    color: #111827;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(17,24,39,.08);
}
.domains-list{
    list-style: none;
    margin: 0;
    padding: 0;
}
.domains-list li{
    display:flex;
    justify-content: space-between;
    align-items:center;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(17,24,39,.06);
    transition: background .2s ease;
}
.domains-list li:hover{ background: rgba(0,0,0,.04); }
.domains-list .tld{
    font-weight: 700;
    color: #111827;
}
.domains-list .price{
    color: #111827;
    font-weight: 700;
}
.domains-footnote{
    padding: 12px 16px;
    font-size: 12px;
    color: #6b7280;
}

.tld{
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:700;
}
.tld img.flag{
    width:18px;
    height:auto;
    display:block;
}

/* Dominios destacados */
.domain-featured{ margin-top: 40px; }

.section-subtitle{
    position: relative;
    font-size: var(--font-h3);
    font-weight: 700;
    color: #111827;
    margin-bottom: 26px;
    padding-bottom: 12px;
}
.section-subtitle::before{
    content:'';
    position:absolute;
    left:0;
    bottom:0;
    width: 44px;
    height: 3px;
    background: var(--brand);
}
.section-subtitle::after{
    content:'';
    position:absolute;
    left:44px;
    right:0;
    bottom:1px;
    height:1px;
    background: #e5e7eb;
}

.domain-types{
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
}
.domain-types li{
    display:flex;
    align-items:flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--copy-color);
    font-size: var(--font-body);
    line-height: var(--copy-line);
}
.domain-types i{
    color: var(--brand);
    margin-top: 3px;
    font-size: 14px;
}
.domain-types strong{ font-weight: 700; }

/* =========================================================
   11. ANCLAS
========================================================= */
.anchor{ display:block; height: 1px; }
#contacto{ scroll-margin-top: 90px; }
#contactName{ scroll-margin-top: 92px; }

/* =========================================================
   12. RESPONSIVE (UNIFICADO)
========================================================= */
@media (max-width: 980px){

    /* Footer */
    .footer-grid{
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom-inner{
        flex-direction: column;
        align-items: flex-start;
    }

    /* Biz */
    .biz{ padding: 60px 0; }
    .biz-grid{
        grid-template-columns: 1fr;
        padding: 22px;
        gap: 16px;
    }
    .biz-item{ padding: 12px; }
    .biz-head h2{ font-size: 28px; }

    /* Hosting */
    .hosting-intro__grid{
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .plans-grid{ grid-template-columns: 1fr; }
    .hosting-hero{ padding: 20px 0 14px; }

    /* Dominios */
    .domain-search{ grid-template-columns: 1fr; }
    .domain-select{
        border-left: none;
        border-top: 1px solid rgba(17,24,39,.10);
        padding: 14px 16px;
    }
    .domain-btn{ padding: 14px 16px; }
    .domain-result__meta{ grid-template-columns: 1fr; }
    .domains-grid{ grid-template-columns: 1fr; }

    /* Nav */
    .nav-toggle{ display:block; }
    .nav{ display:none; }
    .nav.open{ display:block; }

    .nav-list{
        flex-direction:column;
        align-items:flex-start;
        gap: 0;
        padding: 14px 0;
    }

    /* ✅ FIX: submenu NO rompe responsive */
    .dropdown-menu{
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        left: auto;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border-radius: 10px;
        margin-top: 8px;
        display:none;
        padding: 6px;
    }
    .dropdown.open .dropdown-menu{ display:block; }
    .dropdown.open > .nav-link .nav-chevron{ transform: rotate(225deg); }

    /* TIC */
    .tic-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
    .domain-types{ grid-template-columns: 1fr; }
}


/* =========================================================
   TABLET TOUCH: submenu por click (sin hover)
========================================================= */
@media (hover: none), (pointer: coarse){

    /* Evita que hover dispare el dropdown en tablet */
    .dropdown:hover .dropdown-menu{
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(6px);
    }

    /* El dropdown SOLO se abre con .open */
    .dropdown.open .dropdown-menu{
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    .dropdown.open > .nav-link .nav-chevron{
        transform: rotate(225deg);
    }
}

/* =========================================================
   FIX: WhatsApp NO debe verse ni bloquear cuando el menú está abierto
========================================================= */
body.menu-open .whatsapp-float{
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Por si tu WhatsApp viene con z-index alto */
.whatsapp-float{
    z-index: 70 !important;
}

/* =========================================================
   FIX: En móvil/tablet menú abierto, cada link debe ser bloque
   (evita que cursos y blog queden “juntos”)
========================================================= */
@media (max-width: 980px){
    .nav-list{ width: 100%; }

    .nav-list > li{
        width: 100%;
    }

    .nav-link{
        display: block;      /* ✅ clave */
        width: 100%;
        padding: 14px 12px;  /* más alto */
        line-height: 1.3;    /* ✅ evita pegado */
        white-space: normal; /* por si hay saltos raros */
    }

    .dropdown-toggle{
        display: flex;       /* para mantener icono alineado */
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .dropdown-link{
        display: block;
        padding: 12px 12px;
        line-height: 1.3;
    }
}
/* Ocultar botones flotantes cuando el menú está abierto (solo móvil) */
@media (max-width: 980px){
    #scrollTopBtn{
        bottom: 100px !important;
    }

    body.menu-open .whatsapp-float,
    body.menu-open #scrollTopBtn{
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* =========================================================
   FIX: evitar “cortes” / highlight al tocar botones (mobile)
========================================================= */
#scrollTopBtn,
.whatsapp-float{
    -webkit-tap-highlight-color: transparent; /* Android / Chrome */
    outline: none;                            /* foco visual */
    box-shadow: none;                         /* evita halo */
}

/* Evita cambios raros al mantener presionado */
#scrollTopBtn:focus,
#scrollTopBtn:active{
    transform: scale(0.95);
}

.whatsapp-float:focus,
.whatsapp-float:active{
    transform: translateY(-50%) scale(0.95);
}

/* Quita resaltado celeste al interactuar (touch/mouse) */
a,
button,
input,
textarea,
select,
label,
[role="button"]{
    -webkit-tap-highlight-color: transparent;
}

/*

microserver
 */


.jvcbox-hero{ padding: 1px 0 0 0;}
.jvcbox-hero__wrap{
    display:grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 24px;
    align-items:center;
    width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
    margin: 0 auto;
}
.jvcbox-hero__media img{
    width:100%;
    height:auto;
    display:block;
}
.jvcbox-hero__card{
    background:#f3f3f3;
    padding: 28px 26px;
    border-radius: 6px;
    text-align:center;
}
.jvcbox-hero__card p{
    margin: 0 0 18px;
    line-height: 1.6;
    font-size: var(--font-body);
}
.jvcbox-hero__btn{
    display:inline-block;
    padding: 10px 22px;
    background:#2f6b1f;
    color:#fff;
    border-radius: 2px;
    text-decoration:none;
    font-weight:600;
}
.jvcbox-hero__btn:hover{ filter: brightness(.95); }

@media (max-width: 900px){
    .jvcbox-hero__wrap{ grid-template-columns: 1fr; }
    .jvcbox-hero__card{ text-align:left; }
}

/*microserve parte del medio*/

.microserver{
    padding: 1px 0;
    text-align: center;
}

.microserver__header h2{
    font-size: var(--font-h2);
    font-weight: 500;
    margin-bottom: 10px;
}

.microserver__header p{
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 60px;
}

.microserver__features{
    width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.microserver__item{
    padding: 10px 20px;
}

.microserver__icon{
    font-size: 52px;
    color: #4f7f28; /* Verde JVC */
    margin-bottom: 22px;
}

.microserver__item h3{
    font-size: var(--font-h3);
    font-weight: 500;
    margin-bottom: 12px;
}

.microserver__item p{
    font-size: var(--font-body);
    line-height: var(--copy-line);
    color: var(--copy-color);
}

/* Responsive */
@media (max-width: 900px){
    .microserver__features{
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================
   MICROSERVER – EFECTOS
========================= */

/* Estado base */
.microserver__item{
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        background-color .35s ease;
    border-radius: 16px;
}

/* Solo dispositivos con mouse */
@media (hover: hover) and (pointer: fine){

    .microserver__item:hover{
        transform: translateY(-10px);
        background: #ffffff;
        box-shadow: 0 22px 50px rgba(0,0,0,.08);
    }

    .microserver__item:hover .microserver__icon{
        transform: scale(1.12);
        color: #3b6a1e;
    }

    .microserver__item:hover h3{
        color: #3b6a1e;
    }
}

/* =========================
   HAMBURGUESA – LIMPIAR FONDOS MOBILE
========================= */

#navToggle,
#navToggle:focus,
#navToggle:active{
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border: none;
}

/* Quita el fondo celeste en móviles (Android / Chrome) */
#navToggle{
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

/* Si la hamburguesa es un <a> */
#navToggle:focus-visible{
    outline: none;
}


/* =========================
   NOSOTROS
========================= */
.about-section{
    padding: 50px 0;
}

.about-wrap{
    width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: center;
}

.about-section--top .about-wrap{
    align-items: flex-start;
}

.about-copy p{
    margin: 0 0 18px;
    color: var(--copy-color);
    line-height: var(--copy-line);
    font-size: var(--font-body);
}

.about-copy{
    padding-left: 0;
}
.about-copy strong{
    font-weight: 700;
}

/* Ícono grande a la derecha */
.about-visual{
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-visual i{
    font-size: 180px;
    color: #6b7280; /* gris elegante */
    line-height: 1;
}

/* Responsive */
@media (max-width: 900px){
    .about-wrap{
        grid-template-columns: 1fr;
        text-align: left;
    }
    .about-visual i{
        font-size: 120px;
    }
}


/* =========================
   NUESTROS VALORES
========================= */

.values-section{
    padding: 50px 0;
}

.about-section + .values-section{
    padding-top: 8px;
}

.values-wrap{
    width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
    margin: 0 auto; /* igual que about-wrap */
}

.values-header{
    text-align: center;
    margin-bottom: 40px;
}

.values-header h2{
    font-size: var(--font-h2);
    font-weight: 500;
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
}

.values-header h2::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 80px;
    height: 3px;
    background: #4f7f28;
    transform: translateX(-50%);
}

.values-content{

    padding-left: 12px;
    padding-right: 12px;
}

.values-content p{
    margin: 0 0 22px;
    color: var(--copy-color);
    line-height: var(--copy-line);
    font-size: var(--font-body);
}

.values-list{
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li{
    position: relative;
    padding-left: 26px;
    margin-bottom: 16px;
    color: var(--copy-color);
    font-size: var(--font-body);
    line-height: var(--copy-line);
}

.values-list li::before{
    content: "●";
    position: absolute;
    left: 0;
    top: 4px;
    color: #bdbdbd;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 900px){
    .values-wrap{
        text-align: left;
    }
}



/* =========================
   SERVICIOS – BLOQUE TEXTO
========================= */

.services-block{
    padding: 10px 0;
}

.services-wrap{
    width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
    margin: 0 auto;
}

.services-cta{
    margin-top: 26px;
    text-align: center;
}

.software-visual{
    flex-direction: column;
    gap: 18px;
}

.software-cta-btn{
    min-width: 118px;
    text-align: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: .2px;
    box-shadow: 0 8px 18px rgba(95,127,42,.22);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

@media (hover:hover) and (pointer:fine){
    .software-cta-btn:hover{
        transform: translateY(-2px);
        box-shadow: 0 14px 26px rgba(95,127,42,.30);
        filter: brightness(1.03);
    }
}

.services-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 80px;
    row-gap: 50px;
}

.service-item h3{
    font-size: var(--font-h3);
    font-weight: 500;
    margin: 0 0 14px;
    padding-bottom: 10px;
    position: relative;
}

.service-item h3::before{
    content: "";
    position: absolute;
    left: 42px;
    right: 0;
    bottom: 1px;
    height: 1px;
    background: #e5e7eb;
}

.service-item h3::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    background: #4f7f28; /* verde JVC */
}

.service-item p{
    margin: 0;
    font-size: var(--font-body);
    line-height: var(--copy-line);
    color: var(--copy-color);
}
.service-item p + .list-tech-fa{
    margin-top: 14px;
}


/* =========================
   SERVICIOS – EFECTO TARJETAS
========================= */

.service-item{
    padding: 4px 4px 8px;
    border-radius: 14px;
    position: relative;
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        background-color .35s ease;
}

/* Línea lateral decorativa */
.service-item::before{
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    background: var(--brand);
    border-radius: 3px;
    opacity: 0;
    transition: opacity .35s ease;
}

/* SOLO desktop / mouse */
@media (hover:hover) and (pointer:fine){

    .service-item:hover{
        background: #ffffff;
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0,0,0,.10);
    }

    .service-item:hover::before{
        opacity: 1;
    }

    .service-item:hover h3{
        color: var(--brand-primary);
    }
}


/* Responsive */
@media (max-width: 900px){
    .services-grid{
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}
/* =========================
  viñetas para la web
========================= */
.list-tech-fa{
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-tech-fa li{
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: var(--font-body);
    line-height: var(--copy-line);
    color: var(--copy-color);
}

.list-tech-fa i{
    color: var(--brand-primary, #5f7f2a);
    margin-top: 3px;
}






/* ===== Tarjetas microserver – efecto foco CCTV ===== */
.camaras__item{
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 30px;
    border: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 14px 35px rgba(0,0,0,.08);
    overflow: hidden;
    transition:
        transform .4s ease,
        box-shadow .4s ease,
        border-color .4s ease;
}

/* Halo radial (apagado por defecto) */
.camaras__item::before{
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(
        circle at top left,
        rgba(22,163,74,.22),
        transparent 55%
    );
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

/* Icono */
.camaras__icon{
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: rgba(22,163,74,.14);
    color: var(--brand-color, #16a34a);
    transition:
        transform .4s ease,
        background .4s ease,
        color .4s ease;
}

/* Título */
.camaras__item h3{
    font-size: var(--font-h3);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Texto */
.camaras__item p{
    font-size: var(--font-body);
    line-height: var(--copy-line);
    color: var(--copy-color);
}

/* ===== Hover SOLO con mouse ===== */
@media (hover:hover) and (pointer:fine){

    .camaras__item:hover{
        transform: translateY(-12px);
        box-shadow: 0 30px 80px rgba(0,0,0,.16);
        border-color: rgba(22,163,74,.45);
    }

    .camaras__item:hover::before{
        opacity: 1;
    }

    .camaras__item:hover .camaras__icon{
        transform: scale(1.12);
        background: var(--brand-color, #16a34a);
        color: #ffffff;
        box-shadow: 0 12px 28px rgba(22,163,74,.45);
    }
}



















/*contacto*/

/* ===============================
   CONTACTO
================================ */

.contact-map{
    position: relative;
}

.contact-map iframe,
.contact-map__frame{
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

.contact-map__frame{
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
}

.contact-map__frame.is-loaded{
    opacity: 1;
    visibility: visible;
}

.contact-map__placeholder{
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #f7faf5 0%, #eef5e7 100%);
    color: #374151;
}

.contact-map__placeholder.is-hidden{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.contact-map__placeholder p{
    margin: 0;
    font-size: 14px;
    letter-spacing: .2px;
}

.contact-map__noscript{
    margin: 10px 0 0;
    text-align: center;
}

/* ===============================
   CONTACT FORM – DISEÑO
================================ */

.contact-form{
    width: 100%;
    margin: 0 auto;
}

.contact-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 26px;
    row-gap: 18px;
}

/* Inputs y textarea */
.contact-field input,
.contact-field textarea{
    width: 100%;
    padding: 16px 18px;
    font-size: var(--font-body);
    font-family: inherit;
    border: 1px solid rgba(17,24,39,.22);
    background: #fff;
    color: #111827;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-field textarea{
    min-height: 340px;
    resize: vertical;
}

/* Campo ancho completo */
.contact-field--full{
    grid-column: 1 / -1;
}

/* Focus elegante */
.contact-field input:focus,
.contact-field textarea:focus{
    border-color: rgba(95,127,42,.6);
    box-shadow: 0 0 0 3px rgba(95,127,42,.15);
}

/* Checkbox privacidad */
.contact-privacy{
    margin-top: -6px;
}

.contact-check{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--font-body);
    color: rgba(17,24,39,.75);
}

.contact-check input{
    margin-top: 3px;
}

.contact-check a{
    color: #5f7f2a;
    text-decoration: none;
}

.contact-check a:hover{
    text-decoration: underline;
}

.contact-form-msg{
    margin: -2px 0 2px;
    padding: 9px 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .22s ease, transform .22s ease;
}
.contact-form-msg.is-visible{
    opacity: 1;
    transform: translateY(0);
}
.contact-form-msg--success{
    background: rgba(95,127,42,.10);
    border: 1px solid rgba(95,127,42,.38);
    color: #36521f;
}
.contact-form-msg--error{
    background: rgba(220,38,38,.08);
    border: 1px solid rgba(220,38,38,.32);
    color: #8d1f1f;
}
.contact-form-msg--warning{
    background: rgba(245,158,11,.14);
    border: 1px solid rgba(245,158,11,.45);
    color: #7a4b00;
}

/* Botón enviar */
.contact-actions{
    display: flex;
    justify-content: flex-start;
}

.contact-btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #5f7f2a;
    color: #fff;
    border: none;
    padding: 12px 18px;
    font-size: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease;
}

/* Hover solo con mouse */
@media (hover:hover){
    .contact-btn:hover{
        transform: translateY(-1px);
        filter: brightness(1.05);
    }
}

.contact-page .about-wrap{
    align-items: flex-start;
}

.contact-page{
    --contact-icon-col: 16px;
    --contact-label-col: 72px;
    --contact-col-gap: 10px;
}

.contact-page .about-copy .section-subtitle{
    font-size: 22px;
}

.contact-page .contact-block .section-subtitle{
    font-size: 22px;
}

.legal-page .legal-copy p{
    margin: 0 0 18px;
    color: var(--copy-color);
    line-height: var(--copy-line);
    font-size: var(--font-body);
}

.legal-page .legal-copy a{
    color: inherit;
    text-underline-offset: 2px;
}

.legal-page .about-wrap{
    align-items: flex-start;
}

.legal-page .about-visual i{
    font-size: 150px;
}

.contact-panel{
    display: grid;
    gap: 30px;
}

.contact-block{
    padding: 0;
    border: 0;
    background: transparent;
}

.contact-block__intro{
    margin: 0 0 18px;
    font-size: var(--font-body);
    line-height: var(--copy-line);
    color: var(--copy-color);
}

.contact-data,
.contact-hours{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 7px;
}

.contact-data li{
    display: grid;
    grid-template-columns: var(--contact-icon-col) var(--contact-label-col) 1fr;
    align-items: start;
    column-gap: var(--contact-col-gap);
    color: var(--copy-color);
    font-size: var(--font-body);
    line-height: var(--copy-line);
    padding: 2px 4px;
    border-radius: 8px;
    transition: background-color .2s ease, transform .2s ease;
}

.contact-data li i{
    color: #5f7f2a;
    margin-top: 4px;
    font-size: 14px;
    transition: color .2s ease, transform .2s ease;
}

.contact-data li strong{
    font-weight: 700;
    color: #374151;
    transition: color .2s ease;
}

.contact-data li a{
    color: #374151;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease;
}

.contact-data li a:focus,
.contact-data li a:active{
    outline: none;
    background: transparent;
}

.contact-data li span{
    color: #374151;
}

.contact-hours li{
    display: grid;
    grid-template-columns: calc(var(--contact-icon-col) + var(--contact-label-col) + var(--contact-col-gap)) 1fr;
    column-gap: var(--contact-col-gap);
    font-size: var(--font-body);
    line-height: var(--copy-line);
    color: var(--copy-color);
    padding: 2px 4px;
    border-radius: 8px;
    transition: background-color .2s ease, transform .2s ease;
}

.contact-hours li strong{
    color: #374151;
}

@media (hover:hover) and (pointer:fine){
    .contact-data li:hover,
    .contact-hours li:hover{
        background: rgba(95,127,42,.06);
        box-shadow: inset 2px 0 0 rgba(95,127,42,.55);
    }

    .contact-data li:hover i{
        color: var(--brand-primary);
    }

    .contact-data li:hover strong,
    .contact-data li:hover a{
        color: var(--brand-primary);
    }

    .contact-hours li:hover strong,
    .contact-hours li:hover span{
        color: var(--brand-primary);
    }
}

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

@media (max-width: 860px){
    .contact-data li{
        grid-template-columns: var(--contact-icon-col) 1fr;
    }

    .contact-data li strong{
        grid-column: 2 / -1;
    }

    .contact-data li a,
    .contact-data li span{
        grid-column: 2 / -1;
    }

    .contact-hours li{
        grid-template-columns: 1fr;
        gap: 4px;
    }

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

    .contact-field textarea{
        min-height: 260px;
    }
}

/* ===============================
   ACCESO CLIENTES
================================ */
.client-portal{
    padding: 52px 0 72px;
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(156,198,59,.14), transparent 58%),
        radial-gradient(1000px 480px at 100% 0%, rgba(95,127,42,.12), transparent 60%),
        #f7f8fa;
}

.client-portal__header{
    text-align: center;
    max-width: 760px;
    margin: 0 auto 34px;
}

.client-portal__header h2{
    margin: 0 0 8px;
    font-size: clamp(28px, 3.1vw, 40px);
    line-height: 1.15;
    color: #111827;
}

.client-portal__header p{
    margin: 0;
    font-size: 16px;
    color: #5b6472;
}

.client-portal__grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.client-access-card{
    background: #fff;
    border: 1px solid rgba(17,24,39,.09);
    border-radius: 18px;
    padding: 22px 20px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    box-shadow: 0 12px 28px rgba(15,23,42,.08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.client-access-card__icon{
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 21px;
    color: #36521f;
    background: linear-gradient(135deg, rgba(156,198,59,.30), rgba(95,127,42,.20));
    margin-bottom: 14px;
}

.client-access-card h3{
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
    color: #111827;
}

.client-access-card p{
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.58;
    color: #4b5563;
}

.client-access-card__btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 114px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(95,127,42,.35);
    background: #5f7f2a;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .2px;
    transition: filter .18s ease, transform .18s ease;
}

@media (hover:hover) and (pointer:fine){
    .client-access-card:hover{
        transform: translateY(-5px);
        border-color: rgba(95,127,42,.30);
        box-shadow: 0 18px 38px rgba(15,23,42,.12);
    }

    .client-access-card__btn:hover{
        filter: brightness(1.04);
        transform: translateY(-1px);
    }
}

@media (max-width: 1080px){
    .client-portal__grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px){
    .client-portal{
        padding: 40px 0 56px;
    }

    .client-portal__header{
        margin-bottom: 24px;
    }

    .client-portal__grid{
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .client-access-card{
        padding: 18px 16px;
    }
}
