/* =========================================================
   GRUPO EMCARO
   STYLES.CSS COMPLETO
========================================================= */

:root {
    --navy: #071725;
    --navy-2: #0d2538;
    --navy-3: #102f47;
    --orange: #ff5a1f;
    --orange-dark: #e7470e;
    --white: #ffffff;
    --light: #f5f7f9;
    --gray: #687684;
    --border: #e1e6ea;
    --shadow: 0 15px 45px rgba(4, 17, 28, 0.12);
}


/* =========================================================
   GENERAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

body.entry-active {
    overflow: hidden;
}

a {
    text-decoration: none;
}

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


/* =========================================================
   HEADER
========================================================= */

.header {
    width: 100%;
    min-height: 82px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(4, 17, 28, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    color: white;
}

.logo-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: white;
    border-radius: 8px;
    font-size: 25px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(255, 90, 31, 0.25);
}

.logo div {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-small {
    font-size: 9px;
    letter-spacing: 5px;
    margin-bottom: 4px;
}

.logo strong {
    font-size: 24px;
    letter-spacing: 2px;
}

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

.nav a {
    color: #e6edf2;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    transition: 0.25s;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.25s;
}

.nav a:hover {
    color: white;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a.active {
    color: var(--orange);
}

.btn-header {
    background: var(--orange);
    color: white;
    padding: 13px 20px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: 0.25s;
    box-shadow: 0 10px 25px rgba(255, 90, 31, 0.20);
}

.btn-header:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.menu-btn {
    display: none;
    border: none;
    background: transparent;
    color: white;
    font-size: 29px;
    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 680px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 80px 6%;
    color: white;

    background:
        linear-gradient(
            90deg,
            rgba(4, 17, 28, 0.97) 0%,
            rgba(4, 17, 28, 0.90) 32%,
            rgba(4, 17, 28, 0.60) 58%,
            rgba(4, 17, 28, 0.20) 100%
        ),
        url("../imagen/proyectos/cap-cana.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;

    background:
        linear-gradient(
            transparent,
            rgba(4, 17, 28, 0.40)
        );

    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 680px;
}

.eyebrow {
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 13px;
}

.hero h1 {
    max-width: 700px;
    margin-bottom: 24px;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--orange);
}

.sectores {
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.hero-description {
    max-width: 570px;
    color: #d8e0e6;
    font-size: 17px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 25px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 800;
    transition: 0.25s;
}

.btn-primary {
    background: var(--orange);
    color: white;
    box-shadow: 0 12px 30px rgba(255, 90, 31, 0.30);
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
}

.btn-secondary {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: white;
    color: var(--navy);
    transform: translateY(-3px);
}

.hero-message {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 315px;
    padding: 30px;
    border-left: 5px solid var(--orange);
    border-radius: 8px;
    background: rgba(4, 17, 28, 0.78);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.hero-message h2 {
    font-size: 32px;
    line-height: 1.04;
    letter-spacing: -1px;
}

.hero-message span {
    color: var(--orange);
}


/* =========================================================
   BENEFICIOS
========================================================= */

.benefits {
    padding: 30px 6%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--navy);
    color: white;
}

.benefit {
    min-height: 75px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.benefit:last-child {
    border-right: none;
}

.benefit-icon {
    color: var(--orange);
    font-size: 30px;
    font-weight: 900;
}

.benefit strong {
    display: block;
    font-size: 16px;
}

.benefit p {
    color: #b8c4cd;
    font-size: 13px;
}


/* =========================================================
   ESTADÍSTICAS
========================================================= */

.stats {
    padding: 28px 6%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--orange);
    color: white;
}

.stats div {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.stats div:last-child {
    border-right: none;
}

.stats strong {
    display: block;
    font-size: 38px;
    line-height: 1.1;
}

.stats span {
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   SECCIONES
========================================================= */

.section {
    padding: 100px 6%;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 50px;
}

.section-heading h2,
.about h2,
.projects-heading h2,
.quote-info h2 {
    margin-bottom: 18px;
    font-size: clamp(36px, 4vw, 57px);
    line-height: 1.05;
    letter-spacing: -1px;
}

.section-heading h2 span,
.about h2 span,
.projects-heading h2 span,
.quote-info h2 span {
    color: var(--orange);
}

.section-heading > p:last-child {
    color: var(--gray);
    font-size: 17px;
}


/* =========================================================
   SERVICIOS
========================================================= */

.services {
    background: var(--light);
}

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

.service-card {
    min-height: 300px;
    padding: 34px;
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: 0 10px 35px rgba(7, 23, 37, 0.06);

    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-9px);
    border-color: rgba(255, 90, 31, 0.40);
    box-shadow: 0 20px 50px rgba(7, 23, 37, 0.13);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number {
    margin-bottom: 28px;
    color: var(--orange);
    font-size: 36px;
    font-weight: 900;
}

.service-card h3 {
    margin-bottom: 14px;
    font-size: 23px;
}

.service-card p {
    color: var(--gray);
    font-size: 15px;
}


/* =========================================================
   NOSOTROS
========================================================= */

.about {
    min-height: 630px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
}

.about-image {
    min-height: 600px;

    background:
        linear-gradient(
            rgba(4, 17, 28, 0.10),
            rgba(4, 17, 28, 0.10)
        ),
        url("../imagen/proyectos/cocinas-puertas.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-content {
    padding: 85px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content > p {
    margin-bottom: 17px;
    color: var(--gray);
    font-size: 16px;
}

.about-values {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-values span {
    padding: 14px 16px;
    background: var(--light);
    border: 1px solid #edf0f2;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   PROYECTOS - PREVIEW DEL INICIO
========================================================= */

.projects-preview {
    padding: 100px 6%;

    background:
        linear-gradient(
            135deg,
            #071725,
            #0b2438
        );

    color: white;
}

.projects-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.projects-heading h2 {
    max-width: 700px;
}

.projects-description {
    max-width: 680px;
    margin-bottom: 45px;
    color: #bdc8d0;
    font-size: 16px;
}

.btn-secondary-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    color: white;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: 7px;
    font-weight: 700;
    transition: 0.25s;
}

.btn-secondary-dark:hover {
    background: white;
    color: var(--navy);
}

.project-placeholder {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.project-placeholder > div {
    min-height: 235px;
    padding: 27px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #102f47,
            #071725
        );

    transition: 0.3s;
}

.project-placeholder > div::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            transparent,
            rgba(4, 17, 28, 0.70)
        );

    opacity: 0;
    transition: 0.3s;
}

.project-placeholder > div:hover {
    transform: translateY(-7px);
    border-color: var(--orange);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.project-placeholder > div:hover::before {
    opacity: 1;
}

.project-placeholder span,
.project-placeholder h3 {
    position: relative;
    z-index: 2;
}

.project-placeholder span {
    font-size: 38px;
}

.project-placeholder h3 {
    margin-top: 7px;
    font-size: 21px;
}

.big-project-button {
    width: 100%;
    margin-top: 28px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 9px;
    font-weight: 800;
    transition: 0.25s;
}

.big-project-button:hover {
    background: var(--orange);
    border-color: var(--orange);
}


/* =========================================================
   COTIZACIÓN
========================================================= */

.quote-section {
    padding: 100px 6%;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 65px;
    align-items: start;
    color: white;

    background:
        linear-gradient(
            120deg,
            #071725,
            #0c2b42
        );
}

.quote-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-info > p {
    max-width: 480px;
    color: #c1ccd4;
    font-size: 17px;
}

.quote-info .eyebrow {
    color: var(--orange);
}


/* =========================================================
   CONTACTOS DENTRO DE COTIZACIÓN
========================================================= */

.quote-contact-options {
    width: 100%;
    max-width: 480px;
    margin-top: 32px;
    display: grid;
    gap: 12px;
}

.quote-contact-card {
    width: 100%;
    min-height: 72px;
    padding: 14px 17px;
    display: flex;
    align-items: center;
    gap: 14px;

    color: white;

    background:
        rgba(255, 255, 255, 0.055);

    border:
        1px solid rgba(255, 255, 255, 0.13);

    border-radius: 10px;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.quote-contact-card:hover {
    transform: translateX(5px);

    background:
        rgba(255, 255, 255, 0.10);

    border-color:
        rgba(255, 90, 31, 0.75);
}

.quote-contact-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--orange);
    color: white;

    border-radius: 9px;

    font-size: 19px;
    font-weight: 900;
}

.quote-contact-card > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.quote-contact-card small {
    margin-bottom: 2px;

    color: #93a5b2;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.quote-contact-card strong {
    color: white;
    font-size: 15px;
    overflow-wrap: anywhere;
}


/* =========================================================
   FORMULARIO DE COTIZACIÓN
========================================================= */

.quote-form {
    padding: 38px;
    background: white;
    color: var(--navy);
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
}

.quote-form h3 {
    margin-bottom: 8px;
    font-size: 28px;
}

.quote-form-intro {
    margin-bottom: 24px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

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

.form-field {
    display: grid;
    gap: 7px;
}

.form-field > span {
    color: #263847;
    font-size: 12px;
    font-weight: 800;
}

.form-field-wide {
    margin-top: 13px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 15px;
    color: var(--navy);
    background: white;
    border: 1px solid #d7dee4;
    border-radius: 7px;
    outline: none;
    transition: 0.2s;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
    color: #6f7880;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    border-color: var(--orange);

    box-shadow:
        0 0 0 3px
        rgba(255, 90, 31, 0.10);
}

.quote-form textarea {
    min-height: 150px;
    margin-top: 0;
    resize: vertical;
}


/* =========================================================
   SUBIR PLANOS / FOTOS / DOCUMENTOS
========================================================= */

.file-upload {
    display: block;
    margin-top: 15px;
    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #f7f8f9,
            #f2f4f6
        );

    border: 1px dashed #aebbc5;
    border-radius: 10px;
    cursor: pointer;

    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}

.file-upload:hover {
    border-color: var(--orange);
    background: #fff8f5;
}

.file-upload-title {
    display: block;
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
}

.file-upload-help {
    display: block;
    margin-top: 5px;
    color: var(--gray);
    font-size: 12px;
    font-weight: 400;
}

.file-upload input[type="file"] {
    margin-top: 13px;
    padding: 9px;
    border: 1px solid #d8dee3;
    border-radius: 7px;
    background: white;
    cursor: pointer;
}

.file-upload input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 14px;

    border: none;
    border-radius: 6px;

    background: var(--navy);
    color: white;

    font-weight: 700;
    cursor: pointer;

    transition: 0.2s;
}

.file-upload input[type="file"]::file-selector-button:hover {
    background: var(--orange);
}


/* =========================================================
   ARCHIVOS SELECCIONADOS
========================================================= */

.selected-files {
    margin-top: 10px;
    padding: 10px 12px;

    color: #687684;
    background: #f7f8f9;

    border-left: 3px solid var(--orange);
    border-radius: 5px;

    font-size: 12px;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.quote-submit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 16px;
}


/* =========================================================
   BOTÓN ENVIAR POR CORREO
========================================================= */

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0;
    padding: 17px;

    border: none;
    border-radius: 8px;

    background: var(--orange);
    color: white;

    font-size: 16px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;

    box-shadow:
        0 10px 25px rgba(255, 90, 31, 0.20);
}

.submit-button:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(255, 90, 31, 0.28);
}


/* =========================================================
   BOTÓN WHATSAPP
========================================================= */

.whatsapp-quote-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0;
    padding: 17px;

    border: none;
    border-radius: 8px;

    background: #25d366;
    color: white;

    font-size: 16px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;

    box-shadow:
        0 10px 25px rgba(37, 211, 102, 0.18);
}

.whatsapp-quote-button:hover {
    background: #1ebe5d;
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(37, 211, 102, 0.25);
}

.quote-help {
    margin-top: 13px;

    color: #7a858e;

    font-size: 12px;
    line-height: 1.55;
    line-height: 1.55;
    text-align: center;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 50px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 45px;

    background: #03101a;
    color: white;

    border-top:
        1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand p {
    margin-top: 16px;
    color: #aebbc5;
}

.footer-contact p {
    margin: 7px 0;
    color: #d7dee4;
}

.footer-contact strong {
    color: white;
}

.footer-contact a {
    color: #d7dee4;
    text-decoration: none;

    transition:
        color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--orange);
}


/* =========================================================
   PÁGINA DE PROYECTOS
========================================================= */

.projects-page {
    background: #f5f7f9;
}

.projects-hero {
    min-height: 480px;

    display: flex;
    align-items: center;

    padding: 90px 6%;

    color: white;

    background:
        radial-gradient(
            circle at 85% 50%,
            rgba(255, 90, 31, 0.16),
            transparent 32%
        ),
        linear-gradient(
            120deg,
            #04111c,
            #0b2a40
        );
}

.projects-hero-content {
    max-width: 800px;
}

.projects-hero h1 {
    margin-bottom: 22px;
    max-width: 800px;

    font-size:
        clamp(48px, 6vw, 78px);

    line-height: 1;
    letter-spacing: -2px;
}

.projects-hero h1 span {
    color: var(--orange);
}

.projects-hero-content > p:not(.eyebrow) {
    max-width: 650px;
    margin-bottom: 30px;

    color: #c6d0d8;

    font-size: 17px;
}

.projects-intro {
    padding: 90px 6% 45px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: end;

    background: white;
}

.projects-intro h2 {
    max-width: 650px;

    font-size:
        clamp(35px, 4vw, 55px);

    line-height: 1.05;
}

.projects-intro h2 span {
    color: var(--orange);
}

.projects-intro > p {
    max-width: 600px;

    color: var(--gray);

    font-size: 16px;
}


/* =========================================================
   FILTROS DE PROYECTOS
========================================================= */

.project-filters {
    padding: 25px 6% 45px;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    background: white;
}

.project-filter {
    padding: 11px 20px;

    border: 1px solid #dce2e6;
    border-radius: 50px;

    background: white;
    color: var(--navy);

    font-weight: 700;

    cursor: pointer;

    transition: 0.25s;
}

.project-filter:hover,
.project-filter.active {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
}


/* =========================================================
   GRID DE PROYECTOS
========================================================= */

.portfolio-grid {
    padding: 65px 6% 100px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    background: #f5f7f9;
}

.portfolio-card {
    overflow: hidden;

    background: white;

    border-radius: 13px;
    border: 1px solid #e2e7eb;

    box-shadow:
        0 12px 35px rgba(7, 23, 37, 0.07);

    transition: 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 22px 50px rgba(7, 23, 37, 0.15);
}

.portfolio-card.is-hidden {
    display: none !important;
}

.portfolio-image {
    height: 280px;

    position: relative;

    overflow: hidden;

    background: var(--navy);
}

.portfolio-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.45s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.04);
}

