/* ========================================
   IMPORTACIÓN DE FUENTES
   Inter — tipografía única, limpia y profesional
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================
   VARIABLES DE DISEÑO
   Paleta minimalista con colores neutros y toques dorados
   ======================================== */
:root {
    /* Colores principales - tonos neutros y elegantes */
    --primary: #1a1a1a;           /* Negro suave para textos */
    --secondary: #4a4a4a;         /* Gris oscuro para textos secundarios */
    --accent: #dfb054;            /* Dorado elegante para acentos */
    --accent-hover: #c4993a;      /* Dorado más oscuro para hover */
    --gold: #dfb054;              /* Variable específica para dorado */
    --gold-light: #f0e68c;        /* Dorado claro para gradientes */

    /* Colores de fondo */
    --bg-light: #fafafa;          /* Fondo gris muy claro */
    --bg-white: #ffffff;          /* Blanco puro */

    /* Colores de texto */
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;

    /* Sombras neutras y elegantes */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.11), 0 4px 12px rgba(0, 0, 0, 0.06);

    /* Espaciado consistente */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* ========================================
   RESET Y ESTILOS BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: #f8f8f6;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ========================================
   SCROLLBAR PERSONALIZADA
   Barra de scroll fina y elegante
   ======================================== */
/* Para navegadores Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-light);
}

/* ========================================
   HEADER Y NAVEGACIÓN
   Header fijo con fondo translúcido y blur
   ======================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: border-color 0.3s ease;
}

/* Navegación principal */
nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo minimalista */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration:none;
}

.logo-image {
    height: 4rem;
    width: auto;
    object-fit: contain;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--gold);
    font-weight: 600;
}

/* Enlaces de navegación */
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

/* Efecto hover sutil en enlaces */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}


/* ========================================
   BOTONES CTA
   Diseño elegante con gradientes dorados
   ======================================== */
.cta-button {
    background: var(--gold);
    color: var(--text-primary);
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gold);
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(223, 176, 84, 0.2);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    background: var(--accent-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(223, 176, 84, 0.3);
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* ========================================
   SECCIÓN HERO CON CAROUSEL
   Carousel de imágenes con animaciones 3D suaves y toques dorados
   ======================================== */
.hero-section {
    margin-top: 68px;
    height: 85vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    perspective: 1200px; /* Perspectiva 3D */
}


/* Contenedor del carousel */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

/* Slides individuales del carousel con animaciones 3D suaves */
.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1); /* Animación suave y calmada */
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Slide activo - visible y centrado */
.carousel-slide.active {
    opacity: 1;
    transform: translateZ(0) rotateY(0deg) scale(1);
    z-index: 2;
}

/* Slide anterior - sale por la izquierda con rotación 3D */
.carousel-slide.prev {
    opacity: 0;
    transform: translateX(-30%) translateZ(-100px) rotateY(8deg) scale(0.95);
    z-index: 1;
}

/* Slide siguiente - espera por la derecha con rotación 3D */
.carousel-slide.next {
    opacity: 0;
    transform: translateX(30%) translateZ(-100px) rotateY(-8deg) scale(0.95);
    z-index: 1;
}

/* Imágenes del carousel */
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Contenido de texto sobre las imágenes */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 15;
    max-width: 900px;
    padding: var(--spacing-md);
    width: 90%;
}

.slide-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.95;
}

/* Animación del contenido al cambiar de slide */
.carousel-slide.active .slide-content h1 {
    animation: heroContentIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.carousel-slide.active .slide-content p {
    animation: heroContentIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.carousel-slide.active .slide-content .cta-button {
    animation: heroContentIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

@keyframes heroContentIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Controles de navegación del carousel (puntos) */
.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 100;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.95);
    width: 24px;
    border-radius: 4px;
    border-color: transparent;
}

/* Flechas de navegación del carousel */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.85);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.1);
    color: white;
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
    transition: all 0.1s ease;
}

