/* ==========================================================================
   SISTEMA DE DISEÑO - COMPONENTES GLOBALES Y UTILIDADES
   ========================================================================== */

/* 
   [AI_EDITABLE]: CONFIGURACIÓN DE FUENTES Y PALETA DE COLORES
   Esta sección controla el aspecto visual completo del sitio. Para cambiar el 
   tema de colores del gris/negro corporativo a los colores de cualquier empresa:
   - Reemplaza las variables HSL o valores HEX en el selector :root.
   - Cambia las familias de fuentes si la empresa usa otras tipografías.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta de Colores Corporativa (Crimson Red, Black, White) */
    --color-primary-hue: 0;
    --color-primary-saturation: 85%;

    /* Colores del Tema (HSL para control de opacidad dinámico) */
    --color-primary: hsl(var(--color-primary-hue), var(--color-primary-saturation), 45%);
    /* Crimson Red */
    --color-secondary: hsl(var(--color-primary-hue), var(--color-primary-saturation), 35%);
    /* Dark Crimson Red */
    --color-accent: hsl(var(--color-primary-hue), var(--color-primary-saturation), 55%);
    /* Light Crimson Red */

    /* Colores de Fondo */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --bg-dark: #121212;
    --bg-dark-secondary: #1a1a1a;

    /* Colores de Texto */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;
    --text-light: #ffffff;
    --text-light-secondary: #e0e0e0;

    /* Estados */
    --color-success: #2b8a3e;
    --color-error: #c92a2a;
    --color-warning: #e67e22;
    --color-info: #228be6;

    /* Tipografías */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Sombras y Elevaciones */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);

    /* Bordes y Bordes Redondeados */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    --border-color: #e9ecef;

    /* Transiciones y Tiempos */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Contenedores */
    --max-width: 1200px;
    --header-height: 140px;
}

/* ==========================================================================
   RESET GENERAL Y COMPORTAMIENTO BÁSICO
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Tipografía */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

ul {
    list-style: none;
}

/* ==========================================================================
   ESTILOS DEL NAVBAR (GLASSMORPHISM)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.04),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.header.scrolled {
    height: 110px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.nav-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* [AI_EDITABLE]: LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-primary);
}

.header .logo {
    height: 100%;
    color: #000000 !important;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--color-primary);
    color: var(--text-light) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Menú Móvil Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    transition: var(--transition-normal);
}

.nav-toggle span:nth-child(1) {
    top: 0;
}

.nav-toggle span:nth-child(2) {
    top: 11px;
}

.nav-toggle span:nth-child(3) {
    top: 22px;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ==========================================================================
   COMPONENTES DE DISEÑO COMUNES
   ========================================================================== */

