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

:root {
    /* Paleta: Azul (#007499), dorado (#997200), toques violeta (#990099) */
    --azul-claro: #007499;
    --azul-oscuro: #004d66;
    --dorado: #997200;
    --dorado-claro: #b38600;
    --violeta: #990099;
    --violeta-suave: rgba(153, 0, 153, 0.35);
    --negro-carbon: #1C1C1C;
    --gris-hormigon: #B0B0B0;
    --blanco-roto: #F7F7F7;
    --azul-tecnico: #007499;
    --verde-acento: #6A994E;
    /* Mapeo semántico */
    --primary-color: var(--blanco-roto);
    --secondary-color: rgba(247, 247, 247, 0.85);
    --accent-color: var(--azul-claro);
    --accent-light: #0099b3;
    --accent-dark: var(--azul-oscuro);
    --accent-gold: var(--dorado);
    --text-color: var(--blanco-roto);
    --text-light: rgba(247, 247, 247, 0.85);
    --light-bg: var(--blanco-roto);
    --white: var(--blanco-roto);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.25);
    --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--azul-claro) 0%, var(--azul-oscuro) 50%, var(--violeta-suave) 100%);
    --gradient-accent: linear-gradient(135deg, var(--azul-claro) 0%, var(--violeta) 40%, var(--dorado) 100%);
    --gradient-blue: linear-gradient(135deg, var(--accent-light) 0%, var(--azul-claro) 70%, var(--violeta-suave) 100%);
    --gradient-logo: linear-gradient(135deg, var(--blanco-roto) 0%, var(--dorado) 100%);
    --gradient-emerald: linear-gradient(135deg, var(--blanco-roto) 0%, rgba(176, 176, 176, 0.15) 100%);
    --gradient-cyan: linear-gradient(135deg, var(--blanco-roto) 0%, rgba(0, 116, 153, 0.08) 100%);
    --green-primary: var(--verde-acento);
    --green-light: #7fb069;
    --green-dark: #5a8242;
    --green-soft: #a8c99e;
    --green-bg: rgba(106, 153, 78, 0.12);
    --gradient-card: linear-gradient(135deg, rgba(247, 247, 247, 0.95) 0%, rgba(0, 116, 153, 0.08) 100%);
    --gradient-card-alt: rgba(247, 247, 247, 0.98);
    --shadow-violet: 0 5px 20px rgba(0, 116, 153, 0.25);
    --card-bg: linear-gradient(135deg, rgba(247, 247, 247, 0.96) 0%, rgba(0, 116, 153, 0.06) 100%);
    --card-border: 2px solid rgba(247, 247, 247, 0.4);
    --card-border-hover: 2px solid rgba(153, 114, 0, 0.6);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 10px 40px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(153, 114, 0, 0.2);
}

/* 1️⃣ Base global (OBLIGATORIO) */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: #007499;
}

body {
    font-family: 'Roboto', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    perspective: 1200px;
    background: #007499;
    min-height: 100vh;
    position: relative;
}

/* Sin scroll vertical en desktop: solo rueda/touch mueven horizontal */
body.horizontal-scroll-only {
    overflow-y: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

/* Capa de fondo: banda estilo película (fotos moviéndose hacia la izquierda) */
.bg-images {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Banda que se mueve hacia la izquierda en bucle */
.bg-film-strip {
    display: flex;
    flex-direction: row;
    width: 200%;
    height: 100%;
    animation: filmScroll 90s linear infinite;
}

.bg-film-set {
    display: flex;
    flex-direction: row;
    flex: 0 0 50%;
    height: 100%;
}

.bg-film-strip .bg-img-wrap {
    flex: 0 0 9.09%;
    min-width: 120px;
    height: 100%;
    position: relative;
}

.bg-film-strip .bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: brightness(0.88) contrast(1.05) saturate(0.95);
}

@keyframes filmScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .bg-film-strip .bg-img { opacity: 0.26; }
    .bg-film-strip { animation-duration: 120s; animation-timing-function: linear; }
}

.main-content-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding-top: 140px;
    min-height: 100vh;
    overflow: hidden;
    background: transparent;
}

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

/* Navegación flotante transparente - navbar grande */
.navbar {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: padding 0.3s ease;
    border-bottom: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    margin-left: 0;
    margin-right: auto;
}