.carousel-arrow.prev {
    left: 30px;
}

.carousel-arrow.next {
    right: 30px;
}

/* ========================================
   SECCIÓN CONÓCENOS
   Misión y Visión de la empresa
   ======================================== */
.conocenos-section {
    background: #f8f8f6;
    padding: var(--spacing-xl) var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.conocenos-container {
    max-width: 1100px;
    margin: 0 auto;
}

.conocenos-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.conocenos-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
}

.conocenos-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blueprint-frame {
    position: relative;
    background: #f0f4f8;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}

.blueprint-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.blueprint-label {
    position: absolute;
    top: 0.75rem;
    left: 1.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-secondary);
    opacity: 0.6;
}

.blueprint-svg {
    width: 100%;
    color: var(--text-primary);
    opacity: 0.55;
    transition: opacity 0.5s ease;
}

.blueprint-frame:hover .blueprint-svg {
    opacity: 0.75;
}

/* Blueprint draw-in animation */
@keyframes blueprintDraw {
    from {
        stroke-dashoffset: 1600;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes blueprintFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.blueprint-svg .bp-walls {
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
}

.blueprint-svg .bp-dividers line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

.blueprint-svg .bp-labels,
.blueprint-svg .bp-annotations,
.blueprint-svg .bp-dimensions,
.blueprint-svg .bp-furniture,
.blueprint-svg .bp-doors {
    opacity: 0;
}

/* Animations trigger when section is visible */
.conocenos-section.visible .bp-walls {
    animation: blueprintDraw 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.conocenos-section.visible .bp-dividers line {
    animation: blueprintDraw 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

.conocenos-section.visible .bp-windows line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: blueprintDraw 0.6s ease 1.4s forwards;
}

.conocenos-section.visible .bp-doors {
    animation: blueprintFadeIn 0.8s ease 1.6s forwards;
}

.conocenos-section.visible .bp-furniture {
    animation: blueprintFadeIn 0.8s ease 1.8s forwards;
}

.conocenos-section.visible .bp-labels {
    animation: blueprintFadeIn 0.6s ease 2.2s forwards;
}

.conocenos-section.visible .bp-annotations {
    animation: blueprintFadeIn 0.6s ease 2.5s forwards;
}

.conocenos-section.visible .bp-dimensions {
    animation: blueprintFadeIn 0.6s ease 2.0s forwards;
}

.conocenos-content {
    display: flex;
    flex-direction: column;
}

.conocenos-block {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    transition: background 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.conocenos-block:hover {
    background: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.conocenos-block:hover .conocenos-icon {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.conocenos-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06), transparent);
}

.conocenos-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--text-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    margin-top: 2px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.conocenos-text h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    transition: transform 0.4s ease;
}

.conocenos-block:hover .conocenos-text h3 {
    transform: translateX(4px);
}

.conocenos-text p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.8;
}

/* ========================================
   SECCIÓN DE SERVICIOS
   Grid de tarjetas con servicios ofrecidos
   ======================================== */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    background: transparent;
    margin-bottom: var(--spacing-xl);
}

/* Títulos de sección */
.section-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1.1;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    margin: 0.85rem auto 0;
}

/* Subtítulos descriptivos */
.section-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.7;
}

/* Grid responsive de servicios */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

/* Tarjetas individuales de servicios */
.feature-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--text-primary);
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::before {
    width: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #d1d5db;
}

/* Iconos de servicios */
.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--text-primary);
    color: var(--bg-white);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========================================
   GALERÍA DE PROYECTOS
   Muestra antes/durante/después de proyectos con diseño elegante
   ======================================== */
.projects-section {
    background: #f8f8f6;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}


.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Elementos individuales de proyecto */
.project-item {
    margin-bottom: var(--spacing-xl);
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.3);
}

.project-item:hover::before {
    opacity: 1;
}

/* Encabezado de cada proyecto */
.project-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.project-header h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