/* Botones Premium con efectos 3D y resplandor */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 2.2rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--text-light);
    box-shadow:
        0 6px 20px rgba(197, 48, 48, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-primary:hover {
    background: linear-gradient(145deg, var(--color-secondary) 0%, hsl(var(--color-primary-hue), var(--color-primary-saturation), 30%) 100%);
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(197, 48, 48, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 48, 48, 0.3);
}

.btn-accent {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-accent:hover {
    background-color: var(--color-accent);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Cabecera Interna de Páginas */
.page-hero {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 13rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 80%);
    pointer-events: none;
}

/* Unique background image for About Us hero */
.about-hero {
    background-image:
        linear-gradient(rgba(15, 15, 15, 0.72), rgba(15, 15, 15, 0.72)),
        url('../imagenes/imagen (15).jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Unique background image for Gallery hero */
.gallery-hero {
    background-image:
        linear-gradient(rgba(15, 15, 15, 0.72), rgba(15, 15, 15, 0.72)),
        url('../imagenes/imagen (3).jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Unique background image for Services hero */
.services-hero {
    background-image:
        linear-gradient(rgba(15, 15, 15, 0.72), rgba(15, 15, 15, 0.72)),
        url('../imagenes/Decks.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Unique background image for Contact hero */
.contact-hero {
    background-image:
        linear-gradient(rgba(15, 15, 15, 0.72), rgba(15, 15, 15, 0.72)),
        url('../imagenes/Cover Patios & Porch.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.page-hero h1 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: var(--text-light-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Secciones */
.section {
    padding: 6.5rem 2rem;
}

.section-bg {
    background-color: var(--bg-secondary);
    position: relative;
}

.section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(197, 48, 48, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(197, 48, 48, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--color-secondary);
    display: inline-block;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.25rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    max-width: 650px;
    margin: 0 auto 1rem;
}

.section-description {
    max-width: 550px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ==========================================================================
   PÁGINA DE INICIO (HOME)
   ========================================================================== */

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(18, 18, 18, 0.75), rgba(18, 18, 18, 0.75)), url('../imagenes/imagen (1).jpg') no-repeat center center / cover;
    position: relative;
    display: flex;
    align-items: center;
    padding: 11.5rem 2rem 4rem;
    overflow: hidden;
}

.hero::after {
    display: none;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    color: var(--text-light);
}

.hero-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-tag span {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--text-muted);
    font-weight: 400;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-btn-primary {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

.hero-btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--text-light);
}

.hero-btn-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

.hero-btn-secondary:hover {
    border-color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
}

.trust-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

/* [AI_EDITABLE]: DECORACIÓN VISUAL HERO */
.hero-visual-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-visual-card img {
    width: 100%;
    height: 100%;
    object-position: center;
}

.hero-badge-floating {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.06),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        inset 2px 0 0 rgba(255, 255, 255, 0.6),
        inset -2px 0 0 rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 250px;
    animation: floatAnim 4s ease-in-out infinite;
}

.badge-floating-icon {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    background-color: var(--color-primary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.badge-floating-text h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.badge-floating-text p {
    font-size: 0.75rem;
    margin: 0;
}

/* Mosaico de Servicios Destacados en Home */
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.home-services-grid .service-card-img {
    height: 180px;
}

.home-services-grid .service-card-content {
    padding: 1.4rem;
}

.home-services-grid .service-card-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* ==========================================================================
   PÁGINA SOBRE NOSOTROS (ABOUT)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

/* 3-Column Values Grid for About Page */
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    align-items: stretch;
    box-sizing: border-box;
}

.about-values-grid .service-detail-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.about-content-left {
    display: flex;
    flex-direction: column;
}

.about-highlight-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.values-list {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.04),
        0 3px 8px rgba(0, 0, 0, 0.02),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 32px rgba(197, 48, 48, 0.1),
        0 6px 12px rgba(0, 0, 0, 0.04),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    border-color: rgba(197, 48, 48, 0.25);
}

.value-icon {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-top: 0.2rem;
}

.value-item h4 {
    margin-bottom: 0.25rem;
}

.value-item p {
    font-size: 0.85rem;
    margin: 0;
}

.about-visual-right {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.12),
        0 10px 20px rgba(0, 0, 0, 0.06),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow:
        0 35px 70px rgba(197, 48, 48, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(197, 48, 48, 0.3);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: calc(var(--radius-lg) - 10px);
    pointer-events: none;
    z-index: 2;
}

/* Estadísticas con Contadores Dinámicos */
.stats-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 5rem 2rem;
}

.stats-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    text-align: center;
}

.stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border-color: rgba(197, 48, 48, 0.3);
    box-shadow:
        0 16px 36px rgba(197, 48, 48, 0.15),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* ==========================================================================
   PÁGINA DE SERVICIOS (SERVICES)
   ========================================================================== */

/* Tarjetas Dinámicas de Servicios */
.service-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* [AI_EDITABLE]: COMPONENTE PREMIUM DE SERVICIO — GLASSMORPHISM 3D */
.service-detail-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(245, 245, 255, 0.75) 100%);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border-radius: var(--radius-lg);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.03),
        inset 0 2px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        inset 2px 0 0 rgba(255, 255, 255, 0.6),
        inset -2px 0 0 rgba(255, 255, 255, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Glass shine overlay */
.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transition: left 0.6s ease;
    z-index: 10;
    pointer-events: none;
}

/* Top accent gradient line */
.service-detail-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 10;
}

.service-detail-card:hover {
    transform: translateY(-14px) scale(1.025);
    box-shadow:
        0 35px 70px -20px rgba(197, 48, 48, 0.2),
        0 20px 40px -15px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.04),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04),
        inset 2px 0 0 rgba(255, 255, 255, 0.8),
        inset -2px 0 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(197, 48, 48, 0.35);
}

.service-detail-card:hover::before {
    left: 120%;
}

.service-detail-card:hover::after {
    opacity: 1;
}

.service-card-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    transition: var(--transition-slow);
}

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

