/*
Theme Name: Terravita Editable
Theme URI: https://constructoraterravita.com/
Author: Constructora Terravita
Description: Tema multipágina profesional y completamente editable para Constructora Terravita. Logo, favicon, textos, tamaños, colores, clientes, proyectos e imágenes se configuran desde el Personalizador mediante URLs de la Biblioteca de Medios.
Version: 5.6.2
Text Domain: terravita
*/

:root {
    --tv-ink: #171c18;
    --tv-ink-soft: #293129;
    --tv-green: #72815d;
    --tv-green-dark: #4f5d43;
    --tv-green-soft: #dfe6d5;
    --tv-sand: #f4f1e8;
    --tv-paper: #fbfaf6;
    --tv-white: #ffffff;
    --tv-line: rgba(23, 28, 24, 0.12);
    --tv-muted: #667068;
    --tv-shadow: 0 24px 70px rgba(19, 28, 20, 0.13);
    --tv-shadow-soft: 0 14px 40px rgba(19, 28, 20, 0.08);
    --tv-radius-sm: 18px;
    --tv-radius-md: 30px;
    --tv-radius-lg: 58px;
    --tv-container: 1220px;
    --tv-header-height: 84px;
    --tv-header-height-mobile: 68px;
    --tv-logo-width: 220px;
    --tv-logo-height: 64px;
    --tv-logo-width-tablet: 190px;
    --tv-logo-height-tablet: 56px;
    --tv-logo-width-mobile: 150px;
    --tv-logo-height-mobile: 46px;
    --tv-home-title-size: 66px;
    --tv-page-title-size: 58px;
    --tv-about-title-size: 46px;
    --tv-base-font-size: 16px;
    --tv-font-body: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --tv-font-heading: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --tv-marquee-duration: 28s;
    --tv-transition: 260ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--tv-ink);
    background: var(--tv-paper);
    font-family: var(--tv-font-body);
    font-size: var(--tv-base-font-size);
    line-height: 1.72;
    overflow-x: hidden;
}

body.tv-menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    color: var(--tv-white);
    background: var(--tv-green);
}

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

.tv-site-main {
    min-height: 60vh;
}

.tv-section {
    position: relative;
    padding: 96px 0;
}

.tv-soft-section {
    background: linear-gradient(135deg, rgba(223, 230, 213, 0.65), rgba(244, 241, 232, 0.36));
}

.tv-center {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.tv-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--tv-green-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.tv-kicker::before {
    width: 34px;
    height: 1px;
    content: "";
    background: currentColor;
}

.tv-kicker-light {
    color: rgba(255, 255, 255, 0.76);
}

.tv-section-title,
.tv-display-title,
.tv-home-hero h1,
.tv-service-panel h3,
.tv-project-card h3,
.tv-project-modal-content h2,
.tv-cta-section h2,
.tv-value-proposition h2 {
    font-family: var(--tv-font-heading);
    font-style: normal;
    font-weight: 760;
    letter-spacing: -0.035em;
}

.tv-section-title,
.tv-display-title {
    margin: 16px 0 22px;
    color: var(--tv-ink);
    line-height: 1.05;
}

.tv-section-title {
    max-width: 850px;
    font-size: clamp(2.2rem, 4.2vw, 4.4rem);
}

.tv-display-title {
    max-width: 930px;
    font-size: clamp(2.65rem, 5vw, var(--tv-page-title-size));
}

.tv-home-hero h1 em,
.tv-section-title em,
.tv-display-title em {
    color: var(--tv-green);
    font-style: normal;
}

.tv-lead {
    font-size: var(--tv-base-font-size);
    line-height: 1.72;
}

/* =========================================================
   TIPOGRAFÍA DE CONTENIDO UNIFICADA
   Todos los textos de lectura usan el mismo tamaño general.
   Los títulos, etiquetas y botones conservan su jerarquía.
========================================================= */
.tv-site-main p,
.tv-site-main li,
.tv-site-footer p,
.tv-page-subtitle,
.tv-lead,
.tv-home-hero-copy > p,
.tv-about-copy p,
.tv-story-copy p,
.tv-section-heading-split > p,
.tv-service-panel p,
.tv-service-detail-copy p,
.tv-project-card p,
.tv-project-modal-content p,
.tv-value-proposition p,
.tv-contact-copy p,
.tv-cta-section p,
.tv-legal-content p {
    font-size: var(--tv-base-font-size);
    line-height: 1.72;
}

.tv-site-main p,
.tv-site-footer p,
.tv-project-card p,
.tv-service-panel p,
.tv-page-subtitle,
.tv-value-proposition p,
.tv-legal-content p {
    text-align: justify;
    text-justify: inter-word;
}

.tv-btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform var(--tv-transition), box-shadow var(--tv-transition), background var(--tv-transition), color var(--tv-transition), border-color var(--tv-transition);
}

.tv-btn svg {
    width: 19px;
    height: 19px;
}

.tv-btn:hover {
    transform: translateY(-3px);
}

.tv-btn-primary {
    color: var(--tv-white);
    background: var(--tv-green);
    box-shadow: 0 16px 30px rgba(79, 93, 67, 0.24);
}

.tv-btn-primary:hover {
    background: var(--tv-green-dark);
    box-shadow: 0 20px 38px rgba(79, 93, 67, 0.32);
}

.tv-btn-dark {
    color: var(--tv-white);
    background: var(--tv-ink);
}

.tv-btn-dark:hover {
    background: var(--tv-green-dark);
}

.tv-btn-light {
    color: var(--tv-ink);
    background: var(--tv-white);
}

.tv-btn-ghost {
    border-color: rgba(23, 28, 24, 0.2);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(16px);
}

