/* =====================================================================
   site.css — estilos NUEVOS de la migración a ASP.NET Core.
   El CSS heredado (custom.css, red.css, responsive.css…) no se modifica,
   salvo la extensión de selectores para h1/h3 semánticos.
   ===================================================================== */

/* Sustituye a <font color="#009cff"> del markup original */
.text-brand { color: #009cff; }

/* Scroll a anclas sin que el header fijo tape el título */
section[id] { scroll-margin-top: 70px; }

/* "Leer más": antes <button><a></a></button>; mismo tamaño visual con un solo <a> */
.feature_content a.btn-main {
    display: inline-block;
    padding: 10px 33px;
    margin-top: 30px;
}

/* ---------- Formulario de contacto ---------- */
.form-level .select-block,
.form-level .textarea-block {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #EEE;
    margin-bottom: 8px;
    background: #fff;
    color: #555;
}
.form-level .select-block { height: 44px; -webkit-appearance: none; appearance: none; }
.form-level .field-error {
    position: static;
    display: block;
    width: auto;
    height: auto;
    padding: 0 0 6px;
    font-size: 13px;
    color: #c0392b;
}
.form-level .field-error:empty { display: none; }
.form-level .input-validation-error { border-color: #c0392b; }
.form-consent label { font-weight: 400; font-size: 14px; color: #555; cursor: pointer; }
.form-consent input[type="checkbox"] {
    /* .form-level input (heredado) da width:100% y padding a todos los inputs */
    width: auto;
    padding: 0;
    margin: 0 6px 0 0;
    border: 0;
    display: inline-block;
    vertical-align: middle;
}
.form-consent a { color: #009cff; }
.contact_full #contact-submit { margin-top: 10px; }
.contact_full #contact-submit[disabled] { opacity: .7; cursor: wait; }

/* Honeypot: fuera de pantalla, no display:none (algunos bots lo detectan) */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-alert { padding: 12px 15px; margin-bottom: 15px; border-radius: 3px; font-size: 15px; }
.contact-alert-ok { background: #e8f7ee; color: #1e7b45; border: 1px solid #b7e4c7; }
.contact-alert-error { background: #fdecea; color: #a93226; border: 1px solid #f5c6cb; }
.contact-alert a { font-weight: 700; text-decoration: underline !important; color: inherit; }

/* Botón verde de WhatsApp (antes estilos inline) */
.btn-whatsapp {
    font-size: 18px;
    padding: 12px 40px;
    color: #fff !important;
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 10px;
}
.btn-whatsapp:hover { background-color: #128C7E !important; border-color: #128C7E !important; }
.phone-link { color: inherit; }

/* El botón flotante no debe tapar el botón "volver arriba" */
#back-top { bottom: 100px; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 20px;
    background: #333;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
    font-size: 14px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 12px; color: #fff; }
.cookie-banner a { color: #8ad0ff; text-decoration: underline !important; }
.cookie-actions { text-align: right; }
.cookie-actions .btn-main { margin: 0 0 0 8px; padding: 6px 18px; }

.aviso-version { color: #888; margin-top: 10px; }

/* ---------- Aviso de privacidad (Markdown) — mismo tono que el aviso original ---------- */
#AvisoPrivacidad { padding: 130px 0 40px; }
.aviso-md { padding: 10px; color: #444; font-size: 14px; line-height: 1.7; text-align: justify; }
.aviso-md h1 { font-size: 18px; font-weight: 700; text-align: center; text-transform: uppercase; margin: 0 0 40px; color: #262626; }
.aviso-md h2 { font-size: 15px; font-weight: 700; text-transform: uppercase; line-height: 1.5; margin: 35px 0 15px; color: #262626; }
.aviso-md h3 { font-size: 14px; font-weight: 700; text-transform: none; line-height: 1.5; margin: 20px 0 10px; color: #262626; }
.aviso-md ul, .aviso-md ol { padding: 0 0 0 35px; margin: 0 0 15px; }
.aviso-md ul { list-style: circle outside; }
.aviso-md ol { list-style: decimal outside; }
.aviso-md li { display: list-item; }
.aviso-md li { margin-bottom: 6px; }
.aviso-md hr { border-top: 1px solid #eee; margin: 30px 0; }
.aviso-md blockquote { border-left: 4px solid #009cff; background: #f7fbff; padding: 10px 15px; margin: 15px 0; font-size: 14px; }
.aviso-md blockquote p { margin: 0; }
.aviso-md a { color: #009cff; word-break: break-word; }
.aviso-firma { text-align: right; margin-top: 30px; }

/* Foco visible para navegación con teclado (WCAG 2.2) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.single-member:focus-visible {
    outline: 3px solid #009cff;
    outline-offset: 2px;
}
.single-member:focus-within .overlay-effect { opacity: 1; top: 0; }

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

/* =====================================================================
   Etapa 2 · Páginas de servicio (/servicios y /servicios/{slug})
   ===================================================================== */
.service-hero {
    padding: 130px 0 40px;
    background: #f7fbff;
    border-bottom: 1px solid #e5eef7;
    text-align: center;
}
.service-breadcrumb { list-style: none; padding: 0; margin: 0 0 20px; font-size: 13px; color: #777; }
.service-breadcrumb li { display: inline; }
.service-breadcrumb li + li::before { content: "›"; margin: 0 8px; color: #aaa; }
.service-breadcrumb a { color: #009cff; }
.service-hero-icon { display: block; font-size: 54px; color: #009cff; margin-bottom: 10px; }
.service-title { width: auto; max-width: 900px; font-size: 36px; line-height: 44px; }
.service-summary { max-width: 760px; margin: 15px auto 0; font-size: 18px; line-height: 28px; color: #333; }
.service-cta { margin-top: 25px; }
.service-cta .btn-main { margin: 8px 6px 0; }

.service-body { padding: 40px 15px; font-size: 15px; line-height: 1.75; color: #444; }
.service-body h2 { font-size: 24px; line-height: 32px; margin: 35px 0 15px; color: #262626; text-transform: none; }
.service-body h3 { font-size: 18px; line-height: 26px; margin: 25px 0 10px; color: #262626; text-transform: none; font-weight: 700; }
.service-body ul, .service-body ol { padding-left: 25px; margin-bottom: 18px; }
.service-body ul { list-style: disc outside; }
.service-body ol { list-style: decimal outside; }
.service-body li { display: list-item; margin-bottom: 6px; }
.service-body table { width: 100%; margin: 15px 0 25px; border-collapse: collapse; font-size: 14px; }
.service-body th, .service-body td { border: 1px solid #e5e9ee; padding: 8px 10px; vertical-align: top; }
.service-body th { background: #f7fbff; color: #262626; }
.service-body a { color: #009cff; }

.service-faq details { border: 1px solid #e5e9ee; border-radius: 4px; margin-bottom: 10px; background: #fff; }
.service-faq summary { cursor: pointer; padding: 12px 15px; font-weight: 700; color: #262626; }
.service-faq details[open] summary { border-bottom: 1px solid #e5e9ee; }
.service-faq details p { padding: 12px 15px; margin: 0; }

.service-aside { padding: 40px 15px; }
.service-aside-box { border: 1px solid #e5eef7; border-radius: 6px; padding: 20px; margin-bottom: 20px; background: #fff; }
.service-aside-box h2 { margin-top: 0; text-transform: none; }
.service-aside-box .btn-main { margin-top: 10px; white-space: normal; }
.service-aside-phone { margin: 12px 0 0; font-size: 14px; text-align: center; }
.service-links { list-style: none; padding: 0; margin: 0; }
.service-links li { border-bottom: 1px dotted #ddd; padding: 8px 0; }
.service-links li:last-child { border-bottom: 0; }
.service-links a { color: #009cff; }

.service-cards { padding: 40px 0 20px; }
.service-card {
    display: block;
    border: 1px solid #e5eef7;
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 15px;
    color: #444;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover, .service-card:focus { box-shadow: 0 8px 24px rgba(0, 156, 255, .15); transform: translateY(-2px); color: #444; }
.service-card i { font-size: 42px; color: #009cff; }
.service-card h2 { text-transform: none; margin: 15px 0 10px; color: #262626; }
.service-card-more { color: #009cff; font-weight: 700; }
.service-card-children { padding: 0 10px 25px; }

@media (max-width: 767px) {
    .service-hero { padding-top: 100px; }
    .service-title { font-size: 28px; line-height: 34px; }
    .service-summary { font-size: 16px; }
}
