/* =========================================================
   FMA TECHNOLOGIES — Hoja de estilos principal
   Paleta: predominio blanco/claro + acentos en degradado
   ámbar/naranja, inspirada en la referencia win.pe
   ========================================================= */

:root {
    --bg-0: #ffffff;
    --bg-1: #fff7f0;
    --bg-2: #ffffff;
    --bg-3: #fff1e2;
    --border: rgba(20, 16, 12, 0.10);
    --border-strong: rgba(20, 16, 12, 0.18);

    --text-0: #191510;
    --text-1: #5b564e;
    --text-2: #928c81;

    --ink-0: #14100c;
    --ink-1: #1d1811;
    --ink-border: rgba(255, 255, 255, 0.12);
    --ink-text-0: #fbf8f4;
    --ink-text-1: #cdc4b6;
    --ink-text-2: #9a9184;

    --accent-1: #ffb347;
    --accent-2: #f4511e;
    --accent-gradient: linear-gradient(135deg, #ffc266 0%, #f4511e 100%);
    --accent-gradient-soft: linear-gradient(135deg, rgba(255, 179, 71, 0.16), rgba(244, 81, 30, 0.08));
    --accent-glow: rgba(244, 129, 30, 0.35);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-card: 0 24px 50px -24px rgba(30, 20, 10, 0.22);
    --container-width: 1180px;

    --font-display: "Space Grotesk", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    margin: 0;
    background: var(--bg-0);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-0);
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Contenedor de ancho completo con espaciado fijo a los bordes.
   A diferencia de .container (que se centra dejando huecos iguales
   a los costados en monitores anchos), este mantiene el logo del
   header y el contenido del footer siempre pegados al borde
   izquierdo, sin importar la resolución. */
.container-edge {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 40px;
}

main {
    display: block;
    padding-top: var(--header-height, 128px);
}

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
}

.icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-lg {
    width: 30px;
    height: 30px;
}

/* ---------------------------------------------------------
   Botones
   --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #1a1006;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -10px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-0);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    border-color: var(--accent-2);
    color: var(--accent-2);
}

.btn-ghost {
    background: rgba(20, 16, 12, 0.04);
    color: var(--text-0);
    border-color: var(--border);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.85rem;
}

/* Variantes de botón sobre fondos oscuros (hero, CTA con foto) */
.btn-outline-light {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    background: rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------
   Franja de contacto — naranja, arriba del menú
   --------------------------------------------------------- */
.header-topbar {
    background: linear-gradient(135deg, #ffb347 0%, #f4511e 100%);
}

.header-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 42px;
    gap: 20px;
}

.header-topbar-contact {
    display: flex;
    align-items: center;
    gap: 26px;
    min-width: 0;
}

.header-topbar-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.header-topbar-contact a:hover {
    opacity: 1;
}

/* ---------------------------------------------------------
   Encabezado — blanco, como en la referencia
   --------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px -18px rgba(20, 16, 12, 0.35);
}

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

.brand-logo {
    height: 46px;
    width: auto;
}

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

.main-nav ul {
    display: flex;
    gap: 34px;
}

.main-nav a {
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--text-1);
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

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

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

.nav-cta {
    padding: 11px 22px;
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-0);
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 12, 0.45);
    z-index: 490;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ---------------------------------------------------------
   Hero / Slider — imagen con degradado oscuro (texto siempre blanco)
   --------------------------------------------------------- */
.hero-slider {
    position: relative;
    height: 74vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--ink-0);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    animation: none;
}

@keyframes heroKenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.12) translate(-1%, -1%); }
}

.hero-slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 10, 5, 0.28) 0%, rgba(15, 10, 5, 0) 30%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    padding-top: 40px;
}

.hero-content .tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 179, 71, 0.14);
    border: 1px solid rgba(255, 179, 71, 0.4);
    color: var(--accent-1);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 26px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    margin-bottom: 22px;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.1rem;
    color: #e4ddd2;
    max-width: 540px;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-nodes {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.55;
    pointer-events: none;
}

.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.hero-dot.active {
    background: var(--accent-gradient);
}

/* ---------------------------------------------------------
   Hero extra — recuadros de servicios, botón y fila de
   confianza, continuando el fondo oscuro de la foto del hero
   --------------------------------------------------------- */
.hero-extra {
    background: rgb(20, 16, 12);
    padding: 50px 0 64px;
}

.hero-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hero-service-box {
    position: relative;
    display: block;
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-service-box:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 179, 71, 0.55);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
}

.hero-service-box-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 0.5s ease;
}

.hero-service-box:hover .hero-service-box-bg {
    transform: scale(1.12);
}