.project-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #0e3048,
            #061725
        );
}

.project-image-placeholder span {
    color:
        rgba(255, 255, 255, 0.10);

    font-size: 100px;
    font-weight: 900;
}

.project-category {
    position: absolute;

    left: 20px;
    bottom: 20px;

    padding: 8px 13px;

    background: var(--orange);
    color: white;

    border-radius: 5px;

    font-size: 12px;
    font-weight: 900;

    text-transform: uppercase;
}

.portfolio-content {
    padding: 28px;
}

.project-number {
    margin-bottom: 7px;

    color: var(--orange);

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 1.5px;
}

.portfolio-content h2 {
    margin-bottom: 12px;

    font-size: 24px;

    line-height: 1.15;
}

.portfolio-content > p:not(.project-number) {
    min-height: 76px;

    color: var(--gray);

    font-size: 14px;
}

.project-view-button {
    width: 100%;

    margin-top: 20px;
    padding: 14px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: none;
    border-top: 1px solid #e7eaed;

    background: transparent;
    color: var(--navy);

    font-weight: 900;

    cursor: pointer;

    transition: 0.25s;
}

.project-view-button span {
    color: var(--orange);

    font-size: 21px;

    transition: 0.25s;
}

.project-view-button:hover {
    color: var(--orange);
}

