/*==========================================================
VARIABLES
==========================================================*/

:root {
    /* Tipografía */
    --font-title: "Poppins", sans-serif;
    --font-text: "Outfit", sans-serif;
    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --font-size-h: 3rem;
    --font-size-p: 1.15rem;
    /* Colores */
    --primary-color: #7A0C0C;
    --primary-hover: #981212;
    --background-color: #F5F5F5;
    --white: #FFFFFF;
    --text-color: #222222;
    --text-light: #444444;
    --border-color: #DDDDDD;
    /* Bordes */
    --radius: 10px;
    /* Sombra */
    --shadow: 0 12px 35px rgba(0,0,0,.12);
    /* Transición */
    --transition: .3s ease;
}

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

body {
    font-family: var(--font-text);
    color: var(--text-color);
    background: var(--background-color);
}

h1,
h2,
h3 {
    font-family: var(--font-title);
    font-weight: 600;
}

button,
.btn-primary,
.btn-secondary {
    font-family: var(--font-title);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(122, 12, 12, 0.90);
    /* Primary color with slight transparency */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.82);
    /* Transparent black */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,.30);
}

.navbar {
    max-width: 1750px;
    height: 90px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    width: 150px;
    height: auto;
}

.numTel {
    text-decoration: none;
}

.numTel p {
    font-family: "Outfit",sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--white);
    text-transform: uppercase;
    transition: var(--transition);
}

.numTel:hover p {
    color: var(--primary-hover);
}

.menu {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.menu a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    transition: .3s;
}

.menu a:not(.nav-phone)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transition: .3s;
}

.menu a:not(.nav-phone):hover::after {
    transform: scaleX(1);
}

.menu a:hover {
    color: white;
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1.5px solid rgba(255,255,255,.4);
    border-radius: 30px;
}

.menu a.nav-phone {
    font-size: 1rem;
}

.menu a.nav-phone:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

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

.hero {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
}

.logordo {
    position: relative;
    z-index: 1;
    background: var(--background-color);
}

.slider {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    color: white;
    max-width: 700px;
}

.hero-content h2 {
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 3px 10px rgba(0,0,0,.55), 0 8px 25px rgba(0,0,0,.35);
    display: inline-block;
}

.hero-content p {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 40px;
    text-shadow: 0 2px 6px rgba(0,0,0,.40);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.hero-buttons a {
    text-decoration: none;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0,0,0,.35), 0 15px 35px rgba(0,0,0,.60), 0 30px 60px rgba(0,0,0,.45);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    border: 2px solid var(--white);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0,0,0,.35), 0 15px 35px rgba(0,0,0,.60), 0 30px 60px rgba(0,0,0,.45);
}

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

.btn-secondary i {
    font-size: 1rem;
}

/*==========================================================
FORMULARIO DE CONTACTO
==========================================================*/

.contact-home {
    position: absolute;
    top: 56%;
    right: 10%;
    transform: translateY(-50%);
    width: 450px;
    padding: 35px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    z-index: 20;
    box-shadow: 0 0 30px rgba(0,0,0,.30), 0 25px 60px rgba(0,0,0,.55), 0 45px 100px rgba(0,0,0,.45);
}

.contact-home h2 {
    font-size: 2.3rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.contact-home h4 {
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: var(--fw-normal);
    color: var(--text-light);
    margin-bottom: 25px;
}

.contact-home h4 {
    position: relative;
    display: inline-block;
    font-family: var(--font-text);
    font-size: 1.05rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 35px;
    text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 2px 2px rgba(0,0,0,.20), 0 4px 8px rgba(0,0,0,.28), 0 8px 18px rgba(0,0,0,.18);
}

.contact-home p {
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    min-height: 170px;
    resize: vertical;
}

.contact-form button {
    padding: 18px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    background: var(--primary-hover);
}

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

.services {
    background: var(--background-color);
    margin-top: 30px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    text-align: center;
    margin: 0 auto 70px;
}

.section-title h2 {
    font-size: var(--font-size-h);
    color: var(--text-color);
    margin-bottom: 20px;
}

.section-title span {
    margin-top: 40px;
    display: inline-block;
    margin-bottom: 18px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    font-size: .85rem;
}

.section-title p {
    font-size: var(--font-size-p);
    line-height: 1.8;
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: var(--text-color);
}

.service-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 22px;
    border: 1.5px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: .95rem;
    transition: var(--transition);
}

.service-btn::after {
    content: "\2192";
    transition: var(--transition);
}

.service-card:hover .service-btn {
    background: var(--primary-color);
    color: var(--white);
}

.service-card:hover .service-btn::after {
    transform: translateX(4px);
}

/*==========================================================
ANIMACIÓN: LAS TARJETAS APARECEN AL HACER SCROLL
==========================================================*/

.service-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease, transform .6s ease, box-shadow .3s ease;
}

.service-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.service-card.in-view:hover {
    transform: translateY(-10px);
}

.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: .1s; }
.services-grid .service-card:nth-child(3) { transition-delay: .2s; }
.services-grid .service-card:nth-child(4) { transition-delay: .3s; }
.services-grid .service-card:nth-child(5) { transition-delay: .4s; }
.services-grid .service-card:nth-child(6) { transition-delay: .5s; }