.hero-service-box-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 10, 5, 0.1) 0%, rgba(15, 10, 5, 0.55) 55%, rgba(15, 10, 5, 0.94) 100%);
}

.hero-service-box-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 22px 20px 20px;
}

.hero-service-box-content h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 6px;
}

.hero-service-box-content p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.hero-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 38px;
}

.hero-quote-btn {
    padding: 16px 30px;
    font-size: 0.98rem;
    flex-shrink: 0;
}

.hero-trust-row {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 14px 34px;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-trust-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    flex-shrink: 0;
}

/* ---------------------------------------------------------
   Page hero (páginas internas) — banda oscura con foto,
   igual al recurso usado por la referencia en secciones puntuales
   --------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: 100px 0 90px;
    background: var(--ink-0);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.34;
}

.page-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 10, 5, 0.35) 0%, var(--ink-0) 92%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    color: #ffffff;
}

.page-hero p {
    color: #d8cfc2;
    font-size: 1.08rem;
}

/* ---------------------------------------------------------
   Secciones generales
   --------------------------------------------------------- */
section {
    position: relative;
    padding: 110px 0;
}

.section-alt {
    background: var(--bg-1);
}

/* ---------------------------------------------------------
   Sección naranja encendido — "Nuestros servicios" en inicio
   y "Misión y visión" en Nosotros, con el naranja del logo
   a todo el ancho de la sección
   --------------------------------------------------------- */
.section-vivid {
    background: linear-gradient(135deg, #ff9a45 0%, #f4511e 100%);
}

.section-vivid .section-head h2,
.section-vivid .card h3 {
    color: #ffffff;
}

.section-vivid .section-head h2::after {
    background: #ffffff;
}

.section-vivid .section-head p {
    color: rgba(255, 255, 255, 0.92);
}

.section-vivid .card {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.section-vivid .card h3 {
    color: var(--text-0);
}

.section-vivid .card p,
.section-vivid .service-card-body p {
    color: var(--text-1);
}

.section-vivid .service-card-link {
    color: var(--accent-2);
}

.section-vivid .btn-primary {
    background: #ffffff;
    color: var(--accent-2);
}

.section-vivid .btn-primary:hover {
    box-shadow: 0 16px 34px -12px rgba(20, 10, 0, 0.35);
}

/* ---------------------------------------------------------
   Portada interna naranja encendido — Nosotros, Servicios,
   Contacto. Si el administrador sube una foto, queda como
   una textura sutil detrás del color de marca.
   --------------------------------------------------------- */
.page-hero-vivid {
    background: linear-gradient(135deg, #ff9a45 0%, #f4511e 100%);
}

.page-hero-vivid .page-hero-bg {
    opacity: 0.22;
    mix-blend-mode: multiply;
}

.page-hero-vivid .page-hero-bg::after {
    background: linear-gradient(180deg, rgba(255, 154, 69, 0.35) 0%, rgba(244, 81, 30, 0.85) 100%);
}

.page-hero-vivid h1 {
    color: #ffffff;
}

.page-hero-vivid p {
    color: rgba(255, 255, 255, 0.92);
}

.section-head {
    max-width: 640px;
    margin-bottom: 60px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    display: inline-block;
    position: relative;
    padding-bottom: 18px;
}

.section-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent-gradient);
}

.section-head.center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-head p {
    color: var(--text-1);
    font-size: 1.05rem;
}

/* ---------------------------------------------------------
   Quiénes somos (inicio)
   --------------------------------------------------------- */
.about-block {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}

.about-text .eyebrow-free-tag {
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 14px;
    display: block;
}

.about-text h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    padding-bottom: 18px;
    position: relative;
    margin-bottom: 24px;
}

.about-text h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent-gradient);
}

.about-text p {
    color: var(--text-1);
}

.about-media {
    position: relative;
}

.about-media .frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 5;
    background: var(--bg-1);
    animation: about-float 5s ease-in-out infinite;
}

@keyframes about-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.about-media .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-media .frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, transparent 60%, rgba(20, 12, 4, 0.28) 100%);
}

.about-media .accent-shape {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: var(--radius-lg);
    background: var(--accent-gradient);
    z-index: -1;
    opacity: 0.85;
}

.about-media .accent-shape.top {
    top: -30px;
    right: -30px;
}

.about-media .accent-shape.bottom {
    bottom: -30px;
    left: -30px;
    opacity: 0.35;
}

/* ---------------------------------------------------------
   Tarjetas — usadas en servicios, valores, por qué elegirnos
   Regla: si un recuadro lleva borde, el borde rodea todo el contorno
   --------------------------------------------------------- */
.card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 34px 30px;
    box-shadow: 0 2px 10px -6px rgba(20, 16, 12, 0.08);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.card:hover {
    border-color: rgba(244, 81, 30, 0.35);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient-soft);
    border: 1px solid rgba(244, 81, 30, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-2);
    margin-bottom: 22px;
}