.tv-btn-ghost:hover {
    border-color: var(--tv-green);
    background: var(--tv-white);
}

.tv-btn-outline-light {
    color: var(--tv-white);
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
}

.tv-btn-outline-light:hover {
    color: var(--tv-ink);
    background: var(--tv-white);
}

.tv-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--tv-ink);
    font-weight: 800;
    text-decoration: none;
}

.tv-text-link span {
    transition: transform var(--tv-transition);
}

.tv-text-link:hover span {
    transform: translate(4px, -4px);
}

/* Header y logo completamente ajustables */
.tv-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--tv-header-height);
    border-bottom: 1px solid transparent;
    background: rgba(251, 250, 246, 0.88);
    backdrop-filter: blur(20px);
    transition: background var(--tv-transition), box-shadow var(--tv-transition), border-color var(--tv-transition);
}

.tv-site-header.is-scrolled {
    border-color: var(--tv-line);
    background: rgba(251, 250, 246, 0.97);
    box-shadow: 0 10px 34px rgba(23, 28, 24, 0.08);
}

.admin-bar .tv-site-header {
    top: 32px;
}

.tv-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 26px;
}

.tv-brand {
    display: flex !important;
    width: var(--tv-logo-width) !important;
    max-width: var(--tv-logo-width) !important;
    height: min(var(--tv-logo-height), calc(var(--tv-header-height) - 12px)) !important;
    max-height: calc(var(--tv-header-height) - 12px) !important;
    flex: 0 0 var(--tv-logo-width) !important;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    line-height: 0;
    text-decoration: none;
}

.tv-brand-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
}

.tv-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.tv-brand-text strong {
    font-size: 1.35rem;
    letter-spacing: 0.08em;
}

.tv-brand-text small {
    margin-top: 7px;
    color: var(--tv-green);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.29em;
}

.tv-nav {
    margin-left: auto;
}

.tv-menu-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tv-menu-list a {
    position: relative;
    display: inline-flex;
    padding: 11px 13px;
    font-size: 0.91rem;
    font-weight: 750;
    text-decoration: none;
}

.tv-menu-list a::after {
    position: absolute;
    right: 13px;
    bottom: 5px;
    left: 13px;
    height: 2px;
    content: "";
    background: var(--tv-green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--tv-transition);
}

.tv-menu-list a:hover::after,
.tv-menu-list .current-menu-item > a::after,
.tv-menu-list a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.tv-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--tv-ink);
    cursor: pointer;
}

.tv-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 4px;
    background: var(--tv-white);
    transition: transform var(--tv-transition), opacity var(--tv-transition);
}

.tv-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.tv-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.tv-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero del inicio */
.tv-home-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 68px 0 76px;
    overflow: hidden;
    background: linear-gradient(125deg, #f8f5ed 0%, #edf1e7 55%, #e8ede1 100%);
}

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

.tv-home-hero-bg.has-image {
    opacity: 0.16;
    filter: saturate(0.72) contrast(0.95);
}

.tv-home-hero-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(248, 245, 237, 0.98) 0%, rgba(248, 245, 237, 0.9) 42%, rgba(248, 245, 237, 0.3) 100%);
}

.tv-hero-curve {
    position: absolute;
    top: -340px;
    right: -250px;
    width: 780px;
    height: 780px;
    border: 1px solid rgba(114, 129, 93, 0.28);
    border-radius: 50%;
}

.tv-hero-curve::before,
.tv-hero-curve::after {
    position: absolute;
    border: 1px solid rgba(114, 129, 93, 0.18);
    border-radius: 50%;
    content: "";
}

.tv-hero-curve::before {
    inset: 90px;
}

.tv-hero-curve::after {
    inset: 190px;
}

.tv-hero-grid-lines {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: linear-gradient(rgba(79, 93, 67, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 93, 67, 0.15) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to right, transparent, black 52%, black 100%);
}

.tv-home-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.88fr);
    gap: 64px;
    align-items: center;
}

.tv-home-hero h1 {
    max-width: 720px;
    margin: 16px 0 24px;
    font-size: clamp(2.8rem, 4.5vw, var(--tv-home-title-size));
    line-height: 0.98;
}

.tv-home-hero h1 em {
    display: block;
}

.tv-home-hero-copy > p {
    max-width: 670px;
    margin: 0;
    color: #4b544c;
    font-size: 1.06rem;
}

.tv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.tv-hero-composition {
    position: relative;
    min-height: 450px;
}

.tv-hero-photo {
    position: absolute;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    box-shadow: var(--tv-shadow);
    transition: transform 500ms ease, box-shadow 500ms ease;
}

.tv-hero-photo:hover {
    box-shadow: 0 34px 84px rgba(19, 28, 20, 0.19);
    transform: translateY(-5px) scale(1.012);
}

.tv-hero-photo::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to top, rgba(23, 28, 24, 0.2), transparent 48%);
}

.tv-hero-photo.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--tv-green-dark);
    background: linear-gradient(145deg, #e7ecdf, #f7f4ea);
    text-align: center;
    box-shadow: none;
}

.tv-hero-photo.is-empty::after {
    display: none;
}

.tv-hero-photo-main {
    inset: 0 26px 62px 0;
    border-radius: 42px 108px 42px 42px;
}

.tv-hero-photo-small {
    right: 0;
    bottom: 0;
    width: 48%;
    height: 192px;
    border: 8px solid var(--tv-paper);
    border-radius: 66px 24px 24px 24px;
}

.tv-hero-floating-card {
    position: absolute;
    left: -28px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    border-radius: 22px 22px 48px 22px;
    color: var(--tv-white);
    background: var(--tv-ink);
    box-shadow: 0 22px 44px rgba(23, 28, 24, 0.24);
}

