/* Font Awesome · subset (solo iconos usados en la web) */
@font-face{font-family:"Font Awesome 6 Brands";font-style:normal;font-weight:400;font-display:block;src:url(../vendor/fontawesome/webfonts/fa-brands-400.woff2) format("woff2")}
@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(../vendor/fontawesome/webfonts/fa-solid-900.woff2) format("woff2")}
@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:400;font-display:block;src:url(../vendor/fontawesome/webfonts/fa-regular-400.woff2) format("woff2")}
.fa-solid,.fas{font-family:"Font Awesome 6 Free";font-weight:900}
.fa-regular,.far{font-family:"Font Awesome 6 Free";font-weight:400}
.fa-brands,.fab{font-family:"Font Awesome 6 Brands";font-weight:400}
[class^="fa-"],[class*=" fa-"]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;line-height:1}
.fa-phone:before{content:"\f095"}
.fa-envelope:before{content:"\f0e0"}
.fa-location-dot:before{content:"\f3c5"}
.fa-check:before{content:"\f00c"}
.fa-quote-left:before{content:"\f10d"}
.fa-chevron-left:before{content:"\f053"}
.fa-chevron-right:before{content:"\f054"}
.fa-xmark:before{content:"\f00d"}
.fa-bolt:before{content:"\f0e7"}
.fa-faucet:before{content:"\e005"}
.fa-trowel-bricks:before{content:"\e58a"}
.fa-ruler-combined:before{content:"\f546"}
.fa-paint-roller:before{content:"\f5aa"}
.fa-wheelchair:before{content:"\f193"}
.fa-whatsapp:before{content:"\f232"}
.fa-images:before{content:"\f302"}
.fa-clock:before{content:"\f017"}

/* Poppins · latin + latin-ext (autohospedado) */
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/poppins/pxiEyp8kv8JHgFVrJJnecmNE.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/poppins/pxiEyp8kv8JHgFVrJJfecg.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/poppins/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/poppins/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/poppins/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/poppins/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/poppins/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/poppins/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/poppins/pxiByp8kv8JHgFVrLDD4Z1JlFc-K.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/poppins/pxiByp8kv8JHgFVrLDD4Z1xlFQ.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* =========================================================
   Reformas Arévalo · Hoja de estilos
   ========================================================= */

:root {
    --primary: #e8531b;
    --primary-dark: #c53f10;
    --dark: #1b2330;
    --dark-2: #232d3c;
    --text: #2c3038;
    --muted: #6b7280;
    --muted-bg: #f5f6f8;
    --border: #e6e8ec;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(20, 25, 35, .08);
    --shadow-lg: 0 18px 50px rgba(20, 25, 35, .14);
    --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { margin: 0; line-height: 1.2; }

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

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
    line-height: 1;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232, 83, 27, .35); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: #fff; color: var(--dark); }
.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.admin .btn--ghost { color: var(--text); border-color: var(--border); }
.admin .btn--ghost:hover { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--dark);
    color: #d7dbe2;
    font-size: .85rem;
}
.topbar__inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    padding-top: .55rem;
    padding-bottom: .55rem;
}
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item i { color: var(--primary); }
.topbar a.topbar__item:hover { color: #fff; }

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 2px 14px rgba(20, 25, 35, .07);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 1rem;
}
.header__logo img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__link {
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: .25rem 0;
    transition: color .2s ease;
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width .25s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--primary); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__cta {
    background: var(--primary);
    color: #fff;
    padding: .6rem 1.15rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: background .2s ease, transform .15s ease;
}
.nav__cta:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* menú móvil */
.nav-toggle { display: none; }
.nav-toggle__btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle__btn span { width: 26px; height: 3px; background: var(--dark); border-radius: 3px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    min-height: 78vh;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15, 20, 30, .82) 0%, rgba(15, 20, 30, .55) 55%, rgba(15, 20, 30, .3) 100%);
}
.hero__content { position: relative; padding: 6rem 20px; max-width: 720px; }
.hero__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    padding: .4rem .9rem;
    border-radius: 50px;
    margin: 0 0 1.2rem;
}
.hero__title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; margin-bottom: 1rem; }
.hero__subtitle { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: #e9ecf1; margin-bottom: 2rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Secciones ---------- */
.section { padding: 5.5rem 0; }
.section--muted { background: var(--muted-bg); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .6rem;
}
.section__title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; color: var(--dark); }
.section__title--left { text-align: left; margin-bottom: 1.2rem; }
.section__foot { text-align: center; margin-top: 2.8rem; }

/* ---------- Servicios (Tus expertos) ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #f2762f);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.3rem;
    box-shadow: 0 8px 18px rgba(232, 83, 27, .3);
}
.service-card__title { font-size: 1.25rem; color: var(--dark); margin-bottom: .7rem; }
.service-card__text { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- ¿Por qué nosotros? ---------- */
.why {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.why__media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
}
.why__body p { color: var(--muted); margin: 0 0 1rem; }
.why__body .btn { margin-top: .8rem; }