/* Etiqueta de tipo de proyecto */
.project-type {
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* Grid de imágenes antes/durante/después */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Contenedor de cada imagen */
.project-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
}

/* Overlay oscuro en hover */
.project-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

/* Ícono de zoom centrado */
.project-image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") no-repeat center center;
    border-radius: 50%;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.project-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.12);
}

.project-image-wrapper:hover::before {
    background: rgba(0, 0, 0, 0.22);
}

.project-image-wrapper:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Imagen del proyecto */
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image-wrapper:hover .project-image {
    transform: scale(1.04);
}

/* Etiquetas de estado (Antes/Durante/Después) */
.project-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.7rem;
    z-index: 2;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Descripción del proyecto */
.project-description {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--text-secondary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 400;
}

/* Botón de detalles del proyecto */
.project-details-button {
    display: inline-block;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.875rem 2.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--gold);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.project-details-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.project-details-button:hover::after {
    width: 300px;
    height: 300px;
}

.project-details-button:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.project-details-button:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* ========================================
   SECCIÓN DE ESTADÍSTICAS
   Muestra métricas clave del negocio
   ======================================== */
.stats-section {
    background: var(--text-primary);
    color: var(--bg-white);
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
}

/* Contenedor de estadísticas */
.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

/* Elementos individuales de estadística */
.stat-item {
    text-align: center;
}

@media (min-width: 800px) {
    .stat-item:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 1.5rem;
    }
    .stat-item:not(:first-child) {
        padding-left: 1.5rem;
    }
}

/* Números de las estadísticas */
.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    color: var(--gold);
}

/* Etiquetas descriptivas de las estadísticas */
.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ========================================
   SECCIÓN FASES DE PROYECTO
   Proceso de trabajo en 4 pasos con toques dorados
   ======================================== */
.phases-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    overflow: hidden;
}


.phases-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.phases-title {
    color: var(--bg-white);
}

.phases-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

.phases-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: var(--spacing-lg);
    text-align: left;
    position: relative;
}

/* Línea vertical de progreso */
.phases-grid::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 2.5rem;
    bottom: 2.5rem;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
    opacity: 0.6;
}

.phase-item {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.phase-item.phase-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Punto en la línea de progreso */
.phase-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 3.2rem;
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
    z-index: 1;
}

.phase-item:hover::before {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.phase-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.phase-item:hover .phase-number {
    color: var(--gold);
    transform: translateX(-4px);
}

.phase-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.13);
    line-height: 1;
    flex-shrink: 0;
    min-width: 120px;
    transition: color 0.4s ease, transform 0.4s ease;
}

.phase-content {
    padding-top: 0.3rem;
}

.phase-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.phase-item:hover .phase-content h3 {
    transform: translateX(4px);
}

.phase-content p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 650px;
    transition: color 0.4s ease;
}