.tv-hero-floating-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--tv-ink);
    background: var(--tv-green-soft);
    font-size: 1.15rem;
}

.tv-hero-floating-card strong {
    display: block;
}

/* Carrusel infinito */
.tv-logo-strip {
    position: relative;
    z-index: 4;
    padding: 32px 0 38px;
    border-top: 1px solid var(--tv-line);
    border-bottom: 1px solid var(--tv-line);
    background: var(--tv-white);
    overflow: hidden;
}

.tv-logo-strip-heading {
    margin-bottom: 20px;
}

.tv-logo-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.tv-logo-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 22px;
    animation: tvLogoScroll var(--tv-marquee-duration) linear infinite;
    will-change: transform;
}

.tv-logo-marquee:hover .tv-logo-track,
.tv-logo-marquee:focus-within .tv-logo-track {
    animation-play-state: paused;
}

.tv-client-logo {
    display: flex;
    width: 210px;
    height: 92px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 18px 26px;
    border: 1px solid rgba(23, 28, 24, 0.08);
    border-radius: 24px 48px 24px 24px;
    color: var(--tv-ink-soft);
    background: var(--tv-paper);
    text-align: center;
    text-decoration: none;
    transition: transform var(--tv-transition), box-shadow var(--tv-transition), border-color var(--tv-transition), background var(--tv-transition);
}

.tv-client-logo:hover {
    z-index: 2;
    border-color: rgba(114, 129, 93, 0.42);
    background: var(--tv-white);
    box-shadow: var(--tv-shadow-soft);
    transform: translateY(-7px) rotate(-1deg);
}

.tv-client-logo img {
    width: 100%;
    height: 54px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter var(--tv-transition), opacity var(--tv-transition), transform var(--tv-transition);
}

.tv-client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.tv-client-logo span {
    font-weight: 800;
}

@keyframes tvLogoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 11px)); }
}

/* Quiénes somos en inicio */
.tv-about-intro {
    overflow: hidden;
}

.tv-about-layout {
    display: grid;
    grid-template-columns: minmax(410px, 0.92fr) minmax(0, 1.08fr);
    gap: 82px;
    align-items: center;
}

.tv-about-media {
    position: relative;
    min-height: 510px;
}

.tv-about-image {
    position: absolute;
    inset: 0 30px 28px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 42px 112px 42px 42px;
    background-position: center;
    background-size: cover;
    box-shadow: var(--tv-shadow);
}

.tv-about-image.is-empty {
    color: var(--tv-green-dark);
    background: linear-gradient(135deg, #dfe6d5, #f4f1e8);
    text-align: center;
    box-shadow: none;
}

.tv-about-stamp {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    width: 190px;
    min-height: 132px;
    place-items: center;
    padding: 18px;
    border: 7px solid var(--tv-paper);
    border-radius: 42px 42px 42px 90px;
    color: var(--tv-white);
    background: var(--tv-green);
    text-align: center;
    box-shadow: var(--tv-shadow-soft);
}

.tv-about-stamp span {
    font-size: 0.82rem;
    font-weight: 760;
    line-height: 1.35;
}

.tv-about-copy p {
    color: #4f584f;
    font-size: var(--tv-base-font-size);
    line-height: 1.72;
}

/* Los dos párrafos de “Quiénes somos” en el inicio quedan iguales. */
.tv-about-copy .tv-lead {
    font-size: var(--tv-base-font-size);
    line-height: 1.72;
}

.tv-section-heading {
    margin-bottom: 42px;
}

.tv-section-heading-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 46px;
}

.tv-section-heading-split > p {
    max-width: 440px;
    margin: 0 0 16px;
    color: var(--tv-muted);
}

/* Servicios del inicio: mismo tamaño */
.tv-services-home {
    background: var(--tv-white);
}

.tv-service-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.tv-service-panel,
.tv-service-panel-one,
.tv-service-panel-two,
.tv-service-panel-three {
    position: relative;
    min-height: 500px;
    margin-top: 0;
    overflow: hidden;
    border-radius: 36px 88px 36px 36px;
    color: var(--tv-white);
    background: var(--tv-ink);
    box-shadow: var(--tv-shadow-soft);
    transition: transform 420ms ease, box-shadow 420ms ease;
}

.tv-service-panel:nth-child(2) {
    border-radius: 78px 36px 36px 36px;
}

.tv-service-panel:nth-child(3) {
    border-radius: 36px 36px 92px 36px;
}

.tv-service-panel:hover {
    z-index: 2;
    box-shadow: var(--tv-shadow);
    transform: translateY(-12px);
}

.tv-service-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transition: transform 700ms ease;
}

.tv-service-image.is-empty {
    background: linear-gradient(145deg, #667356, #2b332c);
}

.tv-service-panel:hover .tv-service-image {
    transform: scale(1.08);
}

.tv-service-panel::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to top, rgba(14, 18, 15, 0.94) 0%, rgba(14, 18, 15, 0.5) 58%, rgba(14, 18, 15, 0.12) 100%);
}

.tv-service-panel-content {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 32px;
}

.tv-service-panel-content > span {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.tv-service-panel h3 {
    margin: 8px 0 12px;
    font-size: clamp(1.9rem, 2.7vw, 2.8rem);
    line-height: 1.06;
}

.tv-service-panel p {
    color: rgba(255, 255, 255, 0.78);
}

.tv-service-panel a {
    display: inline-flex;
    margin-top: 10px;
    color: var(--tv-white);
    font-weight: 800;
    text-decoration: none;
}

/* Hero de páginas internas */
.tv-page-hero {
    position: relative;
    min-height: 370px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(130deg, #eef2e8, #f7f3e9);
}

.tv-page-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding-top: 42px;
    padding-bottom: 42px;
}

.tv-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--tv-muted);
    font-size: 0.82rem;
}

