/* =========================================================
   Del Este Gestoría - skin y componentes propios sobre Porto
   ========================================================= */

/* ---------- Tipografía (servida localmente) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/poppins-300.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700.woff2) format("woff2"); }

/* ---------- Skin: colores de la marca ---------- */
:root {
	--border-radius: 0;
	--border-radius2x: 0;
	--default: #6b6b6b;

	--brand-red: #BC1C1C;
	--brand-red-dark: #8E1515;
	--brand-gray: #595959;
	--brand-ink: #2B2B2B;

	--primary: #BC1C1C;
	--primary-100: #a41818;
	--primary-200: #991616;
	--primary-300: #8e1515;
	--primary--100: #d21f1f;
	--primary--200: #dc2525;
	--primary--300: #df3030;
	--primary-rgba-0: rgba(188, 28, 28, 0);
	--primary-rgba-10: rgba(188, 28, 28, 0.1);
	--primary-rgba-20: rgba(188, 28, 28, 0.2);
	--primary-rgba-30: rgba(188, 28, 28, 0.3);
	--primary-rgba-40: rgba(188, 28, 28, 0.4);
	--primary-rgba-50: rgba(188, 28, 28, 0.5);
	--primary-rgba-60: rgba(188, 28, 28, 0.6);
	--primary-rgba-70: rgba(188, 28, 28, 0.7);
	--primary-rgba-80: rgba(188, 28, 28, 0.8);
	--primary-rgba-90: rgba(188, 28, 28, 0.9);

	--secondary: #595959;
	--secondary-100: #4c4c4c;
	--secondary-200: #464646;
	--secondary-300: #404040;
	--secondary--100: #666666;
	--secondary--200: #6c6c6c;
	--secondary--300: #737373;
	--secondary-rgba-10: rgba(89, 89, 89, 0.1);
	--secondary-rgba-50: rgba(89, 89, 89, 0.5);

	--tertiary: #8E1515;
	--tertiary-100: #781212;
	--tertiary-200: #6d1010;
	--tertiary-300: #620e0e;
	--tertiary--100: #a41818;
	--tertiary--200: #af1a1a;
	--tertiary--300: #ba1b1b;

	--quaternary: #2B2B2B;
	--quaternary-100: #1e1e1e;
	--quaternary-200: #181818;
	--quaternary-300: #121212;
	--quaternary--100: #383838;
	--quaternary--200: #3e3e3e;
	--quaternary--300: #454545;

	--dark: #1f2124;
	--dark-100: #16181b;
	--dark-200: #101214;
	--dark-300: #0a0c0d;
	--dark--100: #2c3237;
	--dark--200: #32383e;
	--dark--300: #383f45;
	--dark-rgba-50: rgba(31, 33, 36, 0.5);

	--light: #FFF;
	--light-100: #f2f2f2;
	--light-200: #ececec;
	--light-300: #e6e6e6;
	--light--100: #ffffff;
	--light--200: #ffffff;
	--light--300: #ffffff;
	--light-rgba-10: rgba(255, 255, 255, 0.1);
	--light-rgba-20: rgba(255, 255, 255, 0.2);
	--light-rgba-50: rgba(255, 255, 255, 0.5);
	--light-rgba-70: rgba(255, 255, 255, 0.7);

	--primary-inverse: #FFF;
	--secondary-inverse: #FFF;
	--tertiary-inverse: #FFF;
	--quaternary-inverse: #FFF;
	--dark-inverse: #FFF;
	--light-inverse: #777;

	--grey: #969696;
	--grey-100: #f5f4f4;
	--grey-200: #eaeaea;
	--grey-300: #e5e5e5;
	--grey-400: #e0e0e0;
	--grey-500: #dbdbdb;
	--grey-600: #cecece;
	--grey-700: #c1c1c1;
	--grey-800: #a8a8a8;
	--grey-900: #8e8e8e;
	--grey-1000: #757575;
}