.service-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: var(--text-light);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.service-card-content {
    padding: 2.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-features {
    margin: 1.5rem 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.feature-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.feature-check svg {
    color: var(--color-success);
    flex-shrink: 0;
}

.service-card-cta {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-price-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.service-price-tag span {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.service-read-more {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
}

.service-read-more:hover {
    gap: 0.75rem;
}

/* Acordeón de FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 0;
}

.faq-trigger {
    width: 100%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.45));
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.04),
        0 2px 6px rgba(0, 0, 0, 0.02),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-trigger:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 28px rgba(197, 48, 48, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.04),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    border-color: rgba(197, 48, 48, 0.25);
}

.faq-trigger h4 {
    margin: 0;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.faq-trigger:hover h4 {
    color: var(--color-secondary);
}

.faq-icon {
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-normal);
    opacity: 0;
}

.faq-content p {
    padding-top: 1rem;
    margin: 0;
}

.faq-item.active .faq-content {
    max-height: 200px;
    opacity: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ==========================================================================
   PÁGINA DE GALERÍA (GALLERY)
   ========================================================================== */

/* Botones de Filtro */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--text-light);
    border-color: var(--color-primary);
}

/* Mosaico Masonry Premium */
/* [AI_EDITABLE]: GRID MASONRY DE LA GALERÍA */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 240px;
    gap: 1.5rem;
}

/* .gallery-item.wide and .gallery-item.tall: Masonry span overrides intentionally removed
   to prevent empty blocks in the auto-fit grid. Both classes render as standard 1x1 cells. */
.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.04),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(197, 48, 48, 0.14),
        0 15px 30px rgba(0, 0, 0, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04);
    border-color: rgba(197, 48, 48, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-info h4 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
}

.gallery-info p {
    color: var(--text-light-secondary);
    font-size: 0.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox Estilizado */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: var(--transition-normal);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.lightbox-nav:hover {
    background-color: var(--color-primary);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* ==========================================================================
   PÁGINA DE CONTACTO (CONTACT)
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

/* Tarjetas Informativas */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.65) 50%, rgba(248, 248, 255, 0.78) 100%);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 1.25rem;
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.06),
        0 5px 12px rgba(0, 0, 0, 0.03),
        inset 0 2px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04),
        inset 2px 0 0 rgba(255, 255, 255, 0.5),
        inset -2px 0 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.info-card:hover {
    border-color: rgba(197, 48, 48, 0.35);
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(197, 48, 48, 0.12),
        0 12px 24px rgba(0, 0, 0, 0.06),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03),
        inset 2px 0 0 rgba(255, 255, 255, 0.7),
        inset -2px 0 0 rgba(255, 255, 255, 0.35);
}