.project-view-button:hover span {
    transform: translateX(5px);
}


/* =========================================================
   CTA PROYECTOS
========================================================= */

.projects-cta {
    padding: 85px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;

    background:
        linear-gradient(
            120deg,
            #071725,
            #0c2d45
        );

    color: white;
}

.projects-cta h2 {
    margin-bottom: 15px;

    font-size:
        clamp(35px, 4vw, 55px);

    line-height: 1.05;
}

.projects-cta h2 span {
    color: var(--orange);
}

.projects-cta div > p:last-child {
    color: #bec9d1;
}


/* =========================================================
   MODAL DE PROYECTOS
========================================================= */

body.modal-open {
    overflow: hidden;
}

.project-modal {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(2, 12, 20, 0.88);

    backdrop-filter:
        blur(8px);
}

.project-modal-container {
    position: relative;

    z-index: 2;

    width: min(1150px, 100%);
    max-height: 90vh;

    display: grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(320px, 0.75fr);

    overflow: hidden;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 30px 90px
        rgba(0, 0, 0, 0.4);
}

.project-modal-image {
    min-height: 600px;

    background: #071725;

    overflow: hidden;
}

.project-modal-image img {
    width: 100%;
    height: 100%;
    min-height: 600px;

    display: block;

    object-fit: contain;

    background: #071725;
}