/*About us*/

.about-us {
    margin-top: 70px;
    margin-bottom: 90px;
}

.about-us h2 {
    font-size: var(--font-size-h);
}

.about-us p {
    font-size: var(--font-size-p);
    line-height: 1.8;
    color: var(--text-light);
}

.conocenos-box {
    display: flex;
    width: 80%;
    justify-content: space-between;
    gap: 30px;
}

.conocenos-box img {
    width: 600px;
}

#about-us-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conocenos-box p {
    width: 60%;
    padding-top: 50px;
    text-align: left;
}

/*==========================================================
ANIMACIÓN: APARECER DESDE UN LADO AL HACER SCROLL
==========================================================*/

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 2.5s ease, transform 2.5s ease;
}

.reveal-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 2.5s ease, transform 2.5s ease;
}

.reveal-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px) scale(.96);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-up.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-fade {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.6s ease, transform 1.6s ease;
}

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

.reveal-fade-delay {
    transition-delay: .2s;
}

.reveal-fade-delay-1 {
    transition-delay: .15s;
}

.reveal-fade-delay-2 {
    transition-delay: .3s;
}

.reveal-fade-delay-3 {
    transition-delay: .45s;
}

.reveal-fade-delay-4 {
    transition-delay: .6s;
}

/* Gana siempre a otras reglas "transition" que puedan tocar la misma imagen */
img.reveal-left,
img.reveal-right {
    transition: opacity 2.5s ease, transform 2.5s ease !important;
}

#misionVision {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1500px;
    margin: 0 auto;
    gap: 60px;
}

#misionVision::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 220px;
    background-color: #1f1f1f;
}

#misionVision h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-size: 1.5rem;
    font-style: oblique;
    font-weight: 100;
}

#misionVision h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 999px;
}

.h3title {
    width: 600px;
    max-width: 100%;
}

/*==========================================================
¿POR QUÉ ELEGIRNOS?
==========================================================*/

#porQue {
    position: relative;
    overflow: hidden;
    padding: 80px 120px 80px 160px;
    background: url("../images/nave.png") center/cover no-repeat;
}

/* opcional: oscurecer la foto para que el texto blanco se lea bien */

#porQue::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 0;
}

/* todo el contenido por encima de la capa oscura, EXCEPTO
.why-animation, que necesita mantener su position:absolute
propio para flotar sobre la imagen (si no se excluye aquí,
el ID #porQue le gana en especificidad y lo convierte en
position:relative, rompiendo el flotado) */

#porQue > *:not(.why-animation) {
    position: relative;
    z-index: 1;
}

#proceso {
    position: relative;
    z-index: 30;
}

#porQue h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 400;
}

#porQue p {
    font-size: 1.2rem;
}

#porQue h3,
#porQue p,
#porQue i {
    color: white;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 30px;
}

.cta-presupuesto {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 38px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    clip-path: polygon( 0 0, 92% 0, 100% 50%, 92% 100%, 0 100% );
    transition: .35s;
}

.cta-presupuesto i {
    transition: .35s;
}

.cta-presupuesto:hover {
    transform: translateX(8px);
    box-shadow: 0 15px 35px rgba(122,12,12,.35);
}

.cta-presupuesto:hover i {
    transform: translateX(6px);
}

.coverage-text {
    margin-top: 90px;
    max-width: 430px;
    color: rgba(255,255,255,.85);
    line-height: 1.8;
    font-size: .95rem;
}

.coverage-text strong {
    color: #fff;
    font-weight: 500;
}

.furgo {
    width: 400px;
}

.madridFlag {
    width: 90px;
    padding-bottom: 6%;
}

.why-animation {
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(calc(-50% - 20px));
    width: 500px;
    height: 350px;
    z-index: 1;
}

.word {
    position: absolute;
    color: white;
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 4px;
    opacity: 0;
}

.calidad {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.precision {
    top: 120px;
    left: 80px;
}

.compromiso {
    top: 220px;
    right: 60px;
}

.logo-final {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.logo-icon {
    width: 700px;
    height: auto;
}

.phone-cta {
    margin-top: 80%;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    padding: 18px 0;
    position: relative;
    transition: .35s;
}

.phone-icon {
    width: 68px;
    height: 68px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: .35s;
}

.phone-info {
    display: flex;
    flex-direction: column;
}

.phone-info small {
    color: white;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.phone-info strong {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.phone-cta::before {
    content: "";
    position: absolute;
    left: 90px;
    right: 0;
    bottom: 8px;
    height: 2px;
    background: linear-gradient( 90deg, var(--primary-color), transparent );
    transition: .35s;
}

.phone-cta:hover {
    transform: translateX(10px);
}

.phone-cta:hover .phone-icon {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 18px rgba(122,12,12,.45);
}

.phone-cta:hover strong {
    text-shadow: 0 0 10px rgba(122,12,12,.35), 0 0 20px rgba(122,12,12,.25);
}

.phone-cta:hover::before {
    right: -40px;
}

/*==========================================================
NUESTRO PROCESO
==========================================================*/

#proceso {
    padding: 80px 5%;
    background: #fff;
}

#proceso .section-title {
    max-width: 750px;
    margin: 0 auto 90px;
    text-align: center;
}

#proceso .section-title span {
    display: inline-block;
    color: var(--primary-color);
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

#proceso .section-title h2 {
    font-size: var(--font-size-h);
    margin-bottom: 20px;
}

#proceso .section-title p {
    color: #6b6b6b;
    line-height: 1.8;
    max-width: 650px;
    margin: auto;
}