.info-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background-color: var(--color-primary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-card-text h4 {
    margin-bottom: 0.35rem;
}

.info-card-text p,
.info-card-text a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* [AI_EDITABLE]: BADGE HORAS DE OPERACIÓN */
.badge-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.badge-status.open {
    background-color: rgba(43, 138, 62, 0.1);
    color: var(--color-success);
}

.badge-status.closed {
    background-color: rgba(201, 42, 42, 0.1);
    color: var(--color-error);
}

/* Métodos de Pago */
.payment-methods-box {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.payment-methods-box h4 {
    margin-bottom: 1rem;
}

.payment-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-icon-item {
    background-color: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-icon-item svg {
    width: 20px;
    height: 20px;
}

/* Estimados Gratis Alert Banner */
.free-estimates-banner {
    background: linear-gradient(145deg, var(--color-primary), var(--color-secondary));
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(197, 48, 48, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.free-estimates-banner::after {
    content: '%';
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 7rem;
    font-weight: 900;
    opacity: 0.05;
    transform: rotate(15deg);
}

.free-estimates-banner h4 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.free-estimates-banner p {
    color: var(--text-light-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Formulario */
.contact-form-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(248, 248, 255, 0.8) 100%);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.08),
        0 12px 24px rgba(0, 0, 0, 0.05),
        0 3px 6px rgba(0, 0, 0, 0.03),
        inset 0 2px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04),
        inset 2px 0 0 rgba(255, 255, 255, 0.6),
        inset -2px 0 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-form-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
    background-size: 200% 100%;
    animation: shimmerGradient 3s ease infinite;
}

@keyframes shimmerGradient {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-primary);
    background-color: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.form-response {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 550;
    display: none;
}

.form-response.success {
    display: block;
    background-color: rgba(43, 138, 62, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(43, 138, 62, 0.2);
}

.form-response.error {
    display: block;
    background-color: rgba(201, 42, 42, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(201, 42, 42, 0.2);
}

/* Mapa */
.map-section {
    padding: 0;
    height: 450px;
    border-top: 1px solid var(--border-color);
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(1);
    transition: var(--transition-slow);
}

.map-container iframe:hover {
    filter: grayscale(0);
}

/* ==========================================================================
   WIDGETS FLOTANTES (CONTACT FLOAT)
   ========================================================================== */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    z-index: 999;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    position: relative;
    transition: var(--transition-normal);
    text-decoration: none;
}

.float-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* [AI_EDITABLE]: COLORES BURBUJAS FLOTANTES */
.float-whatsapp {
    background-color: #25d366;
}

.float-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.4;
    z-index: -1;
    animation: pulseBubble 2s infinite;
}

.float-whatsapp:hover {
    background-color: #1ebe5d;
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.float-mail {
    background-color: #ea4335;
}

.float-mail:hover {
    background-color: #d33426;
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(234, 67, 53, 0.4);
}

.float-mail svg,
.social-link.social-mail svg {
    fill: none !important;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.float-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.float-instagram:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}

.float-facebook {
    background-color: #1877f2;
}

.float-facebook:hover {
    background-color: #166fe5;
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

/* Tooltips */
.float-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 64px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.float-btn:hover::after {
    opacity: 1;
}

/* ==========================================================================
   ESTILOS DEL FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light-secondary);
    padding: 5rem 2rem 2rem;
    border-top: 4px solid var(--color-primary);
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--text-muted);
}

.footer-col p {
    color: var(--text-light-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col-logo .logo {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-col-logo .logo-icon {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light-secondary);
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Quick links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-light-secondary);
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

/* Contact Us Column */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact-item svg {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-contact-item a:hover {
    color: var(--text-light);
}

/* Column Payment Methods */
.footer-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.footer-payment-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light-secondary);
}

.footer-payment-card svg {
    width: 16px;
    height: 16px;
}

/* Copyright Bar */
.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom p a {
    color: inherit;
    text-decoration: underline;
    transition: var(--transition-fast);
}

.footer-bottom p a:hover {
    color: var(--color-primary);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a:hover {
    color: var(--text-light);
}

/* ==========================================================================
   ANIMACIONES CLAVE
   ========================================================================== */
@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(43, 138, 62, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(43, 138, 62, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(43, 138, 62, 0);
    }
}

@keyframes pulseBubble {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes floatAnim {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN — TABLET (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.85rem;
    }

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

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

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

    .hero-visual {
        display: none;
    }

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

    .about-visual-right {
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .service-showcase-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
        margin: 0 auto;
    }

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

    .about-values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .section {
        padding: 5rem 1.5rem;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .lightbox-prev {
        left: -50px;
    }

    .lightbox-next {
        right: -50px;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN — MOBILE (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    /* --- Typography --- */
    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.55rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* --- Navbar & Mobile Menu --- */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 249, 250, 0.98));
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0 2rem;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        z-index: 999;
    }

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

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1.8rem 2rem;
        font-size: 1.15rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-link:hover {
        background-color: rgba(197, 48, 48, 0.05);
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin: 2.2rem auto 0;
        width: 85%;
        max-width: 300px;
        text-align: center;
        display: block;
    }

    /* --- Sections --- */
    .section {
        padding: 3.5rem 1.25rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.55rem;
        max-width: 100%;
    }

    .section-description {
        font-size: 0.95rem;
    }

    /* --- Page Hero --- */
    .page-hero {
        padding: 7rem 1.5rem 3rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 0.9rem;
    }

    /* --- Home Hero --- */
    .hero {
        min-height: auto;
        padding: 6.5rem 1.25rem 3rem;
    }

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

    .hero-title br {
        display: none;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
        justify-content: center;
    }

    .hero-trust {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem;
    }

    .hero-trust .trust-item {
        border-left: none !important;
        padding-left: 0 !important;
    }

    .trust-number {
        font-size: 1.6rem;
    }

    /* --- About Section --- */
    .about-highlight-text {
        font-size: 1.05rem;
    }

    .values-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .value-item {
        padding: 1rem;
    }

    .about-image-wrapper::after {
        top: 10px;
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    /* --- Stats Section --- */
    .stats-section {
        padding: 3.5rem 1.25rem;
    }

    .stat-card {
        padding: 2rem 1rem;
    }

    .stat-card h3 {
        font-size: 2.5rem;
    }

    /* --- Service Cards --- */
    .home-services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

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

    .service-showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card-img {
        height: 200px;
    }

    .service-card-content {
        padding: 1.5rem;
    }

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

    .service-card-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .service-detail-card:hover {
        transform: translateY(-6px) scale(1.01);
    }

    /* --- FAQ --- */
    .faq-trigger {
        padding: 1rem 1.25rem;
    }

    .faq-trigger h4 {
        font-size: 1rem;
        padding-right: 1rem;
    }

    /* --- Gallery --- */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 0.75rem;
    }

    .gallery-item.wide {
        grid-column: span 1;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    .gallery-item:hover {
        transform: translateY(-4px) scale(1.01);
    }

    /* --- Lightbox --- */
    .lightbox {
        padding: 1rem;
    }

    .lightbox-prev,
    .lightbox-next {
        display: none;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: 90%;
    }

    .lightbox-img {
        max-height: 75vh;
        border-radius: var(--radius-md);
    }

    .lightbox-close {
        top: -35px;
        right: 5px;
        font-size: 2.5rem;
        padding: 0.25rem;
    }

    /* --- Contact Form --- */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-box {
        padding: 1.75rem 1.25rem;
    }

    .contact-form-box h3 {
        font-size: 1.3rem;
    }

    .form-control {
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1.5rem;
    }

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

    .info-card-icon {
        width: 48px;
        height: 48px;
    }

    .payment-icons {
        justify-content: center;
    }

    .free-estimates-banner {
        text-align: center;
        padding: 1.25rem;
    }

    .free-estimates-banner::after {
        font-size: 5rem;
    }

    /* --- Map Section --- */
    .map-section {
        height: 300px;
    }

    /* --- Footer --- */
    .footer {
        padding: 3.5rem 1.25rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-contact-list {
        align-items: center;
    }

    .footer-contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-payment-grid {
        max-width: 260px;
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* --- Floating Widgets --- */
    .floating-widgets {
        bottom: 16px;
        right: 16px;
        gap: 0.6rem;
    }

    .float-btn {
        width: 46px;
        height: 46px;
    }

    .float-btn svg {
        width: 22px;
        height: 22px;
    }

    .float-btn::after {
        display: none;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN — SMALL MOBILE (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
    .hero {
        padding: 6rem 1rem 2.5rem;
    }

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

    .hero-tag {
        font-size: 0.78rem;
        padding: 0.4rem 1rem;
    }

    .hero-description {
        font-size: 0.92rem;
    }

    .hero-actions .btn {
        max-width: 100%;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    .trust-number {
        font-size: 1.4rem;
    }

    .trust-label {
        font-size: 0.7rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .section-subtitle {
        font-size: 0.78rem;
        letter-spacing: 1.5px;
    }

    .section-description {
        font-size: 0.88rem;
    }

    .page-hero {
        padding: 6rem 1rem 2.5rem;
    }

    /* Disable fixed attachment on mobile (iOS compatibility) */
    .about-hero,
    .gallery-hero,
    .services-hero,
    .contact-hero {
        background-attachment: scroll;
        -webkit-background-attachment: scroll;
    }

    .page-hero h1 {
        font-size: 1.65rem;
    }

    .page-hero p {
        font-size: 0.85rem;
    }

    /* Stats */
    .stats-section {
        padding: 3rem 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem 0.75rem;
        border-radius: var(--radius-md);
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .stat-card p {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    /* Service Cards */
    .service-card-img {
        height: 170px;
    }

    .service-card-content {
        padding: 1.25rem;
    }

    .service-card-content h3 {
        font-size: 1.15rem;
    }

    .service-card-badge {
        font-size: 0.68rem;
        padding: 0.3rem 0.75rem;
        top: 12px;
        right: 12px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 0.5rem;
    }

    .gallery-item {
        border-radius: var(--radius-md);
    }

    /* Contact */
    .contact-form-box {
        padding: 1.5rem 1rem;
    }

    .info-card {
        padding: 1.25rem;
    }

    .free-estimates-banner {
        padding: 1rem;
    }

    /* FAQ */
    .faq-trigger {
        padding: 0.9rem 1rem;
    }

    .faq-trigger h4 {
        font-size: 0.92rem;
    }

    .faq-content p {
        font-size: 0.88rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 1rem 1.5rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-col h4 {
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
    }

    .footer-col p {
        font-size: 0.85rem;
    }

    .footer-bottom {
        font-size: 0.78rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.88rem;
    }

    .btn-primary::after {
        display: none;
    }

    /* Value items */
    .value-item {
        padding: 0.9rem;
    }

    .value-item h4 {
        font-size: 1rem;
    }

    .value-item p {
        font-size: 0.8rem;
    }

    /* Map */
    .map-section {
        height: 250px;
    }

    /* Floating widgets */
    .floating-widgets {
        bottom: 12px;
        right: 12px;
        gap: 0.5rem;
    }

    .float-btn {
        width: 42px;
        height: 42px;
    }

    .float-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN — EXTRA-SMALL MOBILE (≤360px)
   ========================================================================== */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-trust {
        gap: 1rem;
    }

    .trust-number {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .stat-card h3 {
        font-size: 1.75rem;
    }

    .stats-grid {
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .nav-link {
        padding: 1.4rem 1.5rem;
        font-size: 1rem;
    }

    .nav-cta {
        width: 90%;
    }

    .contact-form-box {
        padding: 1.25rem 0.85rem;
    }

    .form-control {
        font-size: 0.95rem;
        padding: 0.8rem 0.9rem;
    }
}

/* ==========================================================================
   LOGO SIZE OVERRIDES & DYNAMIC ADJUSTMENTS
   ========================================================================== */
.header .logo img {
    height: 136px !important;
    width: auto !important;
    object-fit: contain !important;
    transition: var(--transition-normal);
}

.header.scrolled .logo img {
    height: 106px !important;
}

.footer .logo img {
    height: 120px !important;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   PAGE HERO BACKGROUND IMAGES WITH DARK OVERLAY
   ========================================================================== */
.about-hero {
    background: linear-gradient(rgba(18, 18, 18, 0.75), rgba(18, 18, 18, 0.75)), url('../imagenes/imagen (15).jpg') no-repeat center center / cover !important;
}

.services-hero {
    background: linear-gradient(rgba(18, 18, 18, 0.75), rgba(18, 18, 18, 0.75)), url('../imagenes/imagen (2).jpg') no-repeat center center / cover !important;
}

.gallery-hero {
    background: linear-gradient(rgba(18, 18, 18, 0.75), rgba(18, 18, 18, 0.75)), url('../imagenes/imagen (3).jpg') no-repeat center center / cover !important;
}

.contact-hero {
    background: linear-gradient(rgba(18, 18, 18, 0.75), rgba(18, 18, 18, 0.75)), url('../imagenes/imagen (7).jpg') no-repeat center center / cover !important;
}

/* ==========================================================================
   RESPONSIVE LOGO & NAV OVERRIDES
   ========================================================================== */
@media (max-width: 768px) {
    .trex-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center;
    }
    .trex-content h2 {
        text-align: center !important;
    }

    .header .logo {
        height: 100%;
    }

    .footer-col-logo .logo {
        justify-content: center;
    }

    .header .logo img {
        height: 78px !important;
        transform: translateY(4px);
    }

    .header.scrolled .logo img {
        height: 78px !important;
        transform: translateY(4px);
    }

    .logo span {
        font-size: 1.2rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .footer .logo img {
        height: 80px !important;
    }
}

@media (max-width: 480px) {
    .header .logo {
        height: 100%;
    }

    .logo {
        gap: 0.5rem;
    }

    .header .logo img {
        height: 72px !important;
        transform: translateY(4px);
    }

    .header.scrolled .logo img {
        height: 72px !important;
        transform: translateY(4px);
    }

    .logo span {
        font-size: 1.05rem;
    }

    .nav-container {
        padding: 0 0.75rem;
    }
}

@media (max-width: 360px) {
    .header .logo {
        height: 100%;
    }

    .header .logo img {
        height: 66px !important;
        transform: translateY(3px);
    }

    .logo span {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   SERVICE AREAS SECTION
   ========================================================================== */
.service-areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 950px;
    margin: 0 auto;
    padding: 1rem 0;
}

.area-badge {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 240, 240, 0.95) 100%);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
}

.area-badge:hover {
    transform: translateY(-3px);
    background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(197, 48, 48, 0.3);
    border-color: transparent;
}