.project-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 55px 45px;
}

.project-modal-category {
    margin-bottom: 15px;

    color: var(--orange);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.project-modal-info h2 {
    margin-bottom: 22px;

    color: var(--navy);

    font-size:
        clamp(32px, 4vw, 48px);

    line-height: 1.05;
}

.project-modal-info > p:last-of-type {
    color: var(--gray);

    font-size: 16px;

    line-height: 1.8;
}

.project-modal-close {
    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 10;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: var(--orange);
    color: white;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.project-modal-close:hover {
    transform: rotate(90deg);
    background: var(--orange-dark);
}

.project-modal-actions {
    margin-top: 35px;

    display: flex;
    flex-direction: column;

    gap: 12px;
}

.project-modal-back {
    padding: 14px 20px;

    border:
        1px solid #dce2e6;

    border-radius: 7px;

    background: transparent;

    color: var(--navy);

    font-weight: 800;

    cursor: pointer;

    transition: 0.25s;
}

.project-modal-back:hover {
    border-color: var(--orange);
    color: var(--orange);
}


/* =========================================================
   PORTADA DE ENTRADA
========================================================= */

.entry-screen {
    position: fixed;
    inset: 0;

    z-index: 1000000;

    min-height: 100vh;
    min-height: 100dvh;

    display: grid;
    place-items: center;

    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(255, 90, 31, 0.08),
            transparent 23%
        ),
        radial-gradient(
            circle at 16% 22%,
            rgba(16, 47, 71, 0.70),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #04111c 0%,
            #071725 58%,
            #030d15 100%
        );

    color: #ffffff;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

.entry-screen[hidden] {
    display: none;
}

.entry-screen.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entry-grid {
    position: absolute;

    left: -10%;
    right: -10%;
    bottom: -28%;

    height: 58%;

    z-index: -5;

    opacity: 0.20;

    transform:
        perspective(500px)
        rotateX(64deg);

    transform-origin:
        center bottom;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.10) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.10) 1px,
            transparent 1px
        );

    background-size:
        55px 55px;

    mask-image:
        linear-gradient(
            to top,
            #000 10%,
            transparent 80%
        );
}

.entry-glow {
    position: absolute;

    z-index: -4;

    border-radius: 50%;

    filter: blur(80px);

    pointer-events: none;
}

.entry-glow-one {
    width: 380px;
    height: 380px;

    top: 12%;
    left: 50%;

    transform:
        translateX(-50%);

    background:
        rgba(255, 90, 31, 0.09);
}

.entry-glow-two {
    width: 300px;
    height: 300px;

    right: 5%;
    bottom: 8%;

    background:
        rgba(16, 47, 71, 0.38);
}

.entry-orbit {
    position: absolute;

    z-index: -1;

    left: 50%;
    top: 49%;

    border:
        1px solid rgba(255, 90, 31, 0.28);

    border-radius: 50%;

    pointer-events: none;
}

.entry-orbit-one {
    width: min(760px, 72vw);
    height: min(360px, 34vw);

    transform:
        translate(-50%, -50%)
        rotate(7deg);

    animation:
        emcaroOrbitOne
        12s linear infinite;
}

.entry-orbit-two {
    width: min(380px, 36vw);
    height: min(660px, 62vw);

    border-color:
        rgba(255, 255, 255, 0.13);

    transform:
        translate(-50%, -50%)
        rotate(-8deg);

    animation:
        emcaroOrbitTwo
        15s linear infinite;
}

.entry-dot {
    position: absolute;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--orange);

    box-shadow:
        0 0 20px
        rgba(255, 90, 31, 0.85);
}

.entry-dot-one {
    top: 18%;
    right: 8%;
}

.entry-dot-two {
    bottom: 14%;
    left: 13%;

    width: 6px;
    height: 6px;

    background: #ffffff;

    box-shadow:
        0 0 18px
        rgba(255, 255, 255, 0.55);
}