/*==================== TIMELINE ====================*/

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 35px;
    margin-top: 80px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 72px;
    left: 8%;
    width: 84%;
    height: 2px;
    background: #e5e5e5;
    z-index: 0;
}

/*==================== STEP ====================*/

.step {
    position: relative;
    flex: 1;
    text-align: center;
    z-index: 2;
    transition: .4s;
}

/*==================== NUMBER ====================*/

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: #ececec;
    margin-bottom: 20px;
    transition: .35s;
}

/*==================== CIRCLE ====================*/

.circle {
    width: 90px;
    height: 90px;
    margin: 0 auto 35px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: .35s;
}

/*==================== TEXT ====================*/

.step h3 {
    margin-bottom: 18px;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.step p {
    color: #6b6b6b;
    line-height: 1.8;
    font-size: .95rem;
    max-width: 260px;
    margin: auto;
}

/*==================== HOVER ====================*/

.step:hover .circle {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(122,12,12,.25);
}

.step:hover .step-number {
    color: var(--primary-color);
}

.step:hover h3 {
    color: var(--primary-color);
}

/*==================== RESPONSIVE ====================*/

@media(max-width:1100px) {
    .timeline {
        flex-direction: column;
        gap: 80px;
    }

    .timeline::before {
        display: none;
    }

    .step {
        max-width: 500px;
        margin: auto;
    }
}

/*frase final*/

#frase-final {
    position: relative;
    padding: 140px 8%;
    background: linear-gradient(rgba(0,0,0,.70), rgba(0,0,0,.70)), url("../images/imgSLogan.png") center/cover no-repeat;
    text-align: center;
}

.frase-eyebrow {
    display: inline-block;
    color: var(--primary-color);
    letter-spacing: 4px;
    font-weight: 500;
    margin-bottom: 20px;
}

.frase-subtitle {
    max-width: 620px;
    margin: 30px auto 35px;
    color: #ddd;
    font-size: 1.1rem;
    line-height: 1.8;
}

.frase-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
    text-align: center;
}

.frase-container h2 {
    color: white;
    font-size: clamp(2rem, 3vw, 3.4rem);
    font-weight: 600;
    line-height: 1.2;
}

.operator {
    color: var(--primary-color);
    font-size: clamp(3rem, 4vw, 4.5rem);
    font-weight: 600;
    line-height: 1;
}

/*==========================================================
RESPONSIVE (evita que los anchos fijos desborden
en pantallas medianas / portátiles)
==========================================================*/

@media (max-width: 1400px) {
    .conocenos-box img {
        width: 45%;
        max-width: 600px;
    }

    .why-animation {
        right: 5%;
        width: 400px;
    }

    .logo-icon {
        width: 280px;
    }
}

@media (max-width: 1100px) {
    .contact-home {
        position: static;
        transform: none;
        width: 90%;
        max-width: 450px;
        margin: 40px auto 0;
    }

    .hero {
        position: static;
        height: auto;
        min-height: 100vh;
        padding-bottom: 60px;
    }

    .hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 90%;
        margin: 140px auto 40px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .conocenos-box {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .conocenos-box img,
    .conocenos-box p {
        width: 90%;
        max-width: 600px;
    }

    #misionVision {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    #misionVision::after {
        display: none;
    }

    .h3title {
        width: 100%;
        max-width: 600px;
        text-align: center;
    }

    #porQue {
        width: 90%;
    }

    .why-animation {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 60px auto 0;
    }
}

@media (max-width: 700px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

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

    .logo img {
        width: 110px;
    }

    .menu {
        gap: 18px;
        flex-wrap: wrap;
    }
}

/*==========================================================
TODO LO QUE DEBES SABER
==========================================================*/

#info-cliente {
    padding: 140px 0;
    background: #ffffff;
}

#info-cliente .info-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 40px;
}

#info-cliente .info-header {
    max-width: 850px;
    margin-bottom: 90px;
}

#info-cliente .info-header span {
    display: inline-block;
    color: var(--primary-color);
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

#info-cliente .info-header h2 {
    font-size: 3.3rem;
    line-height: 1.15;
    color: var(--text-color);
    margin-bottom: 30px;
}

#info-cliente .info-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.9;
}

#info-cliente .info-layout {
    display: grid;
    grid-template-columns: 1.3fr .9fr;
    gap: 100px;
    align-items: start;
}

/*================================*/

#info-cliente .info-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 30px;
    padding: 35px 0;
    border-top: 1px solid #e2e2e2;
}

#info-cliente .info-item:last-child {
    border-bottom: 1px solid #e2e2e2;
}

#info-cliente .info-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-title);
}

#info-cliente .info-content h3 {
    font-size: 1.45rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

#info-cliente .info-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/*================================*/

#info-cliente .info-right {
    border-left: 2px solid var(--primary-color);
    padding-left: 45px;
}

#info-cliente .info-right h3 {
    font-size: 2rem;
    margin-bottom: 35px;
}