.tv-breadcrumb a {
    text-decoration: none;
}

.tv-page-subtitle {
    max-width: 740px;
    margin: 0;
    color: var(--tv-muted);
    font-size: 1.05rem;
}

.tv-page-hero-orb {
    position: absolute;
    border: 1px solid rgba(114, 129, 93, 0.24);
    border-radius: 50%;
}

.tv-page-hero-orb-one {
    top: -270px;
    right: -90px;
    width: 660px;
    height: 660px;
}

.tv-page-hero-orb-two {
    right: 220px;
    bottom: -300px;
    width: 520px;
    height: 520px;
}

.tv-page-hero-mark {
    position: relative;
    display: grid;
    width: 160px;
    height: 160px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--tv-green);
    transform: rotate(-8deg);
}

.tv-page-hero-mark span {
    position: absolute;
    width: 82px;
    height: 1px;
    background: rgba(255, 255, 255, 0.78);
}

.tv-page-hero-mark span:nth-child(1) { transform: rotate(0deg); }
.tv-page-hero-mark span:nth-child(2) { transform: rotate(60deg); }
.tv-page-hero-mark span:nth-child(3) { transform: rotate(-60deg); }

/* Quiénes somos */
.tv-story-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
    gap: 80px;
    align-items: center;
}

.tv-story-copy p {
    color: #4f584f;
    font-size: var(--tv-base-font-size);
    line-height: 1.72;
}

/* Título principal de la página “Quiénes somos”.
   Es deliberadamente más contenido que los demás títulos internos y
   continúa siendo ajustable desde el Personalizador. */
.tv-story-copy .tv-section-title {
    max-width: 760px;
    font-size: clamp(2rem, 2.8vw, var(--tv-about-title-size));
    line-height: 1.08;
}

.tv-story-media {
    position: relative;
    min-height: 540px;
}

.tv-story-image {
    position: absolute;
    inset: 0 0 50px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 108px 36px 36px 36px;
    background-position: center;
    background-size: cover;
    box-shadow: var(--tv-shadow);
}

.tv-story-image.is-empty {
    color: var(--tv-green-dark);
    background: linear-gradient(135deg, #dfe6d5, #f4f1e8);
    text-align: center;
    box-shadow: none;
}

.tv-story-note {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    width: min(330px, 82%);
    min-height: 120px;
    justify-content: center;
    flex-direction: column;
    padding: 25px;
    border-radius: 28px 28px 70px 28px;
    color: var(--tv-white);
    background: var(--tv-ink);
    box-shadow: var(--tv-shadow-soft);
}

.tv-story-note span {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 760;
    line-height: 1.4;
}

.tv-value-proposition {
    position: relative;
    padding: 92px 0;
    overflow: hidden;
    color: var(--tv-white);
    background: var(--tv-ink);
}

.tv-value-orb {
    position: absolute;
    top: -280px;
    right: -120px;
    width: 650px;
    height: 650px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.tv-value-proposition-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 70px;
    align-items: center;
}

.tv-value-proposition h2 {
    margin: 16px 0 0;
    color: var(--tv-white);
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 1.02;
}

.tv-value-proposition p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1.08rem, 1.5vw, 1.3rem);
    line-height: 1.8;
}

/* Página Servicios */
.tv-service-detail {
    display: grid;
    grid-template-columns: minmax(390px, 0.95fr) minmax(0, 1.05fr);
    gap: 74px;
    align-items: center;
}

.tv-service-detail-media {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 42px 110px 42px 42px;
    background-position: center;
    background-size: cover;
    box-shadow: var(--tv-shadow);
}

.tv-service-detail-right .tv-service-detail-media {
    border-radius: 110px 42px 42px 42px;
}

.tv-service-detail-media.is-empty {
    color: var(--tv-green-dark);
    background: linear-gradient(135deg, #dfe6d5, #f4f1e8);
    text-align: center;
    box-shadow: none;
}

.tv-service-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 50%;
    color: var(--tv-white);
    background: var(--tv-ink);
    font-weight: 800;
}

.tv-check-list {
    display: grid;
    gap: 13px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.tv-check-list li {
    position: relative;
    padding-left: 29px;
}

.tv-check-list li::before {
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    content: "";
    background: var(--tv-green);
}

/* Proyectos */
.tv-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tv-project-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(23, 28, 24, 0.08);
    border-radius: 30px 68px 30px 30px;
    background: var(--tv-white);
    box-shadow: 0 10px 30px rgba(23, 28, 24, 0.05);
    cursor: pointer;
    outline: none;
    transition: transform 420ms ease, box-shadow 420ms ease, border-color 420ms ease;
}

.tv-project-card:nth-child(even) {
    border-radius: 68px 30px 30px 30px;
}

.tv-project-card:hover,
.tv-project-card:focus-visible {
    border-color: rgba(114, 129, 93, 0.42);
    box-shadow: var(--tv-shadow);
    transform: translateY(-10px);
}

.tv-project-media,
.tv-project-text-cover {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.tv-project-media {
    background-position: center;
    background-size: cover;
}

.tv-project-text-cover {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    gap: 4px;
    padding: 28px;
    color: var(--tv-white);
    background: radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.14), transparent 34%), linear-gradient(145deg, var(--tv-green-dark), var(--tv-ink));
}

.tv-project-text-cover::before,
.tv-project-text-cover::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.tv-project-text-cover::before {
    top: -110px;
    right: -90px;
    width: 280px;
    height: 280px;
}