.entry-content {
    width:
        min(
            760px,
            calc(100% - 40px)
        );

    position: relative;

    z-index: 5;

    text-align: center;

    animation:
        emcaroEntryReveal
        0.85s ease both;
}

.entry-brand {
    width: 92px;
    height: 92px;

    position: relative;

    margin:
        0 auto 28px;
}

.entry-brand-icon {
    position: absolute;
    inset: 0;

    z-index: 2;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(255, 255, 255, 0.24);

    border-radius: 18px;

    background: var(--orange);

    color: #ffffff;

    font-size: 50px;
    font-weight: 900;
    line-height: 1;

    box-shadow:
        0 0 0 7px
        rgba(255, 90, 31, 0.08),
        0 20px 55px
        rgba(255, 90, 31, 0.24);
}

.entry-brand-shadow {
    position: absolute;

    inset:
        9px -9px -9px 9px;

    z-index: 1;

    border:
        1px solid rgba(255, 255, 255, 0.14);

    border-radius: 18px;
}

.entry-kicker {
    margin-bottom: 13px;

    color: var(--orange);

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 5px;
}

.entry-content h2 {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(58px, 8vw, 104px);

    line-height: 0.95;

    letter-spacing: -4px;
}

.entry-content h2 span {
    color: var(--orange);
}

.entry-description {
    max-width: 570px;

    margin:
        27px auto 0;

    color: #c3ced6;

    font-size:
        clamp(17px, 2vw, 21px);

    line-height: 1.6;
}