#info-cliente .info-right details {
    border-bottom: 1px solid #e2e2e2;
    padding: 22px 0;
}

#info-cliente .info-right summary {
    list-style: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    transition: .3s;
}

#info-cliente .info-right summary::-webkit-details-marker {
    display: none;
}

#info-cliente .info-right summary::after {
    content: "+";
    float: right;
    font-size: 1.4rem;
    color: var(--primary-color);
}

#info-cliente .info-right details[open] summary::after {
    content: "−";
}

#info-cliente .info-right summary:hover {
    color: var(--primary-color);
}

#info-cliente .info-right p {
    margin-top: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

/*================================*/

@media(max-width:1000px) {
    #info-cliente .info-layout {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    #info-cliente .info-right {
        border-left: none;
        border-top: 2px solid var(--primary-color);
        padding-left: 0;
        padding-top: 35px;
    }

    #info-cliente .info-header h2 {
        font-size: 2.5rem;
    }
}

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

footer {
    background: #1a1a1a;
    color: #d8d8d8;
    padding: 90px 0 30px;
}

.footer-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.2fr .8fr .9fr 1.3fr;
    gap: 60px;
    align-items: flex-start;
}

/*==================================
COLUMNAS
==================================*/

.footer-col h3 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 28px;
    position: relative;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 45px;
    height: 3px;
    background: var(--primary-color);
}

.footer-col p {
    color: #bcbcbc;
    line-height: 1.9;
    font-size: 1rem;
}

/*==================================
LOGO
==================================*/

.footer-col img {
    width: 180px;
    margin-bottom: 20px;
}

.footer-col:first-child h3 {
    margin-top: 10px;
}

/*==================================
ENLACES
==================================*/

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: #bcbcbc;
    text-decoration: none;
    transition: .3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 6px;
}

/*==================================
CONTACTO
==================================*/

.footer-col p i {
    color: var(--primary-color);
    width: 24px;
    margin-right: 10px;
}

/*==================================
MAPA
==================================*/

.footer-col iframe {
    width: 100%;
    height: 240px;
    border: none;
    border-radius: 10px;
    
}

/*==================================
REDES SOCIALES
==================================*/

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.04);
    color: #d8d8d8;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(122,12,12,.45);
}

/*==================================
LÍNEA
==================================*/

footer hr {
    margin: 70px auto 30px;
    max-width: 1400px;
    border: none;
    border-top: 1px solid rgba(255,255,255,.12);
}

/*==================================
COPYRIGHT
==================================*/

.copyright {
    text-align: center;
    color: #8b8b8b;
    font-size: .95rem;
    letter-spacing: .5px;
}

/*==================================
RESPONSIVE
==================================*/

@media(max-width:1100px) {
    .footer-container {
        grid-template-columns: repeat(2,1fr);
        gap: 50px;
    }
}

@media(max-width:700px) {
    footer {
        padding: 70px 0 25px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 25px;
    }

    .footer-col {
        text-align: left;
    }

    footer hr {
        margin: 50px 25px 25px;
    }
}

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

.empresa-hero {
    position: relative;
    height: 70vh;
    background: url("../images/tallerChat.png") center/cover no-repeat;
    display: flex;
    align-items: center;
}

.empresa-hero .overlay {
    background: linear-gradient(100deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.25) 100%);
}

.empresa-hero .hero-content {
    max-width: 750px;
}

.empresa-hero .hero-content h1 {
    font-size: 3.5rem;
}

.empresa-hero .hero-content p {
    font-size: large;
    max-width: 650px;
}

/*==========================================================
NUESTRA HISTORIA
==========================================================*/

.empresa-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 40px;
}

.empresa-img img {
    width: 100%;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.empresa-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 25px;
}

/*==========================================================
COMPROMETIDOS CON LA SEGURIDAD Y LA CALIDAD
==========================================================*/

.commitment {
    padding: 90px 0;
    background: #fff;
}

.commitment .container {
    max-width: 1500px;
}

.commitment .section-title {
    max-width: 800px;
    margin: 0 0 70px;
    text-align: left;
}

.commitment-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 70px;
}

.commitment-line {
    width: 3px;
    min-height: 420px;
    background: var(--primary-color);
    border-radius: 999px;
    flex-shrink: 0;
}

.commitment-text {
    max-width: 620px;
}

.commitment-text p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: left;
}

.commitment-text p:first-child {
    font-size: 1.35rem;
    color: var(--text-color);
    font-weight: 500;
}

.commitment-text h3 {
    margin-top: 50px;
    text-align: right;
    color: var(--primary-color);
    font-size: 1.5rem;
    letter-spacing: 6px;
    text-transform: uppercase;
}

/*==========================================================
VALORES
==========================================================*/

.empresa-valores {
    padding: 55px 0;
    background: #fff;
}

.empresa-valores .container {
    max-width: 1500px;
}

.principios-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
}

.valor-card {
    background: #fff;
    padding: 45px;
    border-radius: 18px;
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: .35s;
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.valor-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 26px;
    box-shadow: 0 10px 22px rgba(122,12,12,.28);
}

.valor-card h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.valor-card p {
    line-height: 1.8;
    color: var(--text-light);
}

.valor-checklist {
    list-style: none;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #ececec;
    display: grid;
    gap: 12px;
}