.card h3 {
    font-size: 1.18rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-1);
    font-size: 0.97rem;
    margin-bottom: 0;
}

/* Tarjeta centrada, sin recuadro de fondo en el ícono
   (Por qué elegirnos, Nuestros valores) */
.icon-plain {
    text-align: center;
}

.icon-plain .card-icon {
    width: auto;
    height: auto;
    background: none;
    border: none;
    margin: 0 auto 18px;
    color: var(--accent-2);
}

.icon-plain .card-icon svg {
    width: 46px;
    height: 46px;
}

.grid {
    display: grid;
    gap: 28px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

/* Tarjetas de servicio con imagen */
.service-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.service-card-media {
    position: relative;
    aspect-ratio: 16 / 10.5;
    overflow: hidden;
    background: var(--bg-1);
}

.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-media img {
    transform: scale(1.06);
}

.service-card-body {
    padding: 28px 28px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-body .card-icon {
    margin-bottom: 18px;
}

.service-card-body p {
    color: var(--text-1);
    font-size: 0.96rem;
    flex-grow: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-2);
    font-weight: 600;
    font-size: 0.92rem;
    margin-top: 18px;
}

.service-card-link .icon {
    width: 17px;
    height: 17px;
    transition: transform 0.25s ease;
}

.service-card:hover .service-card-link .icon {
    transform: translateX(4px);
}

/* ---------------------------------------------------------
   Carrusel infinito de servicios (inicio) — avanza en loop
   continuo, sin retroceder, con botón "Ver más" naranja
   --------------------------------------------------------- */
.services-carousel {
    overflow: hidden;
    margin: 26px 0 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.services-carousel-track {
    display: flex;
    align-items: stretch;
    gap: 26px;
    width: max-content;
    padding: 10px 24px;
    animation: services-scroll 38s linear infinite;
}

.services-carousel:hover .services-carousel-track {
    animation-play-state: paused;
}

@keyframes services-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.carousel-card {
    flex: 0 0 320px;
    width: 320px;
}

.service-card-btn {
    align-self: flex-start;
    margin-top: 18px;
    pointer-events: none;
}

@media (max-width: 780px) {
    .carousel-card { flex-basis: 260px; width: 260px; }
    .services-carousel-track { animation-duration: 26s; }
}

/* ---------------------------------------------------------
   CTA de ancho completo (WhatsApp) — banda oscura con foto,
   sin recuadro contenido, imagen a todo el ancho
   --------------------------------------------------------- */
.cta-section {
    position: relative;
    padding: 130px 0;
    background-color: var(--ink-0);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 10, 5, 0.88) 0%, rgba(15, 10, 5, 0.74) 45%, rgba(15, 10, 5, 0.92) 100%);
}

.cta-section .container {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    margin-bottom: 18px;
    color: #ffffff;
}

.cta-section p {
    color: #d8cfc2;
    font-size: 1.08rem;
    margin-bottom: 34px;
}

.cta-section .btn {
    padding: 16px 34px;
    font-size: 1rem;
}

/* ---------------------------------------------------------
   Página de servicio — detalle
   --------------------------------------------------------- */
.service-detail-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 50px;
    aspect-ratio: 21 / 8;
    background: var(--bg-1);
}

.service-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    align-items: start;
}

.service-detail-content h2 {
    font-size: 1.5rem;
}

.service-detail-content .service-body p {
    color: var(--text-1);
}

.service-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.service-gallery-grid a {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    background: var(--bg-1);
}

.service-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-gallery-grid a:hover img {
    transform: scale(1.08);
}

.sidebar-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: 0 2px 10px -6px rgba(20, 16, 12, 0.08);
}

.sidebar-card h3 {
    font-size: 1.05rem;
}

.sidebar-card .services-mini-list li {
    border-top: 1px solid var(--border);
}

.sidebar-card .services-mini-list li:first-child {
    border-top: none;
}

.services-mini-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 0.94rem;
    color: var(--text-1);
    transition: color 0.2s ease;
}

.services-mini-list a:hover,
.services-mini-list a.active {
    color: var(--accent-2);
}

/* Paquetes / planes de servicio */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    margin-top: 40px;
}

.package-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px -6px rgba(20, 16, 12, 0.08);
}

.package-card.featured {
    border-color: var(--accent-2);
    background: linear-gradient(180deg, rgba(255, 179, 71, 0.10), var(--bg-2) 40%);
    position: relative;
}

.package-card.featured::before {
    content: "Más solicitado";
    position: absolute;
    top: -13px;
    left: 28px;
    background: var(--accent-gradient);
    color: #1a1006;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
}