/* ---------- Excelencia en los trabajos ---------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    align-items: start;
}
.work-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* El título tiene altura fija para que las imágenes queden alineadas
   independientemente de la longitud del texto superior */
.work-card__title {
    font-size: 1.2rem;
    color: var(--dark);
    padding: 1.4rem 1.5rem .9rem;
    min-height: 4.6rem;
    display: flex;
    align-items: center;
}
.work-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-card:hover .work-card__media img { transform: scale(1.05); }
.work-card__text { color: var(--muted); font-size: .95rem; padding: 1.3rem 1.5rem 1.6rem; margin: 0; }

/* ---------- Otros servicios ---------- */
.others {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
    align-items: center;
}
.others__list {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem 1.5rem;
}
.others__list li {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 500;
    color: var(--dark);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .8rem 1rem;
}
.others__list i { color: var(--primary); }
.others__media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.others__media img { border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; object-fit: cover; }

/* ---------- Cita / texto final ---------- */
.quote {
    background: var(--dark);
    color: #fff;
    padding: 4.5rem 0;
    text-align: center;
}
.quote__mark { font-size: 2.4rem; color: var(--primary); margin-bottom: 1rem; }
.quote__text {
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    font-weight: 500;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- Galería ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.gallery-grid__item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--muted-bg);
    position: relative;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    width: 100%;
}
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid__item:hover img { transform: scale(1.08); }

/* ---------- Lightbox / carrusel galería ---------- */
body.lightbox-open { overflow: hidden; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox[hidden] { display: none !important; }

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 22, .92);
    cursor: pointer;
}

.lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__figure {
    margin: 0;
    text-align: center;
    max-width: 100%;
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(92vh - 5rem);
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    object-fit: contain;
}