.valor-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .95rem;
    color: var(--text-color);
}

.valor-checklist i {
    color: var(--primary-color);
    margin-top: 4px;
    font-size: .85rem;
}

/*==========================================================
TÍTULOS - ACENTO EDITORIAL
==========================================================*/

.title-divider {
    width: 56px;
    height: 2px;
    background: var(--primary-color);
    margin: 0 auto 24px;
}

/*==========================================================
PRINCIPIOS (SUSTITUYE A LAS TARJETAS DE VALORES)
==========================================================*/

.principios-list {
    max-width: 820px;
    margin: 0 auto;
}

.principios-content .principios-list {
    max-width: 500px;
    min-width: 0;
    flex: 1;
    margin: 0;
}

.principio-row {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    gap: 24px;
    transition: var(--transition);
}

.principio-row .principio-body {
    border-bottom: 1px solid var(--border-color);
    margin-right: 40px;
    padding: 17px 0;
}

.principio-row:first-child .principio-body {
    border-top: 1px solid var(--border-color);
}

.principio-row:hover {
    padding-left: 10px;
}

.principio-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-color);
    justify-self: center;
    transition: var(--transition);
}

.principio-row:hover .principio-dot {
    transform: scale(1.3);
}

.principio-body h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
    color: var(--text-color);
}

.principio-body p {
    color: var(--text-light);
    line-height: 1.7;
    max-width: 600px;
    font-size: .95rem;
}

/*==========================================================
BENEFICIOS DE LA CERRAJERÍA METÁLICA (EMPRESA)
==========================================================*/

.beneficios-cerrajeria {
    padding: 70px 0;
    background: #fff;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 0;
    border-top: 1px solid var(--border-color);
}

.beneficio-item {
    padding: 26px 40px;
    border-bottom: 1px solid var(--border-color);
}

.beneficio-item:nth-child(odd) {
    border-right: 1px solid var(--border-color);
}

.beneficio-mark {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-color);
    margin-bottom: 12px;
}

.beneficio-item h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.beneficio-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: .95rem;
}

/*==========================================================
GALERÍA
==========================================================*/

.empresa-galeria {
    padding: 70px 40px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 30px;
}

.galeria-grid img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: .4s;
}

.galeria-grid img:hover {
    transform: scale(1.04);
}

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

.empresa-numeros {
    background: var(--primary-color);
    padding: 90px 0;
}

.empresa-numeros .container {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 40px;
    text-align: center;
}

.numero h2 {
    color: white;
    font-size: 4rem;
    margin-bottom: 12px;
}

.numero p {
    color: rgba(255,255,255,.85);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.empresa-cta {
    position: relative;
    padding: 140px 40px;
    background: url("../images/imgSLogan.png") center/cover no-repeat;
    text-align: center;
}

.empresa-cta .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.60);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: auto;
}

.cta-content span {
    display: inline-block;
    color: var(--primary-color);
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.cta-content h2 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.cta-content p {
    color: #ddd;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/*==========================================================
RESPONSIVE
==========================================================*/

@media(max-width:1000px) {
    .empresa-intro {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .beneficio-item:nth-child(odd) {
        border-right: none;
    }
}

@media(max-width:700px) {
    .empresa-hero .hero-content h1 {
        font-size: 3rem;
    }

    .cta-content h2 {
        font-size: 2.4rem;
    }

    .empresa-numeros .container {
        grid-template-columns: 1fr;
    }

    .principio-row {
        grid-template-columns: 18px 1fr;
        gap: 16px;
    }

    .beneficio-item {
        padding: 22px 20px;
    }
}

/*Pagina Servicios*/

/*==========================================================
SUBPÁGINAS · HERO GENÉRICO (servicios, empresa...)
==========================================================*/

.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 170px;
    padding-bottom: 90px;
    padding-left: 10%;
    padding-right: 10%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding-top: 0;
    width: 100%;
    max-width: 950px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: rgba(255,255,255,.85);
    font-size: .95rem;
    letter-spacing: .5px;
    text-shadow: 0 2px 6px rgba(0,0,0,.40);
}

.breadcrumb a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-hover);
}

.breadcrumb i {
    font-size: .7rem;
    color: rgba(255,255,255,.55);
}

.breadcrumb span {
    color: #fff;
    font-weight: 500;
}

/*==========================================================
MENÚ · ENLACE ACTIVO
==========================================================*/

.menu a.active {
    color: var(--primary-hover);
    position: relative;
}

.menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--primary-hover);
}

/*==========================================================
ANCLAS BAJO CABECERA FIJA
==========================================================*/

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 110px;
}

/*==========================================================
INTRO DE SERVICIOS (texto corto bajo el hero)
==========================================================*/

.services-intro {
    padding: 110px 0 20px;
    background: var(--background-color);
}

/*==========================================================
DETALLE DE CADA SERVICIO (alterno imagen/texto)
==========================================================*/

.service-detail {
    padding: 100px 0;
    background: var(--background-color);
}

.service-detail:nth-of-type(even) {
    background: var(--white);
}

.service-detail-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.service-detail.reverse .service-detail-grid {
    direction: rtl;
}

.service-detail.reverse .service-detail-grid > * {
    direction: ltr;
}