.nav-brand-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

/* Logo: Technical Insulation SL con fade a dorado */
.nav-brand-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--blanco-roto) 0%, var(--dorado) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--blanco-roto);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.2s, opacity 0.2s;
    padding: 8px 0;
}

.nav-menu a::after {
    display: none;
}

.nav-menu a:hover {
    color: var(--blanco-roto);
    opacity: 0.85;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section Profesional */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--blanco-roto);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 77, 102, 0.88) 0%, rgba(0, 77, 102, 0.75) 45%, rgba(153, 0, 153, 0.2) 70%, rgba(0, 116, 153, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 20px;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    font-family: 'Oswald', sans-serif;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(247, 247, 247, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(247, 247, 247, 0.35);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Vollkorn', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--blanco-roto);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--blanco-roto) 0%, var(--violeta) 40%, var(--dorado) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-primary {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-accent);
    color: var(--blanco-roto);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 119, 182, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 119, 182, 0.45);
}

/* Botón Enviar (contacto): solo #990099, sin fade */
.contact-form .btn-primary {
    background: #990099;
    box-shadow: 0 4px 16px rgba(153, 0, 153, 0.4);
}

.contact-form .btn-primary::before {
    display: none;
}

.contact-form .btn-primary:hover {
    background: #b300b3;
    box-shadow: 0 6px 24px rgba(153, 0, 153, 0.5);
}

.btn-secondary {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--blanco-roto);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(247, 247, 247, 0.6);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(247, 247, 247, 0.15);
    border-color: var(--blanco-roto);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blanco-roto) 0%, var(--dorado) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Secciones Mejoradas */
section {
    padding: 55px 20px;
    position: relative;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Badges de sección: ocultos */
.section-badge {
    display: none !important;
}

/* Títulos de sección: muy grandes, centrados en vertical */
.section-title {
    font-family: 'Vollkorn', serif;
    font-size: clamp(4rem, 16vw, 11rem);
    font-weight: 700;
    line-height: 1.05;
    max-width: 90vw;
    color: var(--blanco-roto);
    margin: 0;
    text-align: center;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    margin-bottom: 0;
}

/* Secciones que solo llevan título (una sección por título) */
.section-header-only {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 20px;
    background: transparent;
}

/* 5️⃣ Texto principal */
.section-subtitle {
    font-family: 'Vollkorn', serif;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-light);
    font-weight: 400;
}

/* Servicios Mejorados */
.services {
    background: transparent;
    position: relative;
    padding: 55px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: var(--card-border);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--azul-tecnico), var(--accent-light), var(--gris-hormigon), var(--azul-tecnico));
    background-size: 300% 300%;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
    animation: borderGradient 3s ease infinite;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blanco-roto) 0%, rgba(176, 176, 176, 0.08) 100%);
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

@keyframes borderGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.service-card:hover {
    transform: translateY(-10px);
    border: var(--card-border-hover);
    box-shadow: var(--card-shadow-hover);
}

.service-image-wrapper {
    position: relative;
    height: 440px;
    overflow: hidden;
}

.service-image,
.card-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease, opacity 0.35s ease;
}

.service-card:hover .service-image,
.service-card:hover .card-carousel-img {
    transform: scale(1.1);
}

/* Carrusel dentro de cada card (servicios y proyectos) */
.card-carousel-wrapper {
    position: relative;
}

.card-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* Slides: img y video comparten la misma lógica de carrusel */
.card-carousel img,
.card-carousel-img,
.card-carousel .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    /* Aceleración por hardware para vídeos fluidos */
    transform: translateZ(0);
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-carousel img.active,
.card-carousel-img.active,
.card-carousel .slide.active {
    opacity: 1;
    pointer-events: auto;
}

.card-carousel-prev,
.card-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(247, 247, 247, 0.5);
    background: rgba(28, 28, 28, 0.35);
    color: rgba(247, 247, 247, 0.9);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.card-carousel-prev {
    left: 8px;
}

.card-carousel-next {
    right: 8px;
}