.tv-project-text-cover::after {
    top: -52px;
    right: -32px;
    width: 164px;
    height: 164px;
}

.tv-project-text-cover strong,
.tv-project-text-cover > span:last-child {
    position: relative;
    z-index: 2;
}

.tv-project-text-cover strong {
    max-width: 85%;
    font-size: 1.35rem;
    line-height: 1.2;
}

.tv-project-text-cover > span:last-child {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.83rem;
}

.tv-project-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(19, 25, 20, 0.58), transparent 58%);
    opacity: 0.76;
    transition: opacity var(--tv-transition);
}

.tv-project-card:hover .tv-project-shade {
    opacity: 0.95;
}

.tv-project-category {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 20px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--tv-white);
    background: rgba(20, 25, 21, 0.72);
    backdrop-filter: blur(12px);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tv-project-body {
    padding: 26px 28px 30px;
}

.tv-project-client {
    color: var(--tv-green-dark);
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.tv-project-card h3 {
    margin: 10px 0;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.12;
}

.tv-project-card p {
    margin: 0;
    color: var(--tv-muted);
}

.tv-project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.9rem;
    font-weight: 850;
}

.tv-project-link span {
    transition: transform var(--tv-transition);
}

.tv-project-card:hover .tv-project-link span {
    transform: translate(4px, -4px);
}

.tv-project-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tv-project-filter button {
    padding: 11px 19px;
    border: 1px solid var(--tv-line);
    border-radius: 999px;
    color: var(--tv-ink);
    background: var(--tv-white);
    font-weight: 800;
    cursor: pointer;
    transition: all var(--tv-transition);
}

.tv-project-filter button:hover,
.tv-project-filter button.is-active {
    color: var(--tv-white);
    border-color: var(--tv-ink);
    background: var(--tv-ink);
}

.tv-project-card.is-hidden {
    display: none;
}

/* Contacto */
.tv-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(470px, 1.12fr);
    gap: 80px;
    align-items: start;
}

.tv-contact-cards {
    display: grid;
    gap: 12px;
    margin-top: 36px;
}

.tv-contact-cards > * {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    border: 1px solid var(--tv-line);
    border-radius: 18px 38px 18px 18px;
    background: rgba(255, 255, 255, 0.56);
    text-decoration: none;
}

.tv-contact-cards span {
    color: var(--tv-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tv-contact-cards strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.tv-contact-form-card {
    padding: 38px;
    border: 1px solid rgba(23, 28, 24, 0.08);
    border-radius: 34px 78px 34px 34px;
    background: var(--tv-white);
    box-shadow: var(--tv-shadow-soft);
}

.tv-contact-form {
    display: grid;
    gap: 18px;
}

.tv-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tv-contact-form label {
    display: grid;
    gap: 7px;
    font-size: 0.84rem;
    font-weight: 800;
}

.tv-contact-form input,
.tv-contact-form textarea,
.tv-contact-form select {
    width: 100%;
    border: 1px solid rgba(23, 28, 24, 0.14);
    border-radius: 14px;
    padding: 13px 14px;
    color: var(--tv-ink);
    background: var(--tv-paper);
    outline: none;
    transition: border-color var(--tv-transition), box-shadow var(--tv-transition);
}

.tv-contact-form input:focus,
.tv-contact-form textarea:focus,
.tv-contact-form select:focus {
    border-color: var(--tv-green);
    box-shadow: 0 0 0 3px rgba(114, 129, 93, 0.14);
}

.tv-checkbox {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.tv-checkbox input {
    width: auto;
}

.tv-form-message {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
}

.tv-form-message.is-success {
    color: #294a2e;
    background: #e2f2e3;
}

.tv-form-message.is-error {
    color: #7a2e2e;
    background: #f7e3e3;
}

.tv-legal-content,
.tv-entry-content {
    max-width: 900px;
}

/* CTA */
.tv-cta-section {
    position: relative;
    padding: 84px 0;
    overflow: hidden;
    color: var(--tv-white);
    background: var(--tv-green-dark);
}

.tv-cta-shape {
    position: absolute;
    top: -300px;
    right: -170px;
    width: 720px;
    height: 720px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.tv-cta-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 60px;
    align-items: center;
}

.tv-cta-section h2 {
    max-width: 760px;
    margin: 14px 0 16px;
    font-size: clamp(2.2rem, 4.5vw, 4.6rem);
    line-height: 1.02;
}

.tv-cta-section p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.tv-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

/* Footer */
.tv-site-footer {
    position: relative;
    padding: 76px 0 24px;
    overflow: hidden;
    color: var(--tv-white);
    background: var(--tv-ink);
}

.tv-footer-wave {
    position: absolute;
    top: -480px;
    left: 50%;
    width: 1100px;
    height: 680px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform: translateX(-50%);
}

.tv-footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 1fr 0.7fr;
    gap: 44px;
}

.tv-footer-brand .tv-brand {
    --tv-logo-width: min(240px, 100%);
    --tv-logo-height: 64px;
    filter: brightness(0) invert(1);
}

.tv-footer-brand p {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.62);
}

.tv-site-footer h3 {
    margin: 0 0 17px;
    font-size: 1rem;
}

.tv-site-footer ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tv-site-footer li,
.tv-site-footer a {
    color: rgba(255, 255, 255, 0.66);
    text-decoration: none;
}

.tv-site-footer a:hover {
    color: var(--tv-white);
}

.tv-footer-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 54px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
}