/* Elementos de Porto que dependen del skin */
.custom-highlight-text-1:before { border-bottom-color: var(--primary); }
.custom-header-top-nav-background:before { background: var(--primary); }
.custom-header-top-nav-background:after { background: var(--primary--300); }
.custom-accordion-style-1 > .card .card-header a:not(.collapsed) { background-color: var(--primary); color: var(--primary-inverse) !important; }
.custom-accordion-style-1 > .card:hover .card-header a.collapsed { color: var(--primary) !important; }
#footer p, #footer li, #footer a:not(.btn):not(.no-footer-css), #footer span { color: #b3b3b3; }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { color: #5f5f5f; }
::selection { background: var(--primary); color: #fff; }
a { color: var(--primary); }
.text-color-ink { color: var(--brand-ink) !important; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--primary); color: #fff; padding: .75rem 1.25rem; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }
:focus-visible { outline: 3px solid rgba(188, 28, 28, .45); outline-offset: 2px; }

/* Animaciones de aparición (reemplazo liviano de theme.js) */
.animated { animation-duration: .9s; animation-fill-mode: both; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.appear-animation { opacity: 1 !important; animation: none !important; }
}

/* ---------- Cabecera ---------- */
#header { position: sticky; top: -46px; z-index: 1030; }
#header .header-body { border-top: 0; transition: box-shadow .3s ease; }
#header.is-scrolled .header-body { box-shadow: 0 10px 30px rgba(0, 0, 0, .07); }
#header .header-container { height: 96px; transition: height .3s ease; }
#header.is-scrolled .header-container { height: 76px; }
#header .header-logo img { height: 52px; width: auto; transition: height .3s ease; }
#header.is-scrolled .header-logo img { height: 44px; }
#header .header-top { min-height: 46px; }
#header .header-nav-main nav > ul > li > a { font-weight: 500; }
#header .header-nav-main nav > ul > li > a.active,
#header .header-nav-main nav > ul > li:hover > a { color: var(--primary) !important; }
.de-topbar-link { color: #fff !important; font-weight: 600; font-size: .9rem; text-decoration: none; }
.de-topbar-link:hover { color: #fff; text-decoration: underline; }
.de-topbar-text { font-size: .85rem; font-weight: 500; color: #4a4a4a; }
#header .header-btn-collapse-nav { background: var(--primary); }
@media (max-width: 991px) {
	#header { top: 0; }
	#header .header-top { display: none; }
	#header .header-container, #header.is-scrolled .header-container { height: 72px; }
	#header .header-logo img, #header.is-scrolled .header-logo img { height: 40px; }
	#header .header-nav-main nav { max-height: calc(100vh - 80px); overflow-y: auto; }
}

/* ---------- Botones ---------- */
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary-100); --bs-btn-hover-border-color: var(--primary-100); }
.btn-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.btn-whatsapp:hover, .btn-whatsapp:focus { background: #1ebe5a; border-color: #1ebe5a; color: #fff; }
.btn-outline-light-de { border: 2px solid rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-outline-light-de:hover { background: #fff; color: var(--primary); border-color: #fff; }
.custom-btn-style-1 { border-radius: 0; }

/* ---------- Hero tipo tarjeta ---------- */
.de-hero { position: relative; min-height: 680px; display: flex; align-items: center; overflow: hidden; background: var(--brand-red-dark); }
.de-hero-media { position: absolute; inset: 0 0 0 38%; background-size: cover; background-position: center; }
.de-hero-media:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 8, 8, .35), rgba(20, 8, 8, 0) 40%); }
.de-hero-panel { position: absolute; inset: 0 auto 0 0; width: 58%; background: linear-gradient(135deg, #c62020 0%, #a5171a 60%, #8a1216 100%); clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.de-hero-panel:after { content: ""; position: absolute; left: -6%; bottom: -14%; width: 64%; aspect-ratio: 347 / 243; background: url(../img/brand/monograma-blanco.svg) no-repeat center / contain; opacity: .07; }
.de-hero .container { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 170px; }
.de-hero-kicker { display: inline-flex; align-items: center; gap: .6rem; color: rgba(255, 255, 255, .85); font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.25rem; }
.de-hero-kicker:before { content: ""; width: 34px; height: 2px; background: #fff; }
.de-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.de-hero h1 span { display: block; font-weight: 300; }
.de-hero p.lead { color: rgba(255, 255, 255, .9); font-size: 1.08rem; line-height: 1.75; max-width: 520px; }
.de-hero-agencies { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 2rem 0 0; list-style: none; }
.de-hero-agencies li { border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .08em; padding: .3rem .65rem; }
.de-hero-agencies li a { color: inherit; text-decoration: none; }
.de-hero .shape-divider { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; pointer-events: none; }
.de-hero .shape-divider svg { display: block; }
.de-hero-kicker.de-rise { margin-bottom: 1.25rem; }
@media (max-width: 991px) {
	.de-hero { min-height: 0; }
	.de-hero-media { inset: 0; }
	.de-hero-panel { width: 100%; clip-path: none; background: linear-gradient(160deg, rgba(198, 32, 32, .94), rgba(138, 18, 22, .9)); }
	.de-hero .container { padding-top: 60px; padding-bottom: 150px; }
}

/* Tarjetas de servicio superpuestas al hero */
.de-service-cards { position: relative; z-index: 5; margin-top: -150px; }
.de-service-card { display: flex; flex-direction: column; height: 100%; background: #fff; padding: 2.2rem 1.8rem 1.8rem; box-shadow: 0 25px 50px rgba(0, 0, 0, .08); text-decoration: none !important; border-bottom: 3px solid transparent; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.de-service-card:hover { transform: translateY(-6px); border-bottom-color: var(--primary); box-shadow: 0 30px 60px rgba(0, 0, 0, .12); }
.de-service-card .de-icon { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-rgba-10); color: var(--primary); font-size: 1.6rem; margin-bottom: 1.1rem; }
.de-service-card h3 { font-size: 1.12rem; font-weight: 600; color: var(--brand-ink); line-height: 1.35; margin-bottom: .6rem; }
.de-service-card p { font-size: .93rem; line-height: 1.65; margin-bottom: 1rem; flex-grow: 1; }
.de-more { display: inline-flex; align-items: center; gap: .5rem; color: var(--primary); font-weight: 600; font-size: .9rem; }
.de-more svg { width: 26px; fill: currentColor; transition: transform .3s ease; }
a:hover .de-more svg, .de-more:hover svg { transform: translateX(6px); }

/* Línea quebrada de Porto (SVG en línea) */
.custom-crooked-line svg { width: 154px; height: 26px; fill: var(--primary); }
.de-crooked { display: block; margin: .25rem 0 1rem; }

/* ---------- Títulos de sección ---------- */
.de-kicker { font-size: .82rem; letter-spacing: .2em; font-weight: 600; color: var(--primary); text-transform: uppercase; margin-bottom: .6rem; display: inline-block; position: relative; }
.de-section-title { font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.22; font-weight: 600; color: var(--brand-ink); letter-spacing: -.01em; margin-bottom: 1rem; }
.bg-dark .de-section-title, .de-on-dark .de-section-title { color: #fff; }
.de-section-intro { font-size: 1.02rem; line-height: 1.8; max-width: 720px; }

/* ---------- Organismos: buscador + mosaico ---------- */
.de-agencies { position: relative; }
.de-search { position: relative; max-width: 640px; margin: 0 auto 2.5rem; }
.de-search input { width: 100%; height: 62px; border: 2px solid #ececec; padding: 0 1.25rem 0 3.4rem; font-size: 1rem; box-shadow: 0 15px 35px rgba(0, 0, 0, .05); transition: border-color .2s ease; }
.de-search input:focus { outline: none; border-color: var(--primary); }
.de-search i { position: absolute; left: 1.3rem; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.1rem; }
.de-search-hint { font-size: .85rem; color: #8a8a8a; text-align: center; margin-top: -1.75rem; margin-bottom: 2.25rem; }
.de-search-hint button { border: 0; background: none; color: var(--primary); font-weight: 600; padding: 0 .2rem; text-decoration: underline dotted; }
.de-agency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; background: #ececec; border: 1px solid #ececec; }
.de-agency { position: relative; background: #fff; min-height: 190px; padding: 1.5rem 1.25rem; overflow: hidden; outline: none; transition: background .3s ease; }
.de-agency-acr { font-size: 1.9rem; font-weight: 700; color: var(--primary); letter-spacing: .02em; line-height: 1; transition: transform .35s ease, color .3s ease; }
.de-agency-name { font-size: .85rem; line-height: 1.45; color: #555; margin-top: .65rem; transition: opacity .3s ease; }
.de-agency-desc { position: absolute; inset: auto 1.25rem 1.25rem; font-size: .84rem; line-height: 1.55; color: rgba(255, 255, 255, .95); opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; }
.de-agency:after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 90px; aspect-ratio: 347 / 243; background: url(../img/brand/monograma.svg) no-repeat center / contain; opacity: .05; transition: opacity .3s; }
.de-agency:hover, .de-agency:focus-within, .de-agency:focus { background: var(--primary); }
.de-agency:hover .de-agency-acr, .de-agency:focus .de-agency-acr { color: #fff; transform: translateY(-4px); }
.de-agency:hover .de-agency-name, .de-agency:focus .de-agency-name { opacity: 0; }
.de-agency:hover .de-agency-desc, .de-agency:focus .de-agency-desc { opacity: 1; transform: none; }
.de-agency:hover:after, .de-agency:focus:after { opacity: 0; }
.de-agency.is-hidden { display: none; }
.de-agency.is-match { box-shadow: inset 0 0 0 2px var(--primary); }
.de-search-empty { display: none; text-align: center; padding: 2rem 1rem; background: #fff; border: 1px dashed #ddd; }
.de-search-empty.is-visible { display: block; }
.de-search-services { display: none; margin-top: 1.5rem; }
.de-search-services.is-visible { display: block; }
.de-search-services a { display: inline-flex; align-items: center; gap: .5rem; margin: .25rem; padding: .5rem .9rem; background: var(--primary-rgba-10); color: var(--primary); font-weight: 600; font-size: .88rem; text-decoration: none; }

/* ---------- Sobre nosotros ---------- */
.de-about-media { position: relative; padding: 0 0 40px 40px; }
.de-about-media:before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 75%; background: var(--primary); }
.de-about-media img { position: relative; width: 100%; height: auto; box-shadow: 0 25px 50px rgba(0, 0, 0, .12); }
.de-about-badge { position: absolute; right: -10px; top: 40px; background: #fff; padding: 1.1rem 1.3rem; box-shadow: 0 20px 40px rgba(0, 0, 0, .12); display: flex; align-items: center; gap: .9rem; max-width: 260px; }
.de-about-badge img { width: 54px !important; box-shadow: none !important; }
.de-about-badge strong { display: block; color: var(--brand-ink); font-size: .95rem; line-height: 1.3; }
.de-about-badge span { font-size: .8rem; color: #888; }
.de-credentials { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.5rem; }
.de-credentials li { display: flex; align-items: flex-start; gap: .6rem; font-size: .93rem; color: #444; font-weight: 500; }
.de-credentials li i { color: var(--primary); margin-top: .25rem; }
@media (max-width: 575px) { .de-credentials { grid-template-columns: 1fr; } }
.de-counters { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin: 2rem 0; }
.de-counter { padding: 1.25rem .5rem; text-align: center; }
.de-counter + .de-counter { border-left: 1px solid #eee; }
.de-counter strong { display: block; font-size: 2.1rem; font-weight: 700; color: var(--primary); line-height: 1; }
.de-counter span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .4rem; color: #666; }

/* ---------- Red interdisciplinaria ---------- */
.de-network { position: relative; background: #1d1f22; overflow: hidden; }
.de-network-media { position: absolute; inset: 0 auto 0 0; width: 40%; background-size: cover; background-position: center; }
.de-network-media:after { content: ""; position: absolute; inset: 0; background: rgba(160, 20, 24, .82); }
.de-network-media .de-network-stamp { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; width: 80%; }
.de-network-stamp img { width: 140px; margin-bottom: 1.25rem; opacity: .95; }
.de-network-stamp p { font-size: 1.35rem; line-height: 1.4; font-weight: 300; margin: 0; color: #fff; }
.de-network-stamp p strong { font-weight: 600; }
.de-network .container { position: relative; z-index: 2; }
.de-network p { color: #b9b9b9; }
.de-pro { display: flex; gap: 1.1rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.de-pro:last-child { border-bottom: 0; }
.de-pro i { flex: 0 0 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); color: #fff; font-size: 1.2rem; transition: background .3s; }
.de-pro:hover i { background: var(--primary); }
.de-pro h3 { color: #fff; font-size: 1.05rem; font-weight: 600; margin: 0 0 .2rem; }
.de-pro p { margin: 0; font-size: .92rem; line-height: 1.6; }
@media (max-width: 991px) {
	.de-network-media { position: relative; width: 100%; height: 320px; }
}

/* ---------- Proceso ---------- */
.de-steps { counter-reset: step; }
.de-step { position: relative; padding: 2rem 1.5rem 1.5rem; background: #fff; height: 100%; border: 1px solid #efefef; transition: box-shadow .3s ease, transform .3s ease; }
.de-step:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, .07); }
.de-step:before { counter-increment: step; content: "0" counter(step); position: absolute; right: 1.25rem; top: .75rem; font-size: 3.2rem; font-weight: 700; color: rgba(188, 28, 28, .08); line-height: 1; }
.de-step i { font-size: 1.6rem; color: var(--primary); margin-bottom: 1rem; display: block; }
.de-step h3 { font-size: 1.1rem; font-weight: 600; color: var(--brand-ink); margin-bottom: .5rem; }
.de-step p { font-size: .92rem; line-height: 1.65; margin: 0; }
@media (min-width: 992px) {
	.de-steps .col-lg-3:not(:last-child) .de-step:after { content: ""; position: absolute; right: -14px; top: 50%; width: 28px; height: 2px; background: var(--primary); z-index: 2; }
}

/* ---------- Testimonios ---------- */
.de-quote { background: #fff; padding: 2rem; height: 100%; box-shadow: 0 15px 35px rgba(0, 0, 0, .05); position: relative; }
.de-quote svg { width: 34px; fill: var(--primary); opacity: .25; margin-bottom: .75rem; }
.de-quote p { font-size: .98rem; line-height: 1.75; font-style: italic; }
.de-quote strong { color: var(--brand-ink); }

/* ---------- FAQ ---------- */
.de-faq .accordion-item { border: 0; border-bottom: 1px solid #ececec; background: transparent; }
.de-faq .accordion-button { font-weight: 600; font-size: 1rem; color: var(--brand-ink); padding: 1.3rem 0; background: transparent; box-shadow: none; }
.de-faq .accordion-button:not(.collapsed) { color: var(--primary); }
.de-faq .accordion-button:after { filter: grayscale(1); }
.de-faq .accordion-button:not(.collapsed):after { filter: none; }
.de-faq .accordion-body { padding: 0 0 1.4rem; line-height: 1.8; }

/* ---------- Contacto ---------- */
.de-contact { position: relative; background: #1d1f22; }
.de-contact-media { position: absolute; inset: 0 0 0 auto; width: 32%; background-size: cover; background-position: center; }
.de-contact-media:after { content: ""; position: absolute; inset: 0; background: rgba(160, 20, 24, .88); }
.de-contact .container { position: relative; z-index: 2; }
.de-contact p { color: #bdbdbd; }
.de-form .form-control, .de-form .form-select { background: transparent; border: 1px solid #44484d; color: #fff; padding: .85rem 1rem; font-size: .95rem; }
.de-form .form-control::placeholder { color: #9a9ea3; }
.de-form .form-control:focus, .de-form .form-select:focus { border-color: #fff; box-shadow: none; background: rgba(255, 255, 255, .03); color: #fff; }
.de-form .form-select { color: #cfd2d5; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.de-form .form-select option { color: #222; }
.de-form label { color: #d6d6d6; font-size: .85rem; font-weight: 500; margin-bottom: .35rem; }
.de-form .validation-message { color: #ff9b9b; font-size: .82rem; margin-top: .3rem; }
.de-form .invalid { border-color: #ff7b7b !important; }
.de-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.de-privacy-note { font-size: .78rem; color: #8f9398 !important; }
.de-privacy-note a { color: #d6d6d6; }
.de-alert { padding: 1rem 1.25rem; display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.5rem; }
.de-alert-success { background: rgba(37, 211, 102, .12); border-left: 4px solid #25D366; color: #e9fbef; }
.de-alert-error { background: rgba(255, 90, 90, .12); border-left: 4px solid #ff6b6b; color: #ffe5e5; }
.de-contact-card { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); color: #fff !important; text-decoration: none !important; }
.de-contact-card i { flex: 0 0 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .45); font-size: 1.15rem; transition: background .3s, color .3s; }
.de-contact-card:hover i { background: #fff; color: var(--primary); }
.de-contact-card small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.de-contact-card span { font-weight: 600; font-size: 1rem; word-break: break-word; }
.de-map { border: 0; width: 100%; height: 260px; filter: grayscale(.4); }
@media (max-width: 991px) { .de-contact-media { position: relative; width: 100%; height: auto; } }

/* ---------- Encabezado de página interna ---------- */
.de-page-header { position: relative; padding: 110px 0 120px; background-size: cover; background-position: center; color: #fff; }
.de-page-header:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(150, 18, 22, .94) 0%, rgba(150, 18, 22, .78) 45%, rgba(20, 20, 20, .35) 100%); }
.de-page-header .container { position: relative; z-index: 2; }
.de-page-header h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: .75rem; }
.de-page-header p { color: rgba(255, 255, 255, .9); font-size: 1.05rem; max-width: 640px; }
.de-breadcrumb { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.de-breadcrumb a { color: #fff; text-decoration: none; opacity: .8; }
.de-breadcrumb li + li:before { content: "/"; margin-right: .5rem; opacity: .6; }

/* Detalle de servicio */
.de-service-detail { padding: 90px 0; }
.de-service-detail:nth-of-type(even) { background: #f7f6f6; }
.de-service-detail img { width: 100%; height: auto; box-shadow: 0 25px 50px rgba(0, 0, 0, .1); }
.de-service-detail .de-icon { width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 1.4rem; margin-bottom: 1.25rem; }
.de-check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.de-check-list li { position: relative; padding: .5rem 0 .5rem 2rem; border-bottom: 1px dashed #e3e3e3; color: #444; }
.de-check-list li:before { content: "\f00c"; font-family: "Font Awesome 7 Free"; font-weight: 900; position: absolute; left: 0; top: .55rem; color: var(--primary); font-size: .9rem; }
.de-service-nav { position: sticky; top: 76px; z-index: 20; background: #fff; border-bottom: 1px solid #eee; }
.de-service-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.de-service-nav a { display: block; padding: 1rem 1.1rem; color: #555; font-weight: 500; font-size: .9rem; white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent; }
.de-service-nav a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.de-glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.de-glossary article { background: #fff; padding: 1.5rem; border-left: 3px solid var(--primary); box-shadow: 0 10px 30px rgba(0, 0, 0, .05); }
.de-glossary h3 { font-size: 1.05rem; margin: 0 0 .35rem; color: var(--brand-ink); }
.de-glossary h3 abbr { text-decoration: none; color: var(--primary); font-weight: 700; margin-right: .35rem; }
.de-glossary p { font-size: .92rem; line-height: 1.65; margin: 0 0 .5rem; }
.de-glossary a { font-size: .82rem; }

/* Texto legal */
.de-legal h2 { font-size: 1.3rem; margin-top: 2rem; color: var(--brand-ink); }
.de-legal p, .de-legal li { line-height: 1.85; }

/* ---------- Pie ---------- */
#footer { background: #161719; border-top: 4px solid var(--primary) !important; }
#footer .de-footer-cta h2 { color: #fff; }
#footer h4 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1.1rem; }
#footer .de-footer-logo { height: 54px; width: auto; }
#footer ul.de-footer-links { list-style: none; padding: 0; }
#footer ul.de-footer-links li { margin-bottom: .55rem; }
#footer ul.de-footer-links a { text-decoration: none; }
#footer ul.de-footer-links a:hover { color: #fff !important; }
#footer .footer-copyright { background: transparent; }
#footer .footer-copyright p { font-size: .82rem; }
.de-social { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.de-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .2); color: #fff !important; text-decoration: none; transition: background .3s; }
.de-social a:hover { background: var(--primary); border-color: var(--primary); }

/* ---------- Botón flotante de WhatsApp ---------- */
.de-wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 1040; display: inline-flex; align-items: center; gap: .6rem; background: #25D366; color: #fff !important; text-decoration: none !important; border-radius: 40px; padding: 0 1.15rem 0 0; height: 58px; box-shadow: 0 12px 30px rgba(37, 211, 102, .45); font-weight: 600; transition: transform .25s ease; }
.de-wa-float i { width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; border-radius: 50%; }
.de-wa-float:hover { transform: translateY(-3px); }
.de-wa-float:before { content: ""; position: absolute; left: 0; top: 0; width: 58px; height: 58px; border-radius: 50%; animation: dePulse 2.4s infinite; }
@keyframes dePulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); } 70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (max-width: 575px) { .de-wa-float { padding: 0; } .de-wa-float span { display: none; } }

/* ---------- Página 404 ---------- */
.de-404 { padding: 120px 0; text-align: center; }
.de-404 strong { font-size: 7rem; color: var(--primary); line-height: 1; display: block; font-weight: 700; }

/* ---------- Ajustes de especificidad sobre Porto ---------- */
section.section.de-network, section.section.de-contact { background: #1d1f22; border-top-color: #1d1f22; }
section.section.de-network .de-section-title, section.section.de-contact .de-section-title { color: #fff; }
section.section.de-network .de-kicker, section.section.de-contact .de-kicker { color: #ff8a8a; }
.de-service-card h3, .de-step h3, .de-pro h3, .de-agency h3, .de-glossary h3, .de-faq h3, .de-credentials li { text-transform: none; letter-spacing: normal; }
.de-agency abbr, .de-glossary abbr { text-decoration: none; border: 0; cursor: help; }
.de-agency-grid { gap: 14px; background: transparent; border: 0; }
.de-agency { border: 1px solid #ececec; }
.de-form .form-select { background-repeat: no-repeat; background-position: right 1rem center; background-size: 14px 10px; padding-right: 2.5rem; }
.de-contact-media { width: 37%; }
.de-service-nav { top: 84px; box-shadow: 0 6px 16px rgba(0, 0, 0, .04); }
.de-service-nav ul { scrollbar-width: none; }
.de-service-nav ul::-webkit-scrollbar { display: none; }
@media (max-width: 991px) { .de-service-nav { top: 72px; } }

/* Pie: etiquetas de organismos y texto blanco en botones */
#footer .de-footer-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
#footer .de-footer-tags a { display: inline-block; padding: .3rem .6rem; border: 1px solid rgba(255, 255, 255, .18); font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: #d9d9d9 !important; text-decoration: none; transition: background .25s, border-color .25s, color .25s; }
#footer .de-footer-tags a:hover { background: var(--primary); border-color: var(--primary); color: #fff !important; }
#footer .btn, #footer .btn span, #footer .btn i { color: #fff !important; }
#footer .footer-copyright { padding-bottom: 70px; }

/* =========================================================
   Blog, checklists, vencimientos y mapa del sitio
   ========================================================= */

/* Filtros (categorías / organismos) */
.de-blog-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.de-blog-filters a { padding: .4rem 1rem; border: 1px solid #e5e5e5; color: #555; font-size: .85rem; font-weight: 500; text-decoration: none; transition: all .2s; }
.de-blog-filters a:hover { border-color: var(--primary); color: var(--primary); }
.de-blog-filters a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Tarjetas de artículos */
.de-post-meta { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); font-weight: 600; margin-bottom: .5rem; }
.de-post-featured { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; box-shadow: 0 20px 45px rgba(0, 0, 0, .07); text-decoration: none !important; transition: transform .3s; }
.de-post-featured:hover { transform: translateY(-4px); }
.de-post-featured img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.de-post-featured-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.de-post-featured h2 { font-size: 1.45rem; line-height: 1.3; color: var(--brand-ink); font-weight: 600; margin-bottom: .75rem; text-transform: none; }
.de-post-featured p { color: #666; }
@media (max-width: 767px) { .de-post-featured { grid-template-columns: 1fr; } }
.de-post-card { display: flex; flex-direction: column; height: 100%; background: #fff; box-shadow: 0 15px 35px rgba(0, 0, 0, .06); text-decoration: none !important; transition: transform .3s, box-shadow .3s; }
.de-post-card:hover { transform: translateY(-4px); box-shadow: 0 25px 45px rgba(0, 0, 0, .1); }
.de-post-card-img { aspect-ratio: 3 / 2; overflow: hidden; }
.de-post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.de-post-card:hover .de-post-card-img img { transform: scale(1.04); }
.de-post-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.de-post-card h3 { font-size: 1.08rem; line-height: 1.35; color: var(--brand-ink); font-weight: 600; margin-bottom: .5rem; text-transform: none; letter-spacing: normal; }
.de-post-card p { font-size: .9rem; color: #666; flex-grow: 1; }

/* Barra lateral */
.de-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.de-sidebar-box { background: #f7f6f6; padding: 1.5rem; }
.de-sidebar-box h2 { font-size: 1rem; font-weight: 600; color: var(--brand-ink); margin-bottom: .9rem; text-transform: none; letter-spacing: normal; }
.de-sidebar-box h2 i { color: var(--primary); margin-right: .35rem; }
.de-sidebar-box p { font-size: .9rem; }
.de-sidebar-checklists ul, .de-official-links { list-style: none; padding: 0; margin: 0; }
.de-sidebar-checklists li a, .de-official-links a { display: flex; gap: .7rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid #e7e7e7; color: #333; font-weight: 500; font-size: .9rem; text-decoration: none; }
.de-sidebar-checklists li a i { color: var(--primary); width: 18px; text-align: center; }
.de-sidebar-checklists li a:hover, .de-official-links a:hover { color: var(--primary); }
.de-official-links strong { display: inline-block; min-width: 38px; color: var(--primary); }
.de-sidebar-cta { background: var(--brand-ink); color: #ddd; }
.de-sidebar-cta h2 { color: #fff; }
.de-sidebar-cta p { color: #c9c9c9; }

/* Fechas (vencimientos) */
.de-date { flex: 0 0 54px; height: 54px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: .62rem; font-weight: 600; letter-spacing: .08em; line-height: 1; }
.de-date strong { font-size: 1.35rem; line-height: 1; margin-bottom: .15rem; }
.de-mini-deadlines { list-style: none; padding: 0; margin: 0; }
.de-mini-deadlines li { display: flex; gap: .8rem; align-items: center; padding: .5rem 0; font-size: .86rem; color: #333; font-weight: 500; line-height: 1.35; }
.de-mini-deadlines small, .de-deadline-strip small { display: block; font-size: .68rem; letter-spacing: .1em; color: var(--primary); font-weight: 700; }

/* Franja de vencimientos en la portada */
.de-deadline-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; background: #fff; border: 1px solid #eee; border-left: 4px solid var(--primary); padding: 1.25rem 1.5rem; box-shadow: 0 15px 35px rgba(0, 0, 0, .05); }
.de-deadline-strip-title { display: flex; gap: .9rem; align-items: center; min-width: 210px; }
.de-deadline-strip-title > i { font-size: 1.9rem; color: var(--primary); }
.de-deadline-strip-title h2 { font-size: 1.05rem; margin: 0; color: var(--brand-ink); font-weight: 600; text-transform: none; letter-spacing: normal; }
.de-deadline-strip-title a { font-size: .82rem; font-weight: 600; }
.de-deadline-strip ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; flex: 1; }
.de-deadline-strip li { display: flex; gap: .7rem; align-items: center; font-size: .85rem; line-height: 1.35; color: #333; font-weight: 500; }
.de-deadline-strip .de-date { flex-basis: 48px; height: 48px; }

/* Página de vencimientos */
.de-deadline-month { font-size: 1.25rem; font-weight: 600; color: var(--brand-ink); margin: 2rem 0 1rem; text-transform: none; letter-spacing: normal; }
.de-deadline-month:first-of-type { margin-top: 0; }
.de-deadlines { list-style: none; padding: 0; margin: 0; border-top: 1px solid #eee; }
.de-deadlines li { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid #eee; }
.de-deadlines li strong { display: block; color: var(--brand-ink); font-weight: 600; }
.de-deadlines li small { display: block; color: #777; font-size: .82rem; margin-top: .15rem; }
.de-deadlines li.is-soon .de-days { background: var(--primary); color: #fff; }
.de-agency-tag { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .1em; padding: .1rem .45rem; margin-bottom: .25rem; background: #eee; color: #444; }
.de-agency-tag.de-agency-dgi { background: #e7eef9; color: #1d4f91; }
.de-agency-tag.de-agency-bps { background: #e6f4ec; color: #1f7a45; }
.de-days { white-space: nowrap; font-size: .78rem; font-weight: 600; color: #555; background: #f2f2f2; padding: .3rem .65rem; }

/* Artículo */
.de-post-header { padding: 100px 0 110px; }
.de-post-header h1 { max-width: 860px; }
.de-post-header-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .88rem; margin: 0; }
.de-post-header-meta i { margin-right: .3rem; }
.de-post-lead { font-size: 1.2rem; line-height: 1.7; color: var(--brand-ink); font-weight: 500; margin-bottom: 2rem; }
.de-prose { font-size: 1.02rem; line-height: 1.85; color: #4a4a4a; }
.de-prose h2 { font-size: 1.45rem; font-weight: 600; color: var(--brand-ink); margin: 2.25rem 0 1rem; text-transform: none; letter-spacing: normal; }
.de-prose h3 { font-size: 1.15rem; font-weight: 600; color: var(--brand-ink); margin: 1.75rem 0 .75rem; text-transform: none; letter-spacing: normal; }
.de-prose ul, .de-prose ol { padding-left: 1.3rem; margin-bottom: 1.25rem; }
.de-prose li { margin-bottom: .45rem; }
.de-prose li::marker { color: var(--primary); font-weight: 700; }
.de-prose strong { color: var(--brand-ink); }
.de-prose a { text-decoration: underline; text-underline-offset: 3px; }
.de-prose blockquote { border-left: 4px solid var(--primary); background: #f7f6f6; padding: 1rem 1.25rem; margin: 1.5rem 0; font-style: italic; }
.de-prose img { max-width: 100%; height: auto; }
.de-checklist-cta { display: flex; gap: 1.5rem; align-items: flex-start; background: linear-gradient(135deg, #c62020, #8e1515); color: #fff; padding: 2rem; margin: 2.5rem 0; }
.de-checklist-cta > i { font-size: 2.6rem; opacity: .9; }
.de-checklist-cta .de-kicker { color: #ffd0d0; }
.de-checklist-cta h2 { color: #fff; font-size: 1.35rem; font-weight: 600; text-transform: none; letter-spacing: normal; }
.de-checklist-cta p { color: rgba(255, 255, 255, .88); }
.de-checklist-cta .btn-primary { background: #fff; border-color: #fff; color: var(--primary); }
.de-checklist-cta .btn-primary span { color: var(--primary); }
.de-post-help { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; border: 1px solid #eee; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.de-post-help strong { display: block; color: var(--brand-ink); }
.de-post-help span { font-size: .9rem; color: #777; }
.de-share { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: #555; }
.de-share a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e3e3e3; color: #444; text-decoration: none; transition: all .2s; }
.de-share a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Checklist */
.de-checklist-items { list-style: none; padding: 0; margin: 1.25rem 0; }
.de-checklist-items li { display: flex; gap: .85rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px dashed #e3e3e3; color: #333; }
.de-checklist-items .de-box { flex: 0 0 20px; height: 20px; border: 2px solid var(--primary); margin-top: .15rem; }
.de-checklist-items li.de-checklist-section { display: block; border: 0; padding: 1.25rem 0 .35rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--primary); }
.de-checklist-more { color: #888; font-style: italic; border: 0 !important; }
.de-checklist-form { background: #fff; padding: 2rem; box-shadow: 0 25px 50px rgba(0, 0, 0, .1); border-top: 4px solid var(--primary); }
.de-checklist-form .form-control { padding: .7rem .9rem; }
.de-checklist-form .validation-message { color: var(--primary); font-size: .8rem; }
.de-checklist-sheet { background: #fff; padding: 2.5rem; box-shadow: 0 20px 45px rgba(0, 0, 0, .08); }
.de-checklist-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 3px solid var(--primary); color: #666; }
.de-checklist-sheet h2 { font-size: 1.6rem; color: var(--brand-ink); font-weight: 600; text-transform: none; letter-spacing: normal; }
.de-checklist-note { background: #f7f6f6; padding: 1rem 1.25rem; font-size: .9rem; margin-top: 1.5rem; }
.de-checklist-foot { font-size: .8rem; color: #888; text-align: center; margin: 1.5rem 0 0; }

/* Franja de checklists en portada */
.de-checklist-band { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; background: var(--brand-ink); padding: 1.75rem 2rem; }
.de-checklist-band .de-kicker { color: #ff9a9a; }
.de-checklist-band h3 { color: #fff; font-size: 1.2rem; margin: 0; font-weight: 600; text-transform: none; letter-spacing: normal; }
.de-checklist-band-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.de-checklist-band-links a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: .85rem; font-weight: 500; text-decoration: none; transition: all .2s; }
.de-checklist-band-links a:hover { background: var(--primary); border-color: var(--primary); }

/* Mapa del sitio */
.de-sitemap h2 { font-size: 1.05rem; font-weight: 600; color: var(--brand-ink); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary); text-transform: none; letter-spacing: normal; }
.de-sitemap ul { list-style: none; padding: 0; margin: 0; }
.de-sitemap li { padding: .35rem 0; }
.de-sitemap a { color: #444; text-decoration: none; }
.de-sitemap a:hover { color: var(--primary); }

/* Pie: enlaces legales y crédito del desarrollador */
.de-footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
#footer .de-footer-legal a.de-dev-credit { color: #fff !important; font-weight: 600; }
#footer .de-footer-legal a.de-dev-credit:hover { color: #ff8a8a !important; }

/* Impresión (checklist en PDF) */
@media print {
	#header, #footer, .de-wa-float, .de-no-print, .skip-link { display: none !important; }
	body { background: #fff; }
	.de-checklist-sheet { box-shadow: none; padding: 0; }
	.de-checklist-items li { break-inside: avoid; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}


/* =========================================================
   Reseñas: página de valoración y estrellas
   ========================================================= */
.de-review-page { padding: 70px 0 90px; background: linear-gradient(160deg, #f7f6f6 0%, #fff 60%); }
.de-review-card { background: #fff; padding: 2.5rem 2rem; box-shadow: 0 25px 60px rgba(0, 0, 0, .08); border-top: 5px solid var(--primary); text-align: center; }
.de-review-card h1 { font-size: 1.7rem; font-weight: 600; color: var(--brand-ink); margin-bottom: .75rem; text-transform: none; letter-spacing: normal; }
.de-review-card .validation-message { color: var(--primary); font-size: .82rem; }
.de-stars { display: inline-flex; flex-direction: row-reverse; gap: .35rem; }
.de-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.de-stars label { font-size: 2.3rem; color: #d9d9d9; cursor: pointer; transition: color .15s, transform .15s; }
.de-stars label:hover, .de-stars label:hover ~ label, .de-stars input:checked ~ label { color: #f5a623; }
.de-stars label:hover { transform: scale(1.12); }
.de-stars input:focus-visible + label { outline: 3px solid rgba(188, 28, 28, .4); outline-offset: 2px; }
.de-review-google { margin-top: 1.75rem; padding: 1.25rem; background: #f7f6f6; }
.de-quote-stars { color: #f5a623; font-size: .95rem; margin-bottom: .5rem; letter-spacing: .1em; }


/* Enlace al brochure de servicios */
.de-brochure-link { text-align: center; margin-top: 2.25rem; }
.de-brochure-link a { display: inline-flex; align-items: center; gap: .9rem; padding: .85rem 1.4rem; background: #fff; border: 1px solid #ececec; box-shadow: 0 12px 30px rgba(0, 0, 0, .06); color: var(--brand-ink); text-decoration: none; text-align: left; transition: border-color .2s, transform .2s; }
.de-brochure-link a:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--brand-ink); }
.de-brochure-link i { font-size: 1.8rem; color: var(--primary); }
.de-brochure-link strong { display: block; font-weight: 600; font-size: .95rem; }
.de-brochure-link small { display: block; color: #888; font-size: .78rem; }