.card-carousel-prev:hover,
.card-carousel-next:hover {
    background: var(--azul-tecnico);
    border-color: var(--blanco-roto);
    color: var(--blanco-roto);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(28, 28, 28, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-content {
    padding: 36px 32px;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
}

/* 7️⃣ Servicios (cards) */
.service-content h3,
.service-card h3 {
    font-family: 'Vollkorn', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--negro-carbon);
    margin-bottom: 15px;
}

.service-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(176, 176, 176, 0.25);
}

.service-features li:last-child {
    border-bottom: none;
}

/* Experiencias Mejoradas */
.experiences {
    background: transparent;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    border: var(--card-border);
    text-align: center;
}

.project-card:hover {
    transform: translateY(-10px);
    border: var(--card-border-hover);
    box-shadow: var(--card-shadow-hover);
}

/* 8️⃣ Proyectos */
.project-card h3 {
    font-family: 'Vollkorn', Georgia, serif;
    color: var(--negro-carbon);
    margin-bottom: 15px;
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--negro-carbon);
    margin-bottom: 12px;
}

.project-info p,
.project-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}

.project-image-wrapper {
    position: relative;
    height: 460px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image,
.project-card:hover .card-carousel-img {
    transform: scale(1.15);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(28, 28, 28, 0.9));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-details {
    display: flex;
    gap: 20px;
    color: var(--blanco-roto);
    font-weight: 600;
}

.project-year,
.project-area {
    background: rgba(247, 247, 247, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-info {
    padding: 30px;
}

.project-type {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--blanco-roto);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}


.project-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 5px 12px;
    background: rgba(0, 119, 182, 0.12);
    color: var(--azul-tecnico);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 119, 182, 0.25);
}

/* Clientes Mejorados */
/* Galería con navegación */
.gallery-section {
    background: transparent;
    position: relative;
}

.gallery-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

.gallery-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    background: var(--negro-carbon);
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-image.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(0, 119, 182, 0.5);
    background: var(--blanco-roto);
    color: var(--azul-tecnico);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--azul-tecnico);
    color: var(--blanco-roto);
    border-color: var(--azul-tecnico);
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.35);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gris-hormigon);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot:hover,
.gallery-dot.active {
    background: var(--azul-tecnico);
    border-color: var(--azul-tecnico);
}

.clients {
    background: transparent;
    position: relative;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.client-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    border: var(--card-border);
    border-top: 4px solid transparent;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.client-card:hover {
    transform: translateY(-8px);
    border: var(--card-border-hover);
    border-top: 4px solid var(--azul-tecnico);
    box-shadow: var(--card-shadow-hover);
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.client-logo {
    font-size: 3.5rem;
}

.client-rating {
    color: var(--azul-tecnico);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.client-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.client-testimonial {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
}

/* Proveedores */
.providers {
    background: transparent;
    position: relative;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.provider-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    border: var(--card-border);
    text-align: center;
}

.provider-card:hover {
    transform: translateY(-10px);
    border: var(--card-border-hover);
    box-shadow: var(--card-shadow-hover);
}

/* 🔟 Proveedores */
.provider-card h3 {
    font-family: 'Vollkorn', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.provider-type {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
    color: var(--azul-tecnico);
    font-weight: 600;
    margin-bottom: 15px;
}

.provider-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* ========== Servicios: grid 2x2, borde invisible, texto negro ========== */
/* Secciones Servicios, Experiencias, Materiales, Colaboradores, Contacto: más grandes */
.services.services--grid,
.experiences.experiences--grid,
.materials.materials--text,
.providers.providers--grid,
.contacto-section.contacto--cards {
    padding: 0;
    width: 100%;
    height: 100%;
}

.services-grid--2x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1380px;
    margin: 0 auto;
}

/* Servicios: imagen izquierda, texto derecha en cada card */
.service-card--clean {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.service-card--clean .service-image-wrapper {
    flex: 0 0 45%;
    min-width: 0;
    height: auto;
    min-height: 280px;
    max-height: 340px;
}

.service-card--clean .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 2rem;
}

.service-card--clean::before,
.service-card--clean::after {
    display: none !important;
}

.service-card--clean .service-content h3,
.service-card--clean .service-content p {
    color: var(--blanco-roto) !important;
}

.service-card--clean .service-content h3 {
    font-size: 2rem !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card--clean .service-content p {
    color: var(--blanco-roto) !important;
    font-size: 1.1rem !important;
    line-height: 1.65;
}

/* ========== Experiencias: grid 2x2, imagen izquierda texto derecha ========== */
.projects-grid--2x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1380px;
    margin: 0 auto;
}

.project-card--like-service {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0;
    text-align: left;
}

.project-card--like-service .project-image-wrapper {
    flex: 0 0 45%;
    min-width: 0;
    height: auto;
    min-height: 280px;
    max-height: 340px;
}

.project-card--like-service .project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 2rem;
}

.project-card--like-service .project-info h3 {
    font-size: 2rem !important;
    font-weight: 700;
    color: var(--blanco-roto) !important;
    margin-bottom: 0.5rem;
}

.project-card--like-service .project-description {
    font-size: 1.1rem !important;
    line-height: 1.65;
    color: var(--blanco-roto) !important;
}

/* Contenedor flotante (materiales y colaboradores) */
.floating-container {
    background: rgba(0, 52, 66, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(247, 247, 247, 0.12);
    margin: 0 auto;
    max-width: 960px;
}

/* ========== Materiales: cuadrícula 2x2, sin fade en el fondo ========== */
.materials-cards-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1250px;
    margin: 0 auto;
}

.materials--text .material-card {
    background: transparent;
    border-radius: 28px;
    padding: 2rem 2.5rem;
    border: 1px solid rgba(247, 247, 247, 0.2);
}

.materials--text .material-card:hover {
    border-color: rgba(247, 247, 247, 0.2) !important;
}

.materials--text .material-card-title {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--blanco-roto);
    margin: 0 0 0.5rem;
    opacity: 0.98;
}

.materials--text .material-card .materials-text {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.65;
    color: var(--blanco-roto);
    margin: 0;
}

/* ========== Colaboradores: cards más anchas ========== */
.providers-cards-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 95vw;
    width: 100%;
    margin: 0 auto;
}