.service-detail-img img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-detail-img img:hover {
    transform: translateY(-6px);
}

.service-detail-text span {
    display: inline-block;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    font-size: .85rem;
    margin-bottom: 18px;
}

.service-detail-text h2 {
    font-size: 2.3rem;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 22px;
}

.service-detail-text p {
    color: var(--text-light);
    line-height: 1.85;
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 16px;
    margin-bottom: 36px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
}

.feature-list i {
    margin-top: 4px;
    color: var(--primary-color);
}

.service-detail-text .btn-primary {
    box-shadow: 0 10px 25px rgba(122,12,12,.30);
}

/*==========================================================
RESPONSIVE · SERVICIOS
==========================================================*/

@media(max-width:1000px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .service-detail.reverse .service-detail-grid {
        direction: ltr;
    }

    .service-detail-img img {
        height: 320px;
    }

    .service-detail-text h2 {
        font-size: 1.9rem;
    }

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

@media(max-width:700px) {
    .page-hero {
        min-height: auto;
        padding-top: 150px;
        padding-bottom: 60px;
        padding-left: 6%;
        padding-right: 6%;
    }

    .breadcrumb {
        font-size: .85rem;
    }

    .services-grid-plates {
        grid-template-columns: 1fr;
    }

    .service-plate {
        padding: 40px 30px 34px;
    }
}

/*==========================================================
PLACAS METÁLICAS DE SERVICIO (tono claro, sin tarjetas clásicas)
==========================================================*/

.services-grid-plates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 10px;
}

.service-plate {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 40px 38px;
    background:
        repeating-linear-gradient(135deg, rgba(0,0,0,.02) 0px, rgba(0,0,0,.02) 2px, transparent 2px, transparent 14px),
        linear-gradient(160deg, #f2f0ee 0%, #e4e1dd 100%);
    color: var(--text-color);
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 32px 100%, 0 calc(100% - 32px));
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 8px 22px rgba(0,0,0,.07);
    transition: transform .45s cubic-bezier(.22,.85,.3,1), box-shadow .45s ease;
}

.service-plate::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,.75), transparent);
    transform: skewX(-20deg);
    transition: left .75s ease;
    z-index: 1;
    pointer-events: none;
}

.service-plate:hover::before {
    left: 130%;
}

.service-plate:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.14);
}

.service-plate-rivet {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff, #9a9a9a 70%);
    box-shadow: 0 1px 2px rgba(0,0,0,.35);
    z-index: 2;
}

.rivet-tl {
    top: 14px;
    left: 14px;
}

.rivet-br {
    bottom: 14px;
    right: 14px;
}

.service-plate-icon {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 26px;
    transition: all .4s ease;
}

.service-plate:hover .service-plate-icon {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 0 6px rgba(122,12,12,.15);
    transform: rotate(-6deg);
}

.service-plate h3 {
    position: relative;
    z-index: 2;
    font-size: 1.35rem;
    margin-bottom: 14px;
    color: var(--text-color);
}

.service-plate p {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    line-height: 1.75;
    font-size: .95rem;
    margin-bottom: 22px;
}

.service-plate-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(122,12,12,.3);
    transition: border-color .35s ease;
}

.service-plate:hover .service-plate-link {
    border-color: var(--primary-color);
}

.service-plate-link i {
    transition: transform .35s ease;
}

.service-plate:hover .service-plate-link i {
    transform: translateX(4px);
}

/*==========================================================
SERVICIOS · CÓMO SOLICITAR (pasos + CTA grande)
==========================================================*/

.solicitud-steps {
    padding: 110px 0;
    background: var(--background-color);
}

.solicitud-header {
    max-width: 820px;
    margin-bottom: 55px;
}

.solicitud-header h2 {
    font-size: 2.6rem;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 22px;
}

.solicitud-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

#solicitar {
    display: flex;
}

.pasos-list {
    display: flex;
    flex-direction: column;
    gap: 38px;
    max-width: 820px;
}

.solicitud-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}