.package-card h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.package-price {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--text-0);
    margin: 10px 0 4px;
}

.package-price span {
    font-size: 0.9rem;
    color: var(--text-2);
    font-family: var(--font-body);
}

.package-note {
    color: var(--text-2);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.package-features {
    margin: 10px 0 26px;
    flex-grow: 1;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-1);
    padding: 7px 0;
}

.package-features .icon {
    color: var(--accent-2);
    width: 17px;
    height: 17px;
    margin-top: 3px;
}

/* ---------------------------------------------------------
   Formulario de contacto
   --------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
}

.contact-info-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.contact-info-item:first-of-type {
    border-top: none;
}

.contact-info-item .card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.contact-info-item p {
    margin-bottom: 0;
    color: var(--text-1);
    font-size: 0.94rem;
}

.contact-form {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 2px 10px -6px rgba(20, 16, 12, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-0);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-1);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    color: var(--text-0);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(244, 81, 30, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.94rem;
    border: 1px solid;
}

.alert-success {
    background: rgba(46, 204, 113, 0.08);
    border-color: rgba(46, 204, 113, 0.35);
    color: #1f8a52;
}

.alert-error {
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.35);
    color: #c8392c;
}

/* ---------------------------------------------------------
   WhatsApp flotante
   --------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px -10px var(--accent-glow);
    z-index: 400;
    transition: transform 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

.whatsapp-float .icon {
    width: 28px;
    height: 28px;
}

/* ---------------------------------------------------------
   Footer — banda oscura, como en la referencia
   --------------------------------------------------------- */
.site-footer {
    background: var(--ink-0);
    border-top: 1px solid var(--ink-border);
    padding-top: 80px;
    color: var(--ink-text-1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-logo {
    height: 42px;
    margin-bottom: 20px;
}

.footer-brand-col p {
    color: var(--ink-text-2);
    font-size: 0.92rem;
}

.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--ink-text-0);
}

.footer-links li,
.footer-contact li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--ink-text-2);
    font-size: 0.93rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-1);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-text-2);
    font-size: 0.9rem;
}

.footer-contact .icon {
    color: var(--accent-1);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-cta-text {
    color: var(--ink-text-2);
    font-size: 0.92rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--ink-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-text-1);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

.footer-bottom {
    border-top: 1px solid var(--ink-border);
    padding: 24px 0;
}

.footer-bottom-inner {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--ink-text-2);
    font-size: 0.85rem;
}

/* ---------------------------------------------------------
   Animaciones al hacer scroll
   --------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-group] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal-group].in-view > * {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-group].in-view > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group].in-view > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-group].in-view > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-group].in-view > *:nth-child(4) { transition-delay: 0.35s; }
[data-reveal-group].in-view > *:nth-child(5) { transition-delay: 0.45s; }
[data-reveal-group].in-view > *:nth-child(6) { transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal-group] > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-slide-bg {
        transition: none;
        animation: none;
        transform: none;
    }
    .services-carousel-track {
        animation: none;
    }
    .about-media .frame {
        animation: none;
    }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .about-block { grid-template-columns: 1fr; gap: 46px; }
    .about-media { order: -1; max-width: 460px; margin: 0 auto; }
    .service-detail-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
    .header-topbar-inner {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        padding: 9px 0;
        gap: 7px;
    }

    .header-topbar-contact {
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 5px;
        column-gap: 18px;
    }

    .header-topbar-contact a {
        font-size: 0.76rem;
    }

    .container-edge {
        padding: 0 20px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(320px, 84vw);
        background: var(--bg-2);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 30px;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 495;
        box-shadow: -18px 0 40px -20px rgba(20, 16, 12, 0.25);
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 22px;
        width: 100%;
    }

    .main-nav a {
        font-size: 1.05rem;
        display: block;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content { max-width: 100%; }
    .hero-actions .btn { flex-grow: 1; justify-content: center; }

    .hero-slider { height: auto; min-height: 340px; margin-top: 0; }
    .hero-slide-bg {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top center;
        background-color: var(--ink-0);
        animation: none;
        transform: none;
    }
    .hero-services-grid { grid-template-columns: 1fr; }
    .hero-bottom-row { flex-direction: column; align-items: stretch; }
    .hero-quote-btn { justify-content: center; }
    .hero-trust-row { grid-template-columns: 1fr; gap: 14px; }
    .hero-extra { padding: 40px 0 50px; }

    section { padding: 76px 0; }

    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }

    .service-gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .page-hero { padding: 70px 0 60px; }
}

@media (max-width: 420px) {
    .header-topbar-contact {
        column-gap: 12px;
    }

    .header-topbar-contact a span {
        font-size: 0.72rem;
    }
}