.provider-card--floating {
    background: rgba(0, 52, 66, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 2.5rem 2.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(247, 247, 247, 0.1);
    border: none;
    text-align: left;
}

.provider-card--floating:hover {
    transform: none;
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(247, 247, 247, 0.1);
}

.provider-card--floating h3 {
    background: linear-gradient(135deg, var(--blanco-roto) 0%, var(--dorado) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.provider-card--floating .provider-type {
    color: var(--blanco-roto);
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.provider-card--floating p {
    font-size: 1.15rem !important;
    line-height: 1.65;
    color: var(--blanco-roto) !important;
}

/* ========== Contacto: info en cards grandes ========== */
.contacto--cards .contact-cards-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    max-width: 95vw;
    width: 100%;
    margin: 0 auto;
}

/* Teléfono y Email: una arriba de la otra en la primera columna */
.contacto--cards .contact-cards-wrap .contact-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.contacto--cards .contact-cards-wrap .contact-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

/* Formulario: ocupa la segunda columna y todo el alto (misma altura que Teléfono + Email) */
.contacto--cards .contact-cards-wrap .contact-card:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: stretch;
    min-height: 0;
}

.contact-card {
    background: rgba(0, 52, 66, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 2.5rem 2.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(247, 247, 247, 0.1);
    border: 1px solid rgba(247, 247, 247, 0.12);
}

.contact-card h3 {
    font-size: 1.8rem !important;
    font-weight: 700;
    color: var(--blanco-roto);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--blanco-roto) 0%, var(--dorado) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-card p,
.contact-card a {
    font-size: 1.2rem !important;
    color: var(--blanco-roto);
    line-height: 1.6;
}

.contact-card a:hover {
    opacity: 0.9;
}

.contact-card-note {
    font-size: 1.2rem !important;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Card del formulario: ocupa todo el espacio vertical */
.contact-card--form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.contact-card--form h3 {
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}

.contact-card--form #contact-form,
.contact-card--form form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.contact-card--form .form-group {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.contact-card--form .form-group:has(textarea) {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.contact-card--form .form-group:has(textarea) .form-control {
    flex: 1;
    min-height: 120px;
    resize: none;
}

.contact-card--form .form-control {
    font-size: 1.2rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
}

/* Botón Enviar: dorado con efecto de brillo */
.contact-card--form .btn-primary,
.contact-card--form #contact-form .btn-primary,
.contact-card--form button[type="submit"] {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--dorado) 0%, var(--dorado-claro) 50%, #c9a000 100%) !important;
    color: var(--negro-carbon) !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 20px rgba(153, 114, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-card--form .btn-primary::before,
.contact-card--form #contact-form .btn-primary::before,
.contact-card--form button[type="submit"]::before {
    content: '';
    display: block !important;
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );
    animation: btnShine 2.5s ease-in-out infinite;
}

.contact-card--form .btn-primary:hover,
.contact-card--form #contact-form .btn-primary:hover,
.contact-card--form button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--dorado-claro) 0%, #c9a000 50%, var(--dorado) 100%) !important;
    box-shadow: 0 6px 28px rgba(153, 114, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

@keyframes btnShine {
    0%   { left: -100%; }
    20%  { left: 100%; }
    100% { left: 100%; }
}

/* Legacy contacto--plain (por si se usa en otro sitio) */
.contacto--plain .contact-grid--plain {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.contact-item--plain {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.contact-item--plain:hover {
    background: transparent !important;
    transform: none;
}

.contact-item--plain h3 {
    font-size: 1.5rem !important;
    color: var(--blanco-roto) !important;
}

.contact-item--plain p,
.contact-item--plain a {
    font-size: 1.2rem !important;
    color: var(--blanco-roto) !important;
}

.contact-form-container--plain {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.contact-form-container--plain h3 {
    font-size: 1.5rem !important;
    color: var(--blanco-roto) !important;
}

.contact-form-container--plain .form-control {
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .providers-cards-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
    .contacto--cards .contact-cards-wrap {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .services-grid--2x2,
    .projects-grid--2x2 {
        grid-template-columns: 1fr;
    }
    .providers-grid--2x1,
    .providers-cards-wrap {
        grid-template-columns: 1fr;
    }
    .materials-cards-wrap {
        grid-template-columns: 1fr;
    }
    .service-card--clean,
    .project-card--like-service {
        flex-direction: column;
    }
    .service-card--clean .service-image-wrapper,
    .project-card--like-service .project-image-wrapper {
        flex: none;
        min-height: 260px;
    }
    .contacto--plain .contact-grid--plain,
    .contacto--cards .contact-cards-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.25rem;
        margin-top: 2rem;
        padding: 0 1rem;
        max-width: 100%;
    }

    .contacto--cards .contact-cards-wrap .contact-card:nth-child(1),
    .contacto--cards .contact-cards-wrap .contact-card:nth-child(2),
    .contacto--cards .contact-cards-wrap .contact-card:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
    }

    .contacto-section.contacto--cards {
        padding: 2rem 0 3rem;
    }

    .contacto-section.contacto--cards .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        max-width: 100%;
    }

    .contact-card {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
        background: rgba(0, 52, 66, 0.85);
        border: 1px solid rgba(247, 247, 247, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    }

    .contact-card h3 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem;
        color: var(--blanco-roto);
        -webkit-text-fill-color: var(--blanco-roto);
        background: none;
        background-clip: unset;
    }

    .contact-card p {
        margin-bottom: 0.25rem;
    }

    .contact-card p,
    .contact-card a {
        font-size: 1.15rem !important;
        line-height: 1.55;
        word-break: break-word;
        overflow-wrap: break-word;
        color: var(--blanco-roto);
    }

    .contact-card a {
        display: inline-block;
        padding: 0.35rem 0;
        text-decoration: underline;
        text-underline-offset: 3px;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    }

    .contact-card-note {
        font-size: 0.95rem !important;
        opacity: 0.95;
        margin-top: 0.35rem;
    }

    .contact-card--form {
        height: auto;
        min-height: 0;
    }

    .contact-card--form h3 {
        font-size: 1.5rem !important;
        -webkit-text-fill-color: var(--blanco-roto);
        background: none;
    }

    .contact-card--form .form-group:has(textarea) .form-control {
        min-height: 100px;
    }

    .contact-card--form .form-control {
        font-size: 1rem;
        padding: 0.85rem 1rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(247, 247, 247, 0.2);
        color: var(--blanco-roto);
    }

    .contact-card--form .form-control::placeholder {
        color: rgba(247, 247, 247, 0.6);
    }

    .contact-card--form .btn-primary,
    .contact-card--form button[type="submit"] {
        font-size: 1.1rem;
        padding: 0.9rem 1.5rem;
    }
}

.client-name {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Calculadora Mejorada */
.calculator {
    background: transparent;
    position: relative;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-form {
    background: linear-gradient(135deg, var(--blanco-roto) 0%, rgba(0, 119, 182, 0.06) 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    border: 2px solid rgba(0, 119, 182, 0.25);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(0, 119, 182, 0.25);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: rgba(247, 247, 247, 0.9);
    backdrop-filter: blur(5px);
}

.form-control:focus {
    outline: none;
    border-color: var(--azul-tecnico);
    background: rgba(247, 247, 247, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2);
}

.calculator-result {
    background: var(--gradient-accent);
    color: var(--blanco-roto);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    position: sticky;
    top: 100px;
    border: 2px solid rgba(247, 247, 247, 0.2);
}

.calculator-result h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 700;
}

.result-content {
    background: rgba(247, 247, 247, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    min-height: 300px;
}

.result-placeholder {
    opacity: 0.9;
    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
}

.result-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(247, 247, 247, 0.25);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.result-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.result-total {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 3px solid rgba(247, 247, 247, 0.4);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

/* Contacto Mejorado */
.contact {
    background: linear-gradient(135deg, rgba(0, 77, 102, 0.95) 0%, rgba(0, 116, 153, 0.3) 100%);
    backdrop-filter: blur(10px);
    color: var(--blanco-roto);
    position: relative;
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--blanco-roto);
}

.contact .section-badge {
    background: linear-gradient(135deg, var(--azul-claro) 0%, var(--violeta) 50%, var(--dorado) 100%);
    color: var(--blanco-roto);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: rgba(0, 77, 102, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(247, 247, 247, 0.2);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0, 116, 153, 0.4);
    transform: translateX(10px);
    border-color: rgba(153, 114, 0, 0.5);
    box-shadow: var(--card-shadow-hover);
}

.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

/* 1️⃣1️⃣ Contacto */
.contact-item h3,
.contact-form-container h3 {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Vollkorn', Georgia, serif;
    color: var(--blanco-roto);
    margin-bottom: 10px;
}

.contact-form-container h3 {
    margin-bottom: 25px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-form-container {
    background: rgba(0, 77, 102, 0.6);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(247, 247, 247, 0.2);
    box-shadow: var(--card-shadow);
}

.contact-form .form-control,
.form-control {
    font-size: 0.9rem;
    background: rgba(247, 247, 247, 0.95);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(247, 247, 247, 0.3);
    color: var(--negro-carbon);
}

.contact-form .form-control::placeholder {
    color: var(--gris-hormigon);
}

.contact-form .form-control:focus {
    border-color: var(--dorado);
    background: var(--blanco-roto);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 0 3px rgba(153, 114, 0, 0.25);
}

/* Materiales */
.materials {
    background: transparent;
    position: relative;
    padding: 55px 20px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.material-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    border: var(--card-border) !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px;
}

/* Verde solo para destacar sostenibilidad/valores */
.material-card.featured {
    border: 3px solid var(--verde-acento);
    background: var(--green-bg);
    box-shadow: 0 5px 20px rgba(106, 153, 78, 0.2);
}

.material-card.featured::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--verde-acento), var(--green-light));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.15;
}

.material-card:hover {
    transform: translateY(-10px);
    border: var(--card-border-hover) !important;
    box-shadow: var(--card-shadow-hover);
}

.material-card.featured:hover {
    border: 3px solid var(--verde-acento) !important;
    box-shadow: 0 12px 36px rgba(28, 28, 28, 0.1), 0 5px 24px rgba(106, 153, 78, 0.15);
}

.material-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

/* 9️⃣ Materiales */
.material-card h3 {
    font-family: 'Vollkorn', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--negro-carbon);
    margin-bottom: 15px;
}

.material-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--negro-carbon);
}

.material-card .highlight-text {
    color: var(--verde-acento);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    margin-top: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Sección Sobre Nosotros */
.about {
    background: transparent;
    padding: 55px 20px;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh;
}

.about-text {
    max-width: 100%;
    text-align: left;
}

.about-text .section-title {
    text-align: center;
}

/* Technical Insulation SL: fade hacia dorado */
.section-title-gold {
    background: linear-gradient(135deg, var(--blanco-roto) 0%, var(--dorado) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Títulos de características (Quiénes Somos): fade a dorado */
.feature-title-gold {
    background: linear-gradient(135deg, var(--blanco-roto) 0%, var(--dorado) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Nueva sección: descripción y características (sin ticks) */
.about-detail {
    background: transparent;
    padding: 55px 20px;
}

.about-detail-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-detail .about-description {
    text-align: center;
    margin: 0 auto 3rem;
}

.about-detail .about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
    justify-items: center;
}

.about-detail .about-feature {
    display: block;
    max-width: 320px;
}

.about-detail .about-feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blanco-roto);
    margin-bottom: 0.35rem;
}

.about-detail .about-feature p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-light);
    opacity: 0.9;
}

/* Quiénes Somos: una sección, todo grande */
.about-detail--full .about-detail-content {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.about-detail--full .about-description {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.6;
    color: var(--blanco-roto);
    margin-bottom: 3.5rem;
    max-width: 100%;
}

.about-detail--full .about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3rem;
    text-align: center;
    justify-items: center;
}

.about-detail--full .about-feature {
    max-width: 380px;
}

.about-detail--full .about-feature h4 {
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    font-weight: 600;
    color: var(--blanco-roto);
    margin-bottom: 0.5rem;
}

.about-detail--full .about-feature p {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.95;
}

@media (max-width: 768px) {
    .about-detail--full .about-features {
        grid-template-columns: 1fr;
    }
}

/* Ocultar ticks (feature-icon) en toda la página */
.feature-icon {
    display: none !important;
}

/* 5️⃣ Texto principal (About, descripciones) */
.about-description,
.section-subtitle,
.project-description {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 620px;
}

.about-description,
.about-features {
    text-align: left;
}

.about-description {
    color: var(--text-light);
    margin-bottom: 40px;
}

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

.about-feature {
    display: flex;
    gap: 20px;
    align-items: center;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    color: var(--blanco-roto);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* 6️⃣ Bloque About (features) */
.about-feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.about-feature p {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.85;
    color: var(--text-light);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-card {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    border: var(--card-border);
    border-width: 3px;
}

.about-stat {
    padding: 20px;
}

.stat-number-large {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blanco-roto) 0%, var(--dorado) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label-large {
    color: var(--blanco-roto);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Botón Ver Más en Proyectos */
.project-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 30px;
    background: var(--gradient-accent);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.project-card:hover .project-view-btn {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-10px);
}

.project-view-btn:hover {
    transform: translate(-50%, -50%) translateY(-10px) scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 119, 182, 0.4);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 119, 182, 0.35);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 119, 182, 0.5);
}

/* Footer Mejorado */
.footer {
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-claro) 100%);
    color: var(--blanco-roto);
    padding: 60px 20px 30px;
    position: relative;
    border-top: 3px solid var(--dorado);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Vollkorn', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--blanco-roto) 0%, var(--dorado) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--blanco-roto);
}

.footer-section p {
    color: rgba(247, 247, 247, 0.85);
    line-height: 1.8;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(247, 247, 247, 0.1);
    border: 2px solid rgba(0, 119, 182, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-accent);
    border-color: var(--azul-tecnico);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 119, 182, 0.35);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(247, 247, 247, 0.85);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--dorado-claro);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(247, 247, 247, 0.15);
    color: rgba(247, 247, 247, 0.75);
}