.fotito img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.paso-item h3 {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.paso-item p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.paso-item p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.solicitud-cta {
    text-align: left;
    margin-top: 60px;
}

.btn-large {
    padding: 20px 52px;
    font-size: 1.15rem;
    letter-spacing: .5px;
}

@media(max-width:900px) {
    .solicitud-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fotito {
        order: -1;
    }

    .fotito img {
        min-height: 280px;
    }
}

@media(max-width:700px) {
    .solicitud-steps {
        padding: 70px 0;
    }

    .solicitud-header h2 {
        font-size: 2rem;
    }

    .solicitud-cta {
        text-align: center;
    }
}

/*==========================================================
PÁGINA PROYECTOS · ESTILO DOSSIER
==========================================================*/

/*Introducción*/

.proyectos-intro {
    padding: 130px 0 60px;
}

.proyectos-intro .section-title {
    max-width: 900px;
    margin: 0 0 0;
    text-align: left;
}

/*Barra de filtros — texto, sin píldoras*/

.proyectos-filtros {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.filtros-lista {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
    gap: 36px;
}

.filtro-btn {
    background: none;
    border: none;
    padding: 22px 0;
    font-family: var(--font-text);
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .5px;
    color: var(--text-light);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: var(--transition);
}

.filtro-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.filtro-btn:hover {
    color: var(--text-color);
}

.filtro-btn.active {
    color: var(--primary-color);
}

.filtro-btn.active::after {
    transform: scaleX(1);
}

/*Contador de resultados*/

.proyectos-contador {
    max-width: 1400px;
    margin: 0 auto;
    padding: 36px 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.proyectos-contador span {
    color: var(--text-light);
    font-size: .95rem;
}

.proyectos-contador strong {
    color: var(--primary-color);
}

/*==========================================================
LISTA DE PROYECTOS
==========================================================*/

.proyectos-lista {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.proyecto-fila {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.proyecto-fila.oculto {
    display: none;
}

.proyecto-fila.reverse {
    grid-template-columns: 1.1fr .9fr;
}

.proyecto-fila.reverse .proyecto-media {
    order: 2;
}

.proyecto-fila.reverse .proyecto-info {
    order: 1;
}

.proyecto-media {
    position: relative;
    overflow: hidden;
}

.proyecto-media img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    filter: grayscale(35%);
    transition: filter .5s ease;
}

.proyecto-fila:hover .proyecto-media img {
    filter: grayscale(0%);
}

.placeholder-box {
    width: 100%;
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f4f4f4;
    border: 2px dashed var(--border-color);
    color: var(--text-light);
}

.placeholder-box i {
    font-size: 2.2rem;
    opacity: .5;
}

.placeholder-box span {
    font-size: .95rem;
    letter-spacing: .5px;
}

.proyecto-numero {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: var(--primary-color);
    color: var(--white);
    font-family: var(--font-title);
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 10px 18px;
}

.proyecto-info {
    max-width: 560px;
}

.proyecto-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.proyecto-categoria {
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--primary-color);
}

.proyecto-meta .punto {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-color);
}

.proyecto-lugar {
    font-size: .85rem;
    color: var(--text-light);
}

.proyecto-info h2 {
    font-size: 2.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.25;
}

.proyecto-info p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 28px;
}

.proyecto-datos {
    display: flex;
    gap: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--border-color);
}

.proyecto-datos div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.proyecto-datos span {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
}

.proyecto-datos strong {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

/*Mensaje sin resultados*/

.proyectos-vacio {
    display: none;
    text-align: center;
    padding: 100px 0;
    color: var(--text-light);
}

.proyectos-vacio.visible {
    display: block;
}

.proyectos-vacio i {
    font-size: 2rem;
    color: var(--border-color);
    margin-bottom: 18px;
}

.proyectos-vacio p {
    font-size: 1.1rem;
}

/*==========================================================
RESPONSIVE · PROYECTOS
==========================================================*/

@media(max-width:1000px) {
    .proyecto-fila,
    .proyecto-fila.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 55px 0;
    }

    .proyecto-fila.reverse .proyecto-media,
    .proyecto-fila.reverse .proyecto-info {
        order: initial;
    }

    .proyecto-info {
        max-width: 100%;
    }

    .proyecto-media img {
        height: 320px;
    }

    .placeholder-box {
        height: 320px;
    }
}

@media(max-width:700px) {
    .proyectos-intro {
        padding: 110px 0 40px;
    }

    .filtros-lista {
        gap: 26px;
    }

    .proyecto-info h2 {
        font-size: 1.6rem;
    }

    .proyecto-datos {
        flex-wrap: wrap;
        gap: 24px;
    }

    .proyectos-contador {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/*==========================================================
PÁGINA CONTACTO
==========================================================*/

/* Vías de contacto rápidas */

.contacto-info {
    padding: 100px 0 20px;
}

.contacto-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.info-card {
    background: var(--white);
    padding: 38px 32px;
    border-radius: var(--radius);
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-6px);
}

.info-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 22px;
}

.info-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.info-card p a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-card p a:hover {
    color: var(--primary-color);
}

.info-detail {
    display: block;
    font-size: .85rem;
    color: var(--text-light);
}

/* Formulario + ubicación */

.contacto-main {
    padding: 110px 0 130px;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    align-items: start;
}

.contacto-form-card {
    background: var(--white);
    padding: 55px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.contacto-form-title {
    text-align: left;
    margin: 0 0 35px;
}

.contacto-form-title span {
    margin-top: 0;
}

.contacto-form-title h2 {
    font-size: 2rem;
    margin-bottom: 14px;
}

.contacto-form-title p {
    color: var(--text-light);
    font-size: 1.02rem;
    line-height: 1.8;
}

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

.contact-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: .85rem;
    color: var(--text-light);
    line-height: 1.5;
    text-align: left;
}

.contact-form .form-check input {
    width: auto;
    margin-top: 3px;
}

.contact-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-feedback {
    display: none;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 18px;
    background: #eef7ee;
    border: 1px solid #cfe8cf;
    border-radius: 10px;
    color: #2e6b2e;
    font-size: .95rem;
}

.form-feedback i {
    color: #2e6b2e;
}

.form-feedback.visible {
    display: flex;
}

/* Columna lateral: mapa + ficha */