.phase-item:hover .phase-content p {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   SECCIÓN DE CONTACTO
   Diseño profesional y corporativo
   ======================================== */
.contact-section {
    background: var(--text-primary);
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.contact-header {
    margin-bottom: 3rem;
}

.contact-label {
    display: inline-block;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.contact-section .section-title {
    color: var(--bg-white);
    margin-bottom: 1rem;
    position: relative;
}

.contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

/* Grid de información de contacto */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

/* Elementos individuales de contacto */
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Iconos de contacto */
.contact-icon {
    margin-bottom: 0.75rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--bg-white);
}

.contact-item strong {
    color: var(--bg-white);
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-item a,
.contact-item span {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.contact-item a:hover {
    color: var(--bg-white);
}

.contact-detail {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.8rem !important;
    margin-top: 0.25rem;
}

/* Botones CTA de contacto */
.contact-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button-primary {
    background: var(--bg-white) !important;
    color: var(--text-primary) !important;
    border-color: var(--bg-white) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
}

.cta-button-primary:hover {
    background: transparent !important;
    color: var(--bg-white) !important;
    border-color: var(--bg-white) !important;
}

.cta-button-secondary {
    background: transparent !important;
    color: var(--bg-white) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
}

.cta-button-secondary:hover {
    background: var(--bg-white) !important;
    color: var(--text-primary) !important;
    border-color: var(--bg-white) !important;
}

/* Botón WhatsApp */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

/* Variante pequeña para footer */
.footer-contact-links .whatsapp-button {
    width: 32px;
    height: 32px;
    background: #25D366;
    opacity: 1;
    color: #fff;
}

.footer-contact-links .whatsapp-button svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   PÁGINAS DE PROYECTO
   Estilos para las páginas individuales de proyecto
   ======================================== */

/* Hero del proyecto */
.project-hero {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    margin-top: 68px;
    overflow: hidden;
    background: var(--text-primary);
}

.project-hero-image {
    position: absolute;
    inset: 0;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.project-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 4rem;
}

.project-back-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.project-back-link:hover {
    color: white;
}

.project-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-hero-content p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.project-hero-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.project-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

.project-meta-item svg {
    opacity: 0.7;
}

.project-hero-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    background: var(--bg-white) !important;
    color: var(--text-primary) !important;
    border-color: var(--bg-white) !important;
}

.project-hero-cta:hover {
    background: transparent !important;
    color: white !important;
    border-color: white !important;
}

/* Galería del proyecto */
.project-gallery-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-white);
}

.project-gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: var(--spacing-lg);
}

.project-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: white;
    padding: 2rem 1rem 0.75rem;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Descripción detallada del proyecto */
.project-detail-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-light);
}

.project-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.project-detail-label {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.project-detail-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

.project-detail-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.project-detail-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-detail-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-primary);
}