.footer-developer {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(247, 247, 247, 0.1);
}

.footer-developer p {
    font-size: 0.85rem;
    color: rgba(247, 247, 247, 0.6);
    margin: 0;
}

.footer-developer a {
    color: rgba(247, 247, 247, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-developer a:hover {
    color: var(--dorado-claro);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(247, 247, 247, 0.3), transparent);
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer p:first-child {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .calculator-container,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-result {
        position: relative;
        top: 0;
    }
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(135deg, var(--negro-carbon) 0%, var(--secondary-color) 100%);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-strong);
        padding: 100px 0;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: clamp(3rem, 14vw, 6rem);
    }

    .service-content h3,
    .project-info h3 {
        font-size: 1.15rem;
    }

    body {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

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

    section {
        padding: 40px 20px;
    }

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

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

    .about-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2rem;
    }

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

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

    .section-title {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-card {
        padding: 30px 20px;
    }

    .stat-number-large {
        font-size: 2.5rem;
    }

    /* Proveedores en móvil */
    .providers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .provider-card {
        padding: 25px 20px;
    }

    .provider-card h3 {
        font-size: 1.3rem;
    }

    .provider-card p {
        font-size: 0.95rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========== Animaciones estilo IN56: reveal suave al scroll ========== */
[data-animate] {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate].animated {
    opacity: 1;
}

/* Reveal: sube suavemente (estilo IN56) */
[data-animate="reveal"],
[data-animate="fade-up"] {
    transform: translateY(36px);
}
[data-animate="reveal"].animated,
[data-animate="fade-up"].animated {
    transform: translateY(0);
}

/* Reveal desde la izquierda */
[data-animate="reveal-left"] {
    transform: translateX(-48px);
}
[data-animate="reveal-left"].animated {
    transform: translateX(0);
}

/* Reveal desde la derecha */
[data-animate="reveal-right"] {
    transform: translateX(48px);
}
[data-animate="reveal-right"].animated {
    transform: translateX(0);
}

/* Respetar preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1;
        transform: none !important;
        transition: none;
    }
    [data-animate].animated {
        transform: none !important;
    }
}

/* ========== Scroll reveal: texto e imágenes (desde atrás, estilo Awwwards/Apple) ========== */
.scroll-reveal .reveal-item {
    opacity: 0;
    transform: translateX(80px) scale(0.96);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Móvil: animaciones más ligeras (solo opacidad, transiciones cortas) */
@media (max-width: 768px) {
    .scroll-reveal .reveal-item {
        transform: none;
        transition: opacity 0.35s ease;
    }
    .scroll-reveal.in-view .reveal-item {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========== Movimiento horizontal (sin scroll vertical en desktop) ========== */
.horizontal-page {
    position: relative;
    height: 100vh; /* en desktop no hay scroll: rueda/touch controlan progress */
}

.horizontal-track {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: row;
    will-change: transform;
    transition: transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.horizontal-track > section {
    min-width: 100vw;
    height: 100vh;
    padding: 6rem 5rem 3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Contenido centrado dentro del viewport */
.horizontal-track > section .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Secciones de una sola card: contenido centrado y tamaño controlado */
.horizontal-track > section.card-section .container.container--single {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 560px;
}

.card-section .service-card,
.card-section .project-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.card-section .material-card,
.card-section .provider-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.card-section .about-feature {
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.card-section .about-feature h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-section .about-feature p {
    font-size: 1rem;
    line-height: 1.6;
}

.card-section .about-detail-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.card-section .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .main-content-wrapper {
        overflow: visible;
        min-height: auto;
    }

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

    body.horizontal-scroll-only {
        overflow-y: auto;
        height: auto;
        position: static;
    }

    body {
        overflow-y: auto;
        min-height: 100vh;
    }

    .horizontal-page {
        height: auto;
        min-height: 0;
    }

    .horizontal-track {
        position: static;
        flex-direction: column;
        transform: none !important;
        height: auto;
        will-change: auto;
        transition: none;
    }

    .horizontal-track > section {
        min-width: 100%;
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .horizontal-track > section .container {
        margin-top: 0;
    }

    /* Menos efectos costosos en móvil */
    .contact-card,
    .provider-card--floating {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .service-card,
    .project-card,
    .material-card {
        transition-duration: 0.2s;
    }

    .btn-primary::before,
    .contact-card--form .btn-primary::before,
    .contact-card--form button[type="submit"]::before {
        animation: none;
    }
}

/* Crédito desarrollador: abajo a la derecha, muy pequeño */
.dev-credit {
    position: fixed;
    bottom: 0.5rem;
    right: 0.5rem;
    z-index: 100;
    font-size: 0.7rem;
    line-height: 1.3;
    color: rgba(247, 247, 247, 0.6);
}

.dev-credit a {
    color: rgba(247, 247, 247, 0.85);
    text-decoration: none;
}

.dev-credit a:hover {
    color: var(--blanco-roto);
    text-decoration: underline;
}