.contacto-side {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contacto-mapa {
    width: 100%;
    height: 280px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contacto-mapa iframe {
   
    display: block;
}

.contacto-side-card {
    background: var(--text-color);
    color: var(--white);
    padding: 42px 38px;
    border-radius: 18px;
}

.contacto-side-card h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.contacto-side-list {
    list-style: none;
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
}

.contacto-side-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .98rem;
    color: #d8d8d8;
}

.contacto-side-list li a {
    color: #d8d8d8;
    text-decoration: none;
    transition: var(--transition);
}

.contacto-side-list li a:hover {
    color: var(--white);
}

.contacto-side-list i {
    width: 20px;
    color: var(--primary-hover);
}

.contacto-side-btn {
    width: 100%;
}

/*==========================================================
RESPONSIVE · CONTACTO
==========================================================*/

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

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

@media(max-width: 700px) {
    .contacto-info {
        padding: 80px 0 10px;
    }

    .contacto-info-grid {
        grid-template-columns: 1fr;
    }

    .contacto-main {
        padding: 70px 0 80px;
    }

    .contacto-form-card {
        padding: 35px 28px;
    }

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

/*==========================================================
PÁGINA CONTACTO · DISEÑO EDITORIAL (SIN TARJETAS)
==========================================================*/

.section-title.align-left {
    text-align: left;
    margin: 0 0 40px;
}

.section-title.align-left span {
    margin-top: 0;
}

/* Hero */

.contacto-hero {
    position: relative;
    height: 56vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: url('../images/barandilla.jpeg') center/cover no-repeat;
}

.contacto-hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    color: var(--white);
}

.contacto-hero-content span {
    display: inline-block;
    font-family: var(--font-title);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--white);
    opacity: .85;
    margin-bottom: 18px;
}

.contacto-hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 22px;
    text-shadow: 0 3px 12px rgba(0,0,0,.5);
}

.contacto-hero-content p {
    font-size: 1.15rem;
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto;
    opacity: .92;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* Bloque editorial: texto + vías de contacto + formulario */

.contacto-editorial {
    padding: 120px 0;
}

.contacto-editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.contacto-editorial-left > p {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--text-light);
    max-width: 480px;
    margin-bottom: 50px;
}

.contacto-vias {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.contacto-vias li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.contacto-vias li:first-child {
    border-top: 1px solid var(--border-color);
}

.via-label {
    font-family: var(--font-title);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    white-space: nowrap;
}

.contacto-vias li a,
.contacto-vias li .via-valor {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: none;
    text-align: right;
    transition: var(--transition);
}

.contacto-vias li a:hover {
    color: var(--primary-color);
}

.contacto-editorial-right .contacto-form-note {
    font-size: .95rem;
    color: var(--text-light);
    margin-bottom: 26px;
    line-height: 1.7;
}

/* Franja de datos, sin tarjetas: columnas separadas por línea */

.contacto-banda {
    background: var(--text-color);
    color: var(--white);
    padding: 70px 0;
}

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

.banda-item {
    text-align: center;
    padding: 0 30px;
    border-left: 1px solid rgba(255,255,255,.15);
}

.banda-item:first-child {
    border-left: none;
}

.banda-item span {
    display: block;
    font-family: var(--font-title);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-hover);
    margin-bottom: 14px;
}

.banda-item p {
    font-size: 1.3rem;
    font-weight: 500;
}

/* Mapa a ancho completo, sobrio */

.contacto-mapa-full {
    width: 100%;
    height: 440px;
    overflow: hidden;
}

.contacto-mapa-full iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
   
}

/*==========================================================
RESPONSIVE · CONTACTO EDITORIAL
==========================================================*/

@media(max-width: 1100px) {
    .contacto-editorial-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contacto-editorial-left > p {
        max-width: 100%;
    }

    .contacto-banda-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .banda-item {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,.15);
        padding: 30px 0 0;
    }

    .banda-item:first-child {
        border-top: none;
        padding-top: 0;
    }
}

@media(max-width: 700px) {
    .contacto-hero {
        height: 46vh;
        min-height: 340px;
    }

    .contacto-hero-content h1 {
        font-size: 2.2rem;
    }

    .contacto-editorial {
        padding: 70px 0;
    }

    .contacto-vias li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .contacto-vias li a,
    .contacto-vias li .via-valor {
        text-align: left;
    }

    .contacto-mapa-full {
        height: 320px;
    }
}

.caja2 {
    display: flex;
}

.imagenLateral {
    flex-shrink: 0;
}

.imagenLateral img {
    width: 450px;
    max-width: 100%;
    padding-right: 0px;
}

.imagenLateral-doble {
    display: flex;
    gap: 16px;
    width: 780px;
    max-width: 100%;
}

.imagenLateral-doble img {
    width: auto;
    flex: 1;
    height: 560px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
    .commitment-content {
        flex-wrap: wrap;
    }

    .imagenLateral {
        margin: 30px auto 0;
    }

    .principios-content {
        flex-wrap: wrap;
    }

    .imagenLateral-izq {
        margin: 0 auto 30px;
    }

    .imagenLateral-doble img {
        height: 340px;
    }
}


/*campo oculto anti-spam*/
.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/*==========================================================
BANNER DE COOKIES
==========================================================*/

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a1a;
    color: #fff;
    padding: 18px 24px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
    min-width: 240px;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

#cookie-accept {
    background: var(--primary-color);
    color: #fff;
}

#cookie-reject {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.cookie-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
    z-index: 9998;
}