.lightbox__counter {
    color: #9aa3b2;
    font-size: .85rem;
    margin: 0;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: background .2s ease, transform .15s ease;
    backdrop-filter: blur(4px);
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.lightbox__close {
    top: -3.2rem;
    right: 0;
}

.lightbox__nav--prev { left: -1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: -1rem; top: 50%; transform: translateY(-50%); }

.lightbox__nav--prev:hover,
.lightbox__nav--next:hover {
    transform: translateY(-50%) scale(1.05);
}

.empty { text-align: center; color: var(--muted); padding: 2rem 0; }

/* ---------- Page hero (galería) ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.page-hero__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin: .3rem 0; }
.page-hero__text { color: #c7cdd6; margin: 0; }

/* ---------- Paginación ---------- */
.pagination-wrap { display: flex; justify-content: center; gap: .5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.page-btn {
    min-width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 600;
    color: var(--dark);
    transition: .2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.is-disabled { opacity: .4; pointer-events: none; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #b9c0cb; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr .8fr 1fr;
    gap: 2.5rem;
    padding: 4rem 20px 3rem;
}
.footer__logo { height: 44px; width: auto; margin-bottom: 1.1rem; }
.footer__about { font-size: .92rem; margin: 0; }
.footer__title { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; position: relative; padding-bottom: .6rem; }
.footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; background: var(--primary); border-radius: 3px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.footer__list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .92rem; }
.footer__list i { color: var(--primary); margin-top: .25rem; }
.footer__list a:hover { color: #fff; }
.footer__list--links li { display: block; }
.footer__list--links a { position: relative; }
.footer__list--links a:hover { color: var(--primary); padding-left: 4px; transition: .2s; }
.footer__cta { margin-top: 1.3rem; display: inline-flex; align-items: center; gap: .5rem; background: var(--primary); color: #fff; padding: .65rem 1.2rem; border-radius: 50px; font-weight: 600; transition: .2s; }
.footer__cta:hover { background: var(--primary-dark); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem 0; font-size: .85rem; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer__legal a { color: #b9c0cb; transition: color .2s; }
.footer__legal a:hover { color: var(--primary); }

/* ---------- Páginas legales ---------- */
.section--legal { padding-top: 2.5rem; }
.page-hero--legal { padding: 3rem 0; }
.legal-content { max-width: 820px; margin: 0 auto; color: var(--text); }
.legal-content h2 { font-size: 1.25rem; color: var(--dark); margin: 2rem 0 .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--primary); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; color: var(--dark); margin: 1.75rem 0 .65rem; }
.legal-content p { margin: 0 0 1rem; line-height: 1.75; color: var(--muted); }
.legal-content ul { margin: 0 0 1.25rem 1.2rem; color: var(--muted); }
.legal-content li { margin-bottom: .65rem; line-height: 1.65; }
.legal-content li strong { color: var(--dark); }
.legal-content a { color: var(--primary); text-decoration: underline; word-break: break-word; }
.legal-content a.legal-page__cookie-link { color: var(--primary); text-decoration: underline; cursor: pointer; background: none; border: none; padding: 0; font: inherit; }

.legal-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .95rem; }
.legal-content table th { background: #e8eaed; color: var(--dark); font-weight: 700; text-align: center; padding: .85rem 1rem; border: 1px solid #c5c9cf; }
.legal-content table td { padding: .85rem 1rem; border: 1px solid #c5c9cf; vertical-align: top; line-height: 1.65; color: var(--muted); }
.legal-content table td:first-child { width: 28%; min-width: 160px; color: var(--dark); }
.legal-content table + table td:first-child { width: 18%; min-width: 100px; }

@media (max-width: 640px) {
    .legal-content table td:first-child { width: auto; min-width: 0; }
    .legal-content table th { font-size: .9rem; }
}

/* =========================================================
   Panel de administración
   ========================================================= */
.admin { background: var(--muted-bg); min-height: 100vh; }
.admin-bar { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 20; }
.admin-bar__inner { max-width: 1100px; margin: 0 auto; padding: .9rem 20px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-bar__brand { display: flex; align-items: center; gap: .8rem; font-weight: 600; color: var(--dark); }
.admin-bar__brand img { height: 34px; }
.admin-bar__actions { display: flex; align-items: center; gap: .6rem; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 2rem 20px 4rem; }
.admin-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.6rem; }
.admin-panel__title { font-size: 1.2rem; color: var(--dark); display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.admin-panel__title i { color: var(--primary); }
.admin-panel__hint { color: var(--muted); font-size: .9rem; margin: 0 0 1.2rem; }
.upload-form { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.upload-form input[type=file] { flex: 1; min-width: 220px; padding: .7rem; border: 1px dashed var(--border); border-radius: 10px; background: var(--muted-bg); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.admin-thumb { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-thumb__del { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 8px; border: none; background: rgba(220, 38, 38, .92); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s; }
.admin-thumb__del:hover { background: #b91c1c; }

.alert { padding: .9rem 1.2rem; border-radius: 10px; margin-bottom: 1.3rem; font-weight: 500; }
.alert--ok { background: #e7f7ec; color: #1a7f37; border: 1px solid #b7e4c7; }
.alert--error { background: #fdecec; color: #c0392b; border: 1px solid #f5c6cb; }

/* login */
.admin-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, var(--dark), var(--dark-2)); padding: 20px; }
.login-card { background: #fff; border-radius: 18px; padding: 2.6rem 2.2rem; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); text-align: center; }
.login-card__logo { height: 46px; margin: 0 auto 1.2rem; }
.login-card__title { font-size: 1.4rem; color: var(--dark); margin-bottom: 1.6rem; }
.field { display: block; text-align: left; margin-bottom: 1.2rem; }
.field span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--dark); }
.field input { width: 100%; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; font-family: inherit; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232, 83, 27, .15); }
.field-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); text-align: left; margin-bottom: 1.2rem; }
.field-check input { width: auto; }
.login-card__back { display: inline-block; margin-top: 1.4rem; color: var(--muted); font-size: .9rem; }
.login-card__back:hover { color: var(--primary); }

/* =========================================================
   Responsive · Tablet
   ========================================================= */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .work-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .work-card__title { min-height: 0; }
    .why { grid-template-columns: 1fr; gap: 2rem; }
    .why__media { order: -1; }
    .others { grid-template-columns: 1fr; gap: 2rem; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* =========================================================
   Responsive · Móvil
   ========================================================= */
@media (max-width: 768px) {
    .topbar__item--hide-sm { display: none; }
    .topbar__inner { justify-content: center; }

    .nav-toggle__btn { display: flex; }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem 0;
        box-shadow: 0 12px 24px rgba(20, 25, 35, .12);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease, padding .3s ease;
    }
    .nav-toggle:checked ~ .nav { max-height: 420px; }
    .nav__link { padding: .9rem 20px; border-bottom: 1px solid var(--border); }
    .nav__link::after { display: none; }
    .nav__cta { margin: .7rem 20px; justify-content: center; }
    .nav-toggle:checked ~ .nav-toggle__btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-toggle__btn span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-toggle__btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .section { padding: 3.5rem 0; }
    .hero { min-height: 70vh; }
    .hero__content { padding: 4rem 20px; }

    .services-grid { grid-template-columns: 1fr; }
    .others__list { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr; text-align: center; padding: 3rem 20px 2rem; }
    .footer__logo { margin-left: auto; margin-right: auto; }
    .footer__title::after { left: 50%; transform: translateX(-50%); }
    .footer__list li { justify-content: center; text-align: left; }
    .footer__cta { margin-left: auto; margin-right: auto; }
    .footer__bottom-inner { flex-direction: column; text-align: center; justify-content: center; }
    .footer__legal { justify-content: center; }

    .upload-form { flex-direction: column; align-items: stretch; }
    .admin-bar__brand span { display: none; }

    .lightbox { padding: .5rem; }
    .lightbox__close { top: .5rem; right: .5rem; z-index: 2; }
    .lightbox__nav--prev { left: .5rem; }
    .lightbox__nav--next { right: .5rem; }
    .lightbox__img { max-height: calc(92vh - 4rem); }
}