/* Stats del proyecto */
.project-detail-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-stat-card {
    background: var(--bg-white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.project-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.project-stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1;
}

.project-stat-unit {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

.project-stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* CTA de contacto del proyecto */
.project-cta-section {
    background: var(--text-primary);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.project-cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.project-cta-container h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--bg-white);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.project-cta-container p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.project-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   FOOTER
   Pie de página con navegación completa
   ======================================== */
footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, #2a2a2a 100%);
    color: var(--bg-white);
    padding: 4rem var(--spacing-md) 0;
    border-top: 2px solid var(--gold);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.footer-logo .logo {
    font-size: 1.2rem;
    color: var(--bg-white);
}

.footer-logo .logo span {
    color: var(--gold);
}

.footer-about {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.6;
    max-width: 280px;
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links li a,
.footer-links li span {
    color: var(--bg-white);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.footer-links li a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-contact-links li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-links li svg {
    opacity: 0.55;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
}

.footer-bottom p {
    opacity: 0.4;
    font-size: 0.8rem;
    font-weight: 400;
}

/* ========================================
   MENÚ HAMBURGUESA (oculto en desktop)
   ======================================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay oscuro */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Panel del menú móvil */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-white);
    z-index: 1200;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    transition: color 0.2s ease;
}

.mobile-menu-close:hover {
    color: var(--text-primary);
}

.mobile-nav-links {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}

.mobile-nav-links > li {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-links > li > a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.mobile-nav-links > li > a:hover {
    background: var(--bg-light);
}


.mobile-menu-cta {
    margin: 1rem 1.5rem 2rem;
    text-align: center;
}

/* ========================================
   BOTONES DE CONTACTO FIJOS (LATERAL IZQUIERDO)
   ======================================== */
.fixed-contact {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    z-index: 900;
}

.fixed-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.fixed-contact-btn:hover {
    transform: scale(1.12);
}

/* WhatsApp */
.fixed-whatsapp {
    background: #25D366;
    color: #fff;
}
.fixed-whatsapp:hover {
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
}

/* Teléfono */
.fixed-phone {
    background: var(--gold);
    color: var(--text-primary);
}
.fixed-phone:hover {
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
}

/* Email */
.fixed-email {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid #e5e7eb;
}
.fixed-email:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

/* ========================================
   BOTÓN VOLVER ARRIBA
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--bg-white);
    color: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.scroll-top:active {
    transform: translateY(0) scale(0.95);
}

/* ========================================
   ANIMACIONES
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   MODAL / LIGHTBOX PARA IMÁGENES
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
    animation: modalFadeIn 0.28s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Imagen ampliada */
#modalImage {
    max-width: min(90vw, 1100px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.08);
    animation: modalZoomIn 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    display: block;
}

@keyframes modalZoomIn {
    from { transform: scale(0.88); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Caption label (Antes / Durante / Después) — desktop */
.modal-caption {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.45rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

/* Caption en desktop: posición absoluta en la parte inferior */
@media (hover: hover) {
    .modal-caption {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Botón de cierre */
.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.08) rotate(90deg);
}

/* Controles de zoom (solo desktop) */
.modal-zoom-controls {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 0.3rem 0.75rem;
    z-index: 10001;
}

.modal-zoom-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.modal-zoom-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.modal-zoom-level {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 36px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Flechas de navegación — desktop: absolutas a los lados */
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
    z-index: 10001;
    font-size: 1.4rem;
}

.modal-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.modal-arrow.prev { left: 1.5rem; }
.modal-arrow.next { right: 1.5rem; }

/* Barra inferior mobile: oculta en desktop */
.modal-bottom-bar {
    display: none;
}

/* Imagen: permite zoom con transform sin afectar al layout */
#modalImage {
    transition: transform 0.2s ease;
    transform-origin: center center;
}

/* ---- MOBILE ---- */
@media (max-width: 640px) {
    /* Flechas desktop: ocultar */
    .modal-arrow {
        display: none;
    }

    /* Controles de zoom: ocultar en mobile (se usa pinch) */
    .modal-zoom-controls {
        display: none;
    }

    /* Imagen */
    #modalImage {
        max-width: 96vw;
        max-height: 72vh;
        touch-action: none; /* necesario para pinch-to-zoom manual */
    }

    /* Barra inferior: prev — caption — next */
    .modal-bottom-bar {
        position: absolute;
        bottom: 1.5rem;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .modal-nav-btn {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.9);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        transition: background 0.2s ease;
    }

    .modal-nav-btn:active {
        background: rgba(255, 255, 255, 0.25);
    }

    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
    }
}

/* modal-nav-btn oculto en desktop */
@media (min-width: 641px) {
    .modal-nav-btn {
        display: none;
    }
}

/* ========================================
   PLACEHOLDER "EN PROGRESO"
   Para imágenes aún no disponibles
   ======================================== */
.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(145deg, #f8f7f5 0%, #edebe6 100%);
    color: #9ca3af;
    user-select: none;
}

.img-placeholder-icon {
    width: 36px;
    height: 36px;
    opacity: 0.35;
    color: #6b7280;
}

.img-placeholder-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.18);
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
}

.img-placeholder-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: placeholderPulse 2s ease-in-out infinite;
}

.img-placeholder-text {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
}

.img-placeholder-sub {
    font-size: 0.68rem;
    color: #b0b7c0;
}

@keyframes placeholderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ========================================
   MOBILE: SCROLL-ACTIVATED EFFECTS
   Reemplaza hover en dispositivos táctiles
   ======================================== */