/* WhatsApp */
.tv-floating-whatsapp {
    position: fixed;
    z-index: 980;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 0 18px 0 9px;
    border-radius: 999px;
    color: var(--tv-white);
    background: #25d366;
    box-shadow: 0 16px 36px rgba(26, 38, 28, 0.25);
    font-weight: 800;
    text-decoration: none;
    transition: transform var(--tv-transition), box-shadow var(--tv-transition), background var(--tv-transition);
}

.tv-floating-whatsapp:hover {
    background: #1fbd5a;
    box-shadow: 0 20px 42px rgba(26, 38, 28, 0.32);
    transform: translateY(-4px);
}

.tv-whatsapp-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: #25d366;
    background: var(--tv-white);
}

.tv-whatsapp-icon svg {
    width: 24px;
    height: 24px;
}

/* Modal */
.tv-project-modal {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--tv-transition), visibility var(--tv-transition);
}

.tv-project-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.tv-project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 11, 0.74);
    backdrop-filter: blur(8px);
}

.tv-project-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(1060px, 100%);
    max-height: calc(100vh - 44px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: auto;
    border-radius: 36px 90px 36px 36px;
    background: var(--tv-white);
    box-shadow: 0 38px 120px rgba(0, 0, 0, 0.35);
}

.tv-project-modal-media {
    min-height: 540px;
    background: linear-gradient(145deg, #dfe6d5, #f4f1e8);
    background-position: center;
    background-size: cover;
}

.tv-project-modal-media.is-text-only {
    position: relative;
    background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.14), transparent 34%), linear-gradient(145deg, var(--tv-green-dark), var(--tv-ink));
}

.tv-project-modal-media.is-text-only::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 48px;
    color: #ffffff;

    content: attr(data-project-title);

    text-align: center;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    text-wrap: balance;
}

.tv-project-modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 58px 44px;
}

.tv-project-modal-content .tv-project-category {
    position: static;
    align-self: flex-start;
    margin-bottom: 16px;
}

.tv-project-modal-content h2 {
    margin: 14px 0 18px;
    font-size: clamp(2rem, 3.6vw, 3.6rem);
    line-height: 1.05;
}

.tv-project-modal-content p {
    color: var(--tv-muted);
}

.tv-project-modal-close {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--tv-white);
    background: var(--tv-ink);
    font-size: 1.6rem;
    cursor: pointer;
}

/* Reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

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

/* Responsive */
@media (max-width: 1100px) {
    .tv-home-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
        gap: 40px;
    }

    .tv-brand {
        width: var(--tv-logo-width-tablet) !important;
        max-width: var(--tv-logo-width-tablet) !important;
        height: min(var(--tv-logo-height-tablet), calc(var(--tv-header-height) - 12px)) !important;
        flex-basis: var(--tv-logo-width-tablet) !important;
    }

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

    .tv-footer-grid {
        grid-template-columns: 1.25fr 0.75fr 1fr;
    }

    .tv-footer-grid > div:last-child {
        grid-column: 2 / 4;
    }
}