.entry-button {
    min-height: 58px;

    margin-top: 31px;

    padding:
        0 27px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 16px;

    border: 0;
    border-radius: 9px;

    background: var(--orange);
    color: #ffffff;

    font-size: 15px;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 15px 35px
        rgba(255, 90, 31, 0.25);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.entry-button:hover {
    background: var(--orange-dark);

    transform:
        translateY(-3px);

    box-shadow:
        0 20px 45px
        rgba(255, 90, 31, 0.32);
}

.entry-button:focus-visible,
.entry-skip:focus-visible {
    outline:
        3px solid
        rgba(255, 255, 255, 0.9);

    outline-offset: 4px;
}

.entry-button span {
    font-size: 19px;
}

.entry-sectors {
    margin:
        20px auto 0;

    color: #7f909d;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.2px;
}

.entry-skip {
    position: absolute;

    right: 28px;
    bottom: 24px;

    z-index: 7;

    padding: 8px;

    border: 0;

    background: transparent;

    color: #8495a2;

    font-size: 12px;

    cursor: pointer;

    transition:
        color 0.2s ease;
}

.entry-skip:hover {
    color: #ffffff;
}


/* =========================================================
   ANIMACIONES PORTADA
========================================================= */

@keyframes emcaroEntryReveal {
    from {
        opacity: 0;

        transform:
            translateY(18px)
            scale(0.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes emcaroOrbitOne {
    from {
        transform:
            translate(-50%, -50%)
            rotate(7deg);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotate(367deg);
    }
}

@keyframes emcaroOrbitTwo {
    from {
        transform:
            translate(-50%, -50%)
            rotate(-8deg);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotate(-368deg);
    }
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1100px) {

    .nav {
        gap: 17px;
    }

    .nav a {
        font-size: 13px;
    }

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

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

    .projects-intro {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


/* =========================================================
   RESPONSIVE - MENÚ
========================================================= */

@media (max-width: 950px) {

    .header {
        position: sticky;
    }

    .nav {
        display: none;
    }

    .btn-header {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .nav.is-open,
    .nav.nav-open {
        display: flex;

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        padding: 22px 6%;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

        background:
            rgba(4, 17, 28, 0.99);

        border-top:
            1px solid
            rgba(255, 255, 255, 0.08);

        box-shadow:
            0 18px 35px
            rgba(0, 0, 0, 0.20);
    }

    .nav.is-open a,
    .nav.nav-open a {
        width: 100%;
        padding: 8px 0;
    }

    .hero {
        min-height: 700px;
        justify-content: flex-start;
    }

    .hero-message {
        display: none;
    }

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

        gap: 15px;
    }

    .benefit {
        justify-content: flex-start;

        border-right: none;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.10);
    }

    .about {
        grid-template-columns: 1fr;
    }

    .about-image {
        min-height: 450px;
    }

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

    .quote-section {
        grid-template-columns: 1fr;
    }

    .quote-contact-options {
        max-width: 100%;
    }

    .project-modal-container {
        grid-template-columns: 1fr;

        max-height: 92vh;

        overflow-y: auto;
    }

    .project-modal-image {
        min-height: 350px;
        height: 45vh;
    }

    .project-modal-image img {
        min-height: 350px;
        height: 100%;
    }

    .project-modal-info {
        padding:
            35px 25px;
    }
}


/* =========================================================
   RESPONSIVE - CELULAR
========================================================= */

@media (max-width: 650px) {

    .header {
        min-height: 72px;
        padding:
            0 20px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;

        font-size: 21px;
    }

    .logo strong {
        font-size: 20px;
    }

    .hero {
        min-height: 680px;

        padding:
            60px 20px;

        background-position:
            60% center;
    }

    .hero h1 {
        font-size: 46px;
        letter-spacing: -1px;
    }

    .sectores {
        font-size: 17px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .benefits {
        padding:
            25px 20px;

        grid-template-columns: 1fr;
    }

    .stats {
        padding:
            25px 20px;

        grid-template-columns: 1fr;

        gap: 0;
    }

    .stats div {
        padding:
            20px 0;

        border-right: none;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.30);
    }

    .stats div:last-child {
        border-bottom: none;
    }

    .section,
    .projects-preview,
    .quote-section {
        padding:
            75px 20px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .about-image {
        min-height: 350px;
    }

    .about-content {
        padding:
            70px 20px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .projects-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-placeholder {
        grid-template-columns: 1fr;
    }


    /* COTIZACIÓN CELULAR */

    .quote-section {
        gap: 40px;
    }

    .quote-info h2 {
        font-size: 42px;
    }

    .quote-info > p {
        font-size: 15px;
    }

    .quote-contact-card {
        min-height: 68px;
        padding: 12px;
    }

    .quote-contact-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .quote-contact-card strong {
        font-size: 13px;
    }

    .quote-form {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .quote-form h3 {
        font-size: 25px;
    }

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

    .quote-submit-actions {
        grid-template-columns: 1fr;
    }

    .file-upload {
        padding: 16px;
    }

    .file-upload input[type="file"] {
        font-size: 12px;
    }

    .submit-button,
    .whatsapp-quote-button {
        min-height: 55px;
    }


    /* FOOTER CELULAR */

    footer {
        padding:
            45px 20px;

        flex-direction: column;

        align-items: flex-start;
    }


    /* PROYECTOS CELULAR */

    .projects-hero {
        min-height: 520px;

        padding:
            70px 20px;
    }

    .projects-hero h1 {
        font-size: 46px;
    }

    .projects-intro {
        padding:
            70px 20px 35px;
    }

    .project-filters {
        padding:
            20px 20px 35px;
    }

    .portfolio-grid {
        padding:
            45px 20px 70px;

        grid-template-columns: 1fr;
    }

    .projects-cta {
        padding:
            70px 20px;

        flex-direction: column;

        align-items: flex-start;
    }


    /* MODAL CELULAR */

    .project-modal {
        padding: 12px;
    }

    .project-modal-container {
        border-radius: 12px;
    }

    .project-modal-image {
        min-height: 280px;
        height: 40vh;
    }

    .project-modal-image img {
        min-height: 280px;
    }

    .project-modal-close {
        width: 40px;
        height: 40px;

        top: 10px;
        right: 10px;
    }


    /* PORTADA CELULAR */

    .entry-brand {
        width: 76px;
        height: 76px;

        margin-bottom: 24px;
    }

    .entry-brand-icon {
        border-radius: 15px;

        font-size: 40px;
    }

    .entry-brand-shadow {
        border-radius: 15px;
    }

    .entry-kicker {
        font-size: 9px;

        letter-spacing: 4px;
    }

    .entry-content h2 {
        font-size:
            clamp(48px, 15vw, 68px);

        letter-spacing: -2px;
    }

    .entry-description {
        margin-top: 21px;

        font-size: 16px;
    }

    .entry-button {
        width:
            min(260px, 100%);

        margin-top: 27px;
    }

    .entry-sectors {
        max-width: 310px;

        line-height: 1.8;
    }

    .entry-orbit-one {
        width: 105vw;
        height: 55vw;
    }

    .entry-orbit-two {
        width: 55vw;
        height: 95vw;
    }

    .entry-skip {
        right: 14px;
        bottom: 14px;
    }
}


/* Portada corporativa: breve, sobria y basada en el lenguaje de la marca. */
.entry-screen {
    background: #081824;
}

.entry-image {
    position: absolute;
    inset: 0 0 0 42%;
    z-index: -3;
    background:
        linear-gradient(90deg, #081824 0%, rgba(8, 24, 36, 0.84) 20%, rgba(8, 24, 36, 0.18) 100%),
        linear-gradient(0deg, rgba(8, 24, 36, 0.62), rgba(8, 24, 36, 0.06)),
        url("../imagen/proyectos/four-seasons.jpg");
    background-position: center;
    background-size: cover;
}

.entry-grid,
.entry-orbit,
.entry-glow-two {
    display: none;
}

.entry-glow-one {
    display: block;
    width: 520px;
    height: 520px;
    top: auto;
    bottom: -300px;
    left: 20%;
    background: rgba(255, 90, 31, 0.14);
    filter: blur(100px);
}

.entry-content {
    width: min(1180px, calc(100% - 80px));
    padding-right: 42%;
    text-align: left;
}

.entry-brand {
    width: auto;
    height: auto;
    margin: 0 0 50px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.entry-brand::after {
    content: "GRUPO EMCARO";
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.entry-brand-icon {
    position: static;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    font-size: 1.8rem;
    box-shadow: none;
}

.entry-brand-shadow {
    display: none;
}

.entry-kicker {
    margin-bottom: 18px;
    color: #ff8a61;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
}

.entry-content h2 {
    max-width: 650px;
    font-size: clamp(3.1rem, 5.4vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.entry-content h2 span {
    display: block;
}

.entry-description {
    max-width: 550px;
    margin: 26px 0 0;
    color: #c7d2da;
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.65;
}

.entry-button {
    margin-top: 34px;
    border-radius: 5px;
    box-shadow: none;
}

.entry-sectors {
    max-width: 620px;
    margin: 36px 0 0;
    color: #8294a1;
    font-size: 0.64rem;
    letter-spacing: 0.13em;
    line-height: 1.6;
}

.entry-skip {
    right: 40px;
    bottom: 34px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.36);
    color: #dce5ea;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 650px) {
    .entry-image {
        inset: 0;
        opacity: 0.32;
        background: linear-gradient(0deg, #081824 0%, rgba(8, 24, 36, 0.74) 52%, rgba(8, 24, 36, 0.28) 100%), url("../imagen/proyectos/four-seasons.jpg");
        background-position: center;
        background-size: cover;
    }

    .entry-content {
        width: min(calc(100% - 40px), 540px);
        padding-right: 0;
    }

    .entry-brand {
        margin-bottom: 36px;
    }

    .entry-brand::after {
        font-size: 0.92rem;
    }

    .entry-content h2 {
        font-size: clamp(2.55rem, 11.5vw, 3.5rem);
    }

    .entry-description {
        font-size: 1rem;
    }

    .entry-sectors {
        margin-top: 28px;
        font-size: 0.56rem;
    }

    .entry-skip {
        right: 20px;
        bottom: 22px;
    }
}


/* =========================================================
   ACCESIBILIDAD / MENOS MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .entry-content,
    .entry-orbit-one,
    .entry-orbit-two {
        animation: none !important;
    }

    .entry-screen,
    .entry-button,
    .service-card,
    .portfolio-card {
        transition-duration: 0.01ms !important;
    }
}
.anti-spam-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.process-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 6%;
    color: #071725;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 42px;
}

.process-step {
    position: relative;
    padding: 28px 24px 26px;
    border: 1px solid #e2e8ed;
    border-radius: 16px;
    background: #ffffff;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.process-step:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 91, 35, .7);
    background: #fffaf7;
}

.process-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    border-radius: 50%;
    color: #fff;
    background: #ff5b23;
    font-weight: 800;
    letter-spacing: .04em;
}

.process-step h3 {
    margin: 0 0 12px;
    color: #071725;
    font-size: 1.1rem;
}

.process-step p {
    margin: 0;
    color: #526779;
    line-height: 1.65;
}

.quote-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto 96px;
    padding: 38px 6%;
    border-radius: 18px;
    background: linear-gradient(105deg, #ff5b23, #ff7a3d);
    box-shadow: 0 18px 45px rgba(255, 91, 35, .2);
}

.quote-cta .eyebrow { color: rgba(255, 255, 255, .78); }
.quote-cta h2 { margin: 8px 0 0; color: #fff; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.quote-cta .btn-primary { background: #081a29; border-color: #081a29; white-space: nowrap; }

.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    border-radius: 999px;
    color: #fff;
    background: #19b958;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .24);
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.floating-whatsapp:hover { transform: translateY(-3px); background: #128c43; }

.faq-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 90px 6%;
}

.faq-list { margin-top: 34px; }
.faq-list details {
    border-bottom: 1px solid #dfe6eb;
    color: #071725;
}
.faq-list summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 38px 22px 0;
    position: relative;
    font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    color: #ff5b23;
    font-size: 1.5rem;
    line-height: 1;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p {
    max-width: 760px;
    margin: -4px 0 22px;
    color: #526779;
    line-height: 1.7;
}

/* Reduce el trabajo inicial del navegador en secciones que están más abajo. */
.services, .process-section, .faq-section, .quote-section, footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
}

/* Ajustes editoriales para una presentación más sobria y propia. */
.hero {
    min-height: 640px;
    justify-content: flex-start;
    background-position: center 56%;
}

.hero-content {
    max-width: 760px;
}

.hero-summary {
    position: relative;
    z-index: 3;
    width: min(320px, 30vw);
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 3px solid var(--orange);
    border-radius: 6px;
    background: rgba(4, 17, 28, 0.86);
    color: white;
}

.hero-summary > p {
    margin-bottom: 14px;
    color: #ff8a61;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-summary ul {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.hero-summary li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.hero-summary a {
    color: white;
    font-weight: 800;
}

.hero h1 {
    max-width: 780px;
    line-height: 1.02;
}

.benefit {
    justify-content: flex-start;
    padding-left: 34px;
}

.benefit::before {
    content: "";
    width: 3px;
    height: 34px;
    flex: 0 0 3px;
    background: var(--orange);
}

.service-card,
.process-step {
    border-radius: 6px;
    box-shadow: none;
}

.service-card:hover,
.process-step:hover {
    transform: translateY(-3px);
}

.project-preview-card {
    min-height: 270px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: #071725;
}

.project-preview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 17, 28, 0.92), rgba(4, 17, 28, 0.04) 70%);
}

.project-preview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.project-preview-card:hover img {
    transform: scale(1.035);
}

.project-preview-card div {
    position: relative;
    z-index: 1;
    padding: 22px;
}

.project-preview-card span {
    display: block;
    margin-bottom: 5px;
    color: #ff8a61;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.project-preview-card h3 {
    margin: 0;
    font-size: 20px;
}

.quote-cta {
    border-radius: 6px;
    background: #ff5b23;
    box-shadow: none;
}

@media (max-width: 650px) {
    .hero {
        min-height: 590px;
    }

    .benefit {
        padding-left: 18px;
    }

    .project-preview-card {
        min-height: 240px;
    }

    .hero-summary {
        display: none;
    }
}

@media (max-width: 900px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .process-section { padding: 76px 5%; }
    .process-grid { grid-template-columns: 1fr; }
    .quote-cta { align-items: flex-start; flex-direction: column; margin: 0 5% 72px; padding: 30px 24px; }
    .quote-cta .btn-primary { width: 100%; text-align: center; }
    .floating-whatsapp { right: 14px; bottom: 14px; padding: 12px 15px; }
}


/* Refinamiento visual: jerarquía clara y presencia de obra real. */
.hero {
    min-height: min(740px, calc(100vh - 82px));
    gap: 64px;
    padding-block: 104px;
    background:
        linear-gradient(90deg, #05121d 0%, #05121d 42%, rgba(5, 18, 29, 0.78) 64%, rgba(5, 18, 29, 0.18) 100%),
        url("../imagen/proyectos/cap-cana.jpg");
    background-position: center;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(3.1rem, 5.3vw, 5.1rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-summary {
    width: min(288px, 28vw);
    padding: 25px;
    border-left-width: 3px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
}

.section,
.projects-preview,
.quote-section {
    padding-block: 112px;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.52fr);
    column-gap: 9%;
    align-items: end;
    max-width: 1140px;
}

.section-heading .eyebrow,
.section-heading h2 {
    grid-column: 1;
}

.section-heading > p:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-bottom: 2px;
    padding-left: 22px;
    border-left: 2px solid var(--orange);
}

.section-heading h2,
.about h2,
.projects-heading h2,
.quote-info h2 {
    letter-spacing: 0;
}

.services {
    background: #f3f5f5;
}

.service-grid {
    gap: 1px;
    overflow: hidden;
    border: 1px solid #dce2e4;
    border-radius: 6px;
    background: #dce2e4;
}

.service-card {
    min-height: 280px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.service-card:hover {
    transform: none;
    box-shadow: inset 0 -4px 0 var(--orange);
}

.about {
    min-height: 600px;
}

.about-image {
    min-height: 600px;
    background-position: center;
}

.projects-preview {
    background: #071725;
}

.project-placeholder {
    gap: 12px;
}

.project-preview-card {
    min-height: 340px;
    border: 0;
    border-radius: 4px;
}

.project-preview-card div {
    padding: 24px;
}

.project-preview-card span {
    display: inline-block;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: white;
    font-size: 0.68rem;
}

.project-preview-card h3 {
    font-size: 1.35rem;
}

.big-project-button {
    min-height: 74px;
    margin-top: 12px;
    border-radius: 4px;
}

.quote-cta {
    margin-inline: 6%;
}

@media (max-width: 950px) {
    .section-heading {
        display: block;
    }

    .section-heading > p:last-child {
        margin-top: 20px;
    }
}

@media (max-width: 650px) {
    .hero {
        min-height: 650px;
        padding-block: 72px;
        background-position: 58% center;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 12vw, 3.4rem);
    }

    .section,
    .projects-preview,
    .quote-section {
        padding-block: 76px;
    }

    .project-preview-card {
        min-height: 260px;
    }

    .quote-cta {
        margin-inline: 20px;
    }
}

/* La portada necesita estas reglas al final para prevalecer sobre estilos antiguos. */
@media (max-width: 650px) {
    .entry-content {
        width: calc(100% - 40px);
        max-width: 540px;
        padding-right: 0;
    }

    .entry-content h2 {
        max-width: 100%;
        font-size: clamp(2.45rem, 10.5vw, 3.15rem);
        overflow-wrap: anywhere;
    }

    .entry-content h2 span {
        display: block;
    }

    .entry-description {
        width: 100%;
        max-width: 100%;
        font-size: 0.94rem;
        overflow-wrap: anywhere;
    }

    .entry-sectors {
        width: 100%;
        max-width: 100%;
        font-size: 0.54rem;
        overflow-wrap: anywhere;
    }
}


/* Formularios y navegación accesible */
:focus-visible { outline: 3px solid #e7470e; outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 10px; left: 10px; transform: translateY(-160%); padding: 12px 18px; background: white; color: #071725; z-index: 1000001; border: 2px solid #e7470e; }
.skip-link:focus { transform: none; }
.form-privacy { margin-top: 20px; font-size: 12px; line-height: 1.7; color: #495866; }
.form-privacy a { color: #9d330b; text-decoration: underline; }
.privacy-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 13px; line-height: 1.6; }
.quote-form .privacy-consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; accent-color: #b53b0e; }
.footer-legal { flex-basis: 100%; font-size: 13px; }
.footer-legal a { color: #c3ced7; text-decoration: underline; }
.project-results { margin: 0 auto 20px; max-width: 1200px; padding-inline: 6%; color: #495866; }
.project-facts { margin: 20px 0; padding: 16px; background: #f3f5f7; border-left: 3px solid #e7470e; }
.project-facts dt { font-size: 12px; font-weight: 700; color: #495866; }
.project-facts dd { margin: 0; color: #071725; }
.project-consultation { margin: 16px 0; }
.portfolio-image img[role="button"] { cursor: pointer; }
.privacy-page { max-width: 850px; padding: 60px 24px 100px; margin: auto; }
.privacy-page h1 { font-size: clamp(2rem,5vw,3rem); line-height: 1.2; margin: 28px 0; }
.privacy-page h2 { font-size: 1.35rem; margin: 30px 0 12px; }
.privacy-page a { color: #9d330b; text-decoration: underline; }
@media (max-width:650px) { .quote-contact-fields { grid-template-columns: 1fr; } }

.project-modal { transition: opacity .3s ease; }
@media (prefers-reduced-motion: reduce) { .project-modal { transition: none; } }