@media (hover: none) {
    /* --- Feature Cards (Servicios) --- */
    .feature-card:hover {
        transform: none;
        box-shadow: none;
        border-color: #e5e7eb;
    }
    .feature-card:hover .feature-icon {
        background: var(--bg-light);
        color: var(--text-primary);
    }
    .feature-card {
        transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    box-shadow 0.8s ease,
                    border-color 0.8s ease;
    }
    .feature-card.scroll-active {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--accent);
    }
    .feature-card.scroll-active .feature-icon {
        background: var(--text-primary);
        color: var(--bg-white);
        transition: all 0.8s ease 0.15s;
    }

    /* --- Phase Items (Fases) --- */
    .phase-item:hover {
        background: transparent;
    }
    .phase-item:hover::before {
        background: transparent;
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: none;
    }
    .phase-item:hover .phase-number {
        color: rgba(255, 255, 255, 0.08);
        transform: none;
    }
    .phase-item:hover .phase-content h3 {
        transform: none;
    }
    .phase-item:hover .phase-content p {
        color: rgba(255, 255, 255, 0.4);
    }
    .phase-item.scroll-active {
        background: rgba(255, 255, 255, 0.03);
        transition: background 1s ease;
    }
    .phase-item.scroll-active .phase-number {
        color: rgba(255, 255, 255, 0.5);
        transition: color 1s ease;
    }
    .phase-item.scroll-active .phase-content p {
        color: rgba(255, 255, 255, 0.7);
        transition: color 0.8s ease 0.3s;
    }

    /* --- Conocenos Blocks (Misión/Visión) --- */
    .conocenos-block:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
    }
    .conocenos-block:hover .conocenos-icon {
        transform: none;
        box-shadow: none;
    }
    .conocenos-block:hover .conocenos-text h3 {
        transform: none;
    }
    .conocenos-block {
        transition: background 0.8s ease,
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    box-shadow 0.8s ease;
    }
    .conocenos-block.scroll-active {
        background: var(--bg-white);
        transform: translateY(-3px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }
    .conocenos-block.scroll-active .conocenos-icon {
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s,
                    box-shadow 0.8s ease 0.2s;
    }
    .conocenos-block.scroll-active .conocenos-text h3 {
        transform: translateX(4px);
        transition: transform 0.8s ease 0.15s;
    }

    /* --- Blueprint Frame (Conócenos) --- */
    .blueprint-frame:hover {
        transform: none;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    }
    .blueprint-frame:hover .blueprint-svg {
        opacity: 0.55;
    }
    .blueprint-frame.scroll-active {
        transform: translateY(-4px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    .blueprint-frame.scroll-active .blueprint-svg {
        opacity: 0.75;
        transition: opacity 1s ease;
    }
}

/* ========================================
   RESPONSIVE DESIGN - TABLETS
   Adaptaciones para pantallas medianas
   ======================================== */
@media (max-width: 992px) {
    /* Espaciado reducido para tablets */
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }

    /* Hero más compacto */
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }

    /* Navegación oculta en tablets pequeñas */
    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    /* Grid de proyectos a 2 columnas */
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stats a 2 columnas */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Proyecto - galería a 2 columnas */
    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16/9;
    }

    .project-detail-container {
        gap: 3rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MÓVILES
   Adaptaciones completas para smartphones
   ======================================== */
@media (max-width: 768px) {
    .fixed-contact {
        display: none;
    }

    /* Espaciado aún más reducido para móviles */
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
        --spacing-md: 1.5rem;
    }

    /* Header más compacto en móvil */
    nav {
        padding: 1rem 1.5rem;
    }

    /* Logo más pequeño */
    .logo {
        font-size: 1.3rem;
    }

    /* Ocultar navegación desktop en móvil */
    .nav-links,
    .nav-cta-desktop {
        display: none !important;
    }

    /* Mostrar botón hamburguesa */
    .hamburger {
        display: flex;
    }

    /* Hero section ajustado para móvil */
    .hero-section {
        height: 70vh;
        min-height: 450px;
        margin-top: 60px;
    }

    /* Contenido del hero responsive */
    .slide-content {
        padding: var(--spacing-sm);
    }

    .slide-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .slide-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    /* Ocultar flechas del carousel en móvil */
    .carousel-arrow {
        display: none;
    }

    /* Dots del carousel más pequeños */
    .carousel-controls {
        bottom: 20px;
        gap: 0.5rem;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
    }

    .carousel-dot.active {
        width: 18px;
    }

    /* Secciones con padding reducido */
    .about-section,
    .projects-section,
    .contact-section,
    .phases-section,
    .conocenos-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    /* Conócenos responsive */
    .conocenos-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .conocenos-visual {
        order: -1;
    }

    .blueprint-frame {
        max-width: 260px;
        padding: 1.5rem 1rem 1rem;
    }

    .blueprint-label {
        font-size: 0.55rem;
        letter-spacing: 2px;
        left: 1rem;
        top: 0.5rem;
    }

    .blueprint-svg {
        opacity: 0.45;
    }

    .conocenos-block {
        gap: 1.25rem;
        padding: 1.5rem 1.25rem;
        margin-bottom: 1rem;
    }

    .conocenos-divider {
        margin-bottom: 0.5rem;
    }

    .conocenos-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 10px;
    }

    .conocenos-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Fases responsive */
    .phases-grid::before {
        display: none;
    }

    .phase-item::before {
        display: none;
    }

    .phase-item {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.75rem 1.25rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .phase-item:last-child {
        border-bottom: none;
    }

    .phase-number {
        min-width: auto;
        font-size: 2.5rem;
    }

    .phase-item:hover .phase-number {
        transform: none;
    }

    .phase-item:hover .phase-content h3 {
        transform: none;
    }

    /* Grid de servicios a 1 columna */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Tarjetas de servicios más compactas */
    .feature-card {
        padding: 2rem 1.5rem;
    }

    /* Gallery de proyectos a 1 columna */
    .project-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Proyectos con menos margen */
    .project-item {
        margin-bottom: var(--spacing-lg);
    }

    .project-header {
        margin-bottom: 2rem;
    }

    /* Stats a 2 columnas en móvil */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Sección de stats más compacta */
    .stats-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    /* Info de contacto en columna */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .contact-cta {
        flex-direction: column;
        align-items: center;
    }

    /* Footer responsive */
    footer {
        padding: 3rem var(--spacing-sm) 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-about {
        max-width: 100%;
    }

    /* Proyecto hero responsive */
    .project-hero {
        height: 70vh;
        min-height: 400px;
        margin-top: 60px;
    }

    .project-hero-content {
        padding: 1.5rem;
        padding-bottom: 3rem;
    }

    .project-back-link {
        top: 1.5rem;
        left: 1.5rem;
    }

    .project-hero-meta {
        gap: 1rem;
    }

    /* Proyecto galería 1 columna en móvil */
    .project-gallery-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
    }

    .project-gallery-item--large {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }

    /* Proyecto descripción en columna */
    .project-detail-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .project-detail-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-detail-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .project-stat-card {
        flex: 1;
        min-width: 120px;
        padding: 1.5rem 1rem;
    }

    .project-stat-number {
        font-size: 2rem;
    }

    /* Proyecto CTA responsive */
    .project-cta-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .project-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MÓVILES PEQUEÑOS
   Optimizaciones para pantallas muy pequeñas
   ======================================== */
@media (max-width: 480px) {
    /* Hero aún más compacto */
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    /* Botones más pequeños */
    .cta-button {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Stats a 1 columna en móviles muy pequeños */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Logo del header */
    nav .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Proyecto hero más compacto */
    .project-hero {
        height: 60vh;
        min-height: 350px;
    }

    .project-hero-content h1 {
        font-size: 1.75rem;
    }

    .project-stat-card {
        min-width: 80px;
        padding: 1.25rem 0.75rem;
    }

    .project-stat-number {
        font-size: 1.75rem;
    }
}

/* ========================================
   STRIP DE GARANTÍAS
   ======================================== */
.guarantee-strip {
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guarantee-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.855rem;
    font-weight: 500;
    justify-content: center;
}

.guarantee-item svg {
    color: var(--gold);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .guarantee-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem 1rem;
        padding: 1rem 1.5rem;
    }
    .guarantee-item {
        font-size: 0.8rem;
        justify-content: flex-start;
    }
}

@media (max-width: 400px) {
    .guarantee-container {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   EYEBROW LABELS DE SECCIÓN
   ======================================== */
.section-label {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.32rem 0.85rem;
    border-radius: 20px;
}

.section-label--light {
    color: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ========================================
   SECCIÓN DE TESTIMONIOS
   ======================================== */
.testimonials-section {
    background: #f8f8f6;
    padding: var(--spacing-xl) var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    flex: 1;
    position: relative;
    padding-top: 0.5rem;
}

.testimonial-text::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--gold);
    line-height: 0.6;
    display: block;
    margin-bottom: 0.85rem;
    font-weight: 700;
    opacity: 0.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--text-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.testimonial-author strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
}

.testimonial-author span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ========================================
   BOTONES DE ACCIÓN DE CONTACTO
   ======================================== */
.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.contact-action-btn:hover {
    transform: translateY(-2px);
}

.contact-action-whatsapp {
    background: #25D366;
    color: #fff;
}
.contact-action-whatsapp:hover {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.contact-action-phone {
    background: var(--bg-white);
    color: var(--text-primary);
}
.contact-action-phone:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.contact-action-email {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.contact-action-email:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .contact-action-btn {
        justify-content: center;
    }
}

/* ========================================
   FORMULARIO DE CONTACTO
   ======================================== */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.75rem;
    text-align: left;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-form-group.full {
    grid-column: 1 / -1;
}

.contact-form label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, background 0.25s ease;
    outline: none;
    width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact-form select option {
    background: #1a1a1a;
    color: white;
}

.contact-form textarea {
    resize: vertical;
    min-height: 115px;
}

.contact-form-submit {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

.contact-form-btn {
    background: var(--gold);
    color: var(--text-primary);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.contact-form-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(223, 176, 84, 0.35);
}

.contact-form-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

@media (max-width: 640px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
    .contact-form-group.full {
        grid-column: 1;
    }
}

/* ========================================
   ZONAS DE TRABAJO
   ======================================== */
.zones-section {
    background: var(--bg-white);
    padding: 3.5rem var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.zones-container {
    max-width: 860px;
    margin: 0 auto;
}

.zones-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 0.65rem;
}

.zones-title {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.zones-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.zone-tag {
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
    padding: 0.38rem 0.95rem;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 500;
    transition: all 0.22s ease;
    cursor: default;
}

.zone-tag:hover {
    background: var(--text-primary);
    color: white;
    border-color: transparent;
}

@media (max-width: 640px) {
    .zones-section {
        padding: 2.25rem 1.25rem;
    }

    .zones-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        text-align: left;
    }

    .zone-tag {
        padding: 0.6rem 0.85rem;
        font-size: 0.79rem;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 0.45rem;
    }

    .zone-tag::before {
        content: '';
        flex-shrink: 0;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--text-secondary);
        opacity: 0.4;
    }
}

/* ========================================
   ANIMACIÓN ESCALONADA EN TARJETAS DE SERVICIOS
   ======================================== */
.about-section.visible .feature-card {
    animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-section.visible .feature-card:nth-child(1) { animation-delay: 0.05s; }
.about-section.visible .feature-card:nth-child(2) { animation-delay: 0.13s; }
.about-section.visible .feature-card:nth-child(3) { animation-delay: 0.21s; }
.about-section.visible .feature-card:nth-child(4) { animation-delay: 0.29s; }
.about-section.visible .feature-card:nth-child(5) { animation-delay: 0.37s; }
.about-section.visible .feature-card:nth-child(6) { animation-delay: 0.45s; }

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   NAV ACTIVA POR SCROLL
   ======================================== */
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    width: 100%;
}