@media (max-width: 980px) {
    .tv-site-header {
        height: var(--tv-header-height-mobile);
    }

    .admin-bar .tv-site-header {
        top: 32px;
    }

    .tv-brand {
        width: var(--tv-logo-width-tablet) !important;
        max-width: var(--tv-logo-width-tablet) !important;
        height: min(var(--tv-logo-height-tablet), calc(var(--tv-header-height-mobile) - 10px)) !important;
        max-height: calc(var(--tv-header-height-mobile) - 10px) !important;
        flex-basis: var(--tv-logo-width-tablet) !important;
    }

    .tv-nav {
        position: fixed;
        z-index: 999;
        top: var(--tv-header-height-mobile);
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: flex-start;
        padding: 34px 20px;
        background: rgba(251, 250, 246, 0.99);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-14px);
        transition: opacity var(--tv-transition), visibility var(--tv-transition), transform var(--tv-transition);
    }

    .admin-bar .tv-nav {
        top: calc(var(--tv-header-height-mobile) + 32px);
    }

    .tv-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .tv-menu-list {
        width: min(100%, 620px);
        margin-inline: auto;
        align-items: stretch;
        flex-direction: column;
    }

    .tv-menu-list a {
        display: flex;
        justify-content: space-between;
        padding: 17px 4px;
        border-bottom: 1px solid var(--tv-line);
        font-size: 1.7rem;
        font-weight: 760;
    }

    .tv-menu-list a::after {
        display: none;
    }

    .tv-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .tv-home-hero {
        min-height: auto;
        padding: 62px 0 68px;
    }

    .tv-home-hero-grid,
    .tv-about-layout,
    .tv-story-layout,
    .tv-contact-layout,
    .tv-service-detail,
    .tv-cta-grid,
    .tv-value-proposition-grid {
        grid-template-columns: 1fr;
    }

    .tv-home-hero-grid,
    .tv-about-layout,
    .tv-story-layout,
    .tv-contact-layout,
    .tv-service-detail {
        gap: 50px;
    }

    .tv-hero-composition {
        min-height: 500px;
    }

    .tv-about-media,
    .tv-story-media {
        min-height: 500px;
    }

    .tv-section-heading-split {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .tv-service-detail-right .tv-service-detail-copy {
        order: 2;
    }

    .tv-service-detail-right .tv-service-detail-media {
        order: 1;
    }

    .tv-cta-actions {
        justify-content: flex-start;
    }

    .tv-page-hero-mark {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 782px) {
    .admin-bar .tv-site-header {
        top: 46px;
    }

    .admin-bar .tv-nav {
        top: calc(var(--tv-header-height-mobile) + 46px);
    }
}

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

    .tv-section {
        padding: 72px 0;
    }

    .tv-brand {
        width: var(--tv-logo-width-mobile) !important;
        max-width: var(--tv-logo-width-mobile) !important;
        height: min(var(--tv-logo-height-mobile), calc(var(--tv-header-height-mobile) - 10px)) !important;
        max-height: calc(var(--tv-header-height-mobile) - 10px) !important;
        flex-basis: var(--tv-logo-width-mobile) !important;
    }

    .tv-home-hero {
        padding: 50px 0 56px;
    }

    .tv-home-hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .tv-home-hero-copy > p {
        font-size: 1rem;
    }

    .tv-hero-composition {
        min-height: 400px;
    }

    .tv-hero-photo-main {
        inset: 0 14px 52px 0;
        border-radius: 34px 80px 34px 34px;
    }

    .tv-hero-photo-small {
        width: 54%;
        height: 158px;
    }

    .tv-hero-floating-card {
        left: 8px;
        bottom: 14px;
    }

    .tv-client-logo {
        width: 175px;
        height: 78px;
        padding: 15px 20px;
    }

    .tv-about-media,
    .tv-story-media {
        min-height: 420px;
    }

    .tv-about-image {
        inset: 0 20px 20px 0;
        border-radius: 34px 86px 34px 34px;
    }

    .tv-about-stamp {
        width: 165px;
        min-height: 115px;
    }

    .tv-service-flow,
    .tv-project-grid {
        grid-template-columns: 1fr;
    }

    .tv-service-panel,
    .tv-service-panel-one,
    .tv-service-panel-two,
    .tv-service-panel-three {
        min-height: 430px;
    }

    .tv-page-hero {
        min-height: 330px;
    }

    .tv-page-hero-mark {
        display: none;
    }

    .tv-story-image {
        inset: 0 0 44px 16px;
        border-radius: 76px 30px 30px 30px;
    }

    .tv-story-note {
        width: 245px;
        min-height: 112px;
    }

    .tv-service-detail-media {
        min-height: 380px;
    }

    .tv-contact-form-card {
        padding: 25px;
        border-radius: 28px 62px 28px 28px;
    }

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

    .tv-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tv-footer-brand {
        grid-column: 1 / -1;
    }

    .tv-footer-grid > div:last-child {
        grid-column: auto;
    }

    .tv-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .tv-project-modal-dialog {
        grid-template-columns: 1fr;
        border-radius: 28px 58px 28px 28px;
    }

    .tv-project-modal-media {
        min-height: 260px;
    }

    .tv-project-modal-content {
        padding: 34px 24px;
    }

    .tv-floating-whatsapp {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-width: 760px) {
    .tv-story-copy .tv-section-title {
        font-size: clamp(2.05rem, 9vw, 2.85rem);
    }
}

@media (max-width: 470px) {
    .tv-home-hero h1 {
        font-size: 2.65rem;
    }

    .tv-hero-actions .tv-btn {
        width: 100%;
    }

    .tv-hero-composition {
        min-height: 330px;
    }

    .tv-hero-photo-small {
        height: 128px;
    }

    .tv-hero-floating-card {
        display: none;
    }

    .tv-section-title {
        font-size: 2.35rem;
    }

    .tv-display-title {
        font-size: 2.75rem;
    }

    .tv-footer-grid {
        grid-template-columns: 1fr;
    }

    .tv-floating-whatsapp > span:last-child {
        display: none;
    }

    .tv-floating-whatsapp {
        width: 54px;
        height: 54px;
        justify-content: center;
        padding: 0;
    }
}

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

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   AJUSTE 5.2 · TAMAÑO UNIFICADO PARA TEXTOS DE LECTURA
   Todos los párrafos, descripciones y listas del contenido usan el mismo
   tamaño configurable. Los títulos, menús, etiquetas y botones mantienen
   su propia jerarquía visual.
========================================================= */
.tv-site-main p,
.tv-site-main li,
.tv-site-main .tv-lead,
.tv-site-main .tv-page-subtitle,
.tv-site-main .tv-home-hero-copy > p,
.tv-site-main .tv-about-copy p,
.tv-site-main .tv-story-copy p,
.tv-site-main .tv-section-heading-split > p,
.tv-site-main .tv-service-panel p,
.tv-site-main .tv-service-detail-copy p,
.tv-site-main .tv-project-card p,
.tv-site-main .tv-project-modal-content p,
.tv-site-main .tv-value-proposition p,
.tv-site-main .tv-contact-copy p,
.tv-site-main .tv-cta-section p,
.tv-site-main .tv-legal-content p,
.tv-site-footer p {
    font-size: var(--tv-base-font-size) !important;
    line-height: 1.72 !important;
}

/* Los dos textos de “Quiénes somos” en el inicio quedan exactamente iguales. */
.tv-about-copy > p,
.tv-about-copy > p.tv-lead {
    font-size: var(--tv-base-font-size) !important;
    line-height: 1.72 !important;
    font-weight: 400 !important;
}

/* Título de la sección principal de Quiénes somos: más pequeño en todos los equipos. */
.tv-story-copy .tv-section-title {
    font-size: clamp(2rem, 2.8vw, var(--tv-about-title-size)) !important;
}

@media (max-width: 760px) {
    .tv-story-copy .tv-section-title {
        font-size: clamp(1.95rem, 8.5vw, 2.7rem) !important;
    }
}


/* Título del carrusel de clientes centrado y sin línea decorativa. */
.tv-logo-strip-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.tv-logo-strip-heading .tv-kicker {
    justify-content: center;
    text-align: center;
}

.tv-logo-strip-heading .tv-kicker::before {
    display: none !important;
    content: none !important;
}

/* =========================================================
   LOGOS DE CLIENTES A COLOR Y SIN CONTENEDOR
========================================================= */

.tv-client-logo {
    display: flex !important;
    width: 210px;
    height: 90px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    /* Elimina el cuadro */
    padding: 6px 14px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: var(--tv-ink);
    text-align: center;
    text-decoration: none;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease !important;
}

/* Logo siempre a color */
.tv-client-logo img {
    display: block;
    width: 100%;
    height: 68px;
    max-width: 180px;
    object-fit: contain;

    filter: none !important;
    opacity: 1 !important;

    transition: transform 0.3s ease !important;
}

/* Hover limpio, sin volver a crear el cuadro */
.tv-client-logo:hover {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-4px) scale(1.04) !important;
}

.tv-client-logo:hover img {
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1.06);
}

/* También elimina el cuadro al navegar con teclado */
.tv-client-logo:focus,
.tv-client-logo:focus-visible {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 2px solid rgba(114, 129, 93, 0.45);
    outline-offset: 5px;
}

/* Texto de respaldo cuando no hay logo */
.tv-client-logo span {
    font-weight: 700;
    color: var(--tv-ink);
    background: transparent;
}

/* Responsive */
@media (max-width: 760px) {
    .tv-client-logo {
        width: 170px;
        height: 76px;
        padding: 5px 10px !important;
    }

    .tv-client-logo img {
        height: 56px;
        max-width: 150px;
    }
}


/* Logo completo visible en la primera sección del home */
.tv-home-hero-logo {
    display: block;
    width: min(460px, 88%);
    height: auto;
    max-height: 180px;
    margin: 0 0 24px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 760px) {
    .tv-home-hero-logo {
        width: min(340px, 86%);
        max-height: 140px;
        margin-bottom: 20px;
    }
}

/* =========================================================
   AJUSTE 5.3.3 · JERARQUÍA TIPOGRÁFICA UNIFICADA
   Único cambio de esta versión:
   - Todos los títulos principales del contenido usan el mismo tamaño.
   - Todos los párrafos, descripciones y listas usan el mismo tamaño.
========================================================= */

:root {
    --tv-unified-title-size: clamp(2rem, 3vw, 2.6rem);
}

/* Todos los títulos visibles del contenido comparten exactamente el mismo tamaño. */
.tv-site-main h1,
.tv-site-main h2,
.tv-site-main h3,
.tv-project-modal-content h2,
.tv-project-text-cover strong {
    font-size: var(--tv-unified-title-size) !important;
    line-height: 1.08 !important;
}

/* Todos los textos de lectura y descripciones comparten el mismo tamaño. */
.tv-site-main p,
.tv-site-main li,
.tv-site-main .tv-lead,
.tv-site-main .tv-page-subtitle,
.tv-site-main .tv-home-hero-copy > p,
.tv-site-main .tv-about-copy p,
.tv-site-main .tv-story-copy p,
.tv-site-main .tv-section-heading-split > p,
.tv-site-main .tv-service-panel p,
.tv-site-main .tv-service-detail-copy p,
.tv-site-main .tv-project-card p,
.tv-project-modal-content p,
.tv-site-main .tv-value-proposition p,
.tv-site-main .tv-contact-copy p,
.tv-site-main .tv-cta-section p,
.tv-site-main .tv-legal-content p,
.tv-site-footer p {
    font-size: var(--tv-base-font-size) !important;
    line-height: 1.72 !important;
}

@media (max-width: 760px) {
    :root {
        --tv-unified-title-size: 2rem;
    }
}


/* =========================================================
   PROYECTOS · TÍTULO MÁS COMPACTO EN VENTANA EMERGENTE
========================================================= */
.tv-project-modal-content h2 {
    font-size: clamp(1.45rem, 2vw, 2rem) !important;
    line-height: 1.15 !important;
}

.tv-project-modal-media.is-text-only::after {
    font-size: clamp(1.35rem, 2vw, 2rem) !important;
    line-height: 1.18 !important;
}

/* =========================================================
   TERRAVITA 5.6 · PROYECTOS Y SERVICIOS ADMINISTRABLES
========================================================= */

/* El título del card es deliberadamente más pequeño que los títulos generales. */
.tv-site-main .tv-project-card h3,
.tv-project-text-cover strong {
    font-size: clamp(1.08rem, 1.35vw, 1.42rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.015em !important;
}

.tv-project-photo-count {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 18px;
    display: grid;
    min-width: 38px;
    height: 38px;
    place-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    color: #fff;
    background: rgba(20,25,21,.72);
    backdrop-filter: blur(10px);
    font-size: .8rem;
    font-weight: 800;
}

.tv-project-modal-media {
    position: relative;
    transition: background-image .25s ease, opacity .25s ease;
}

.tv-project-gallery-nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    color: #fff;
    background: rgba(15,20,16,.68);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform .2s ease, background .2s ease;
}

.tv-project-gallery-nav:hover {
    background: rgba(15,20,16,.9);
    transform: translateY(-50%) scale(1.06);
}

.tv-project-gallery-prev { left: 18px; }
.tv-project-gallery-next { right: 18px; }
.tv-project-gallery-nav[hidden] { display: none !important; }

.tv-project-gallery-dots {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 18px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
    pointer-events: none;
}

.tv-project-gallery-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.tv-project-gallery-dots span.is-active {
    width: 22px;
    border-radius: 999px;
    background: #fff;
}

.tv-project-modal-media.is-text-only .tv-project-gallery-nav,
.tv-project-modal-media.is-text-only .tv-project-gallery-dots {
    display: none !important;
}

/* Cuando se crean más servicios, la grilla continúa en nuevas filas sin deformarse. */
.tv-service-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .tv-service-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .tv-service-flow { grid-template-columns: 1fr; }
    .tv-project-gallery-nav { width: 40px; height: 40px; }
}
