/* ==========================================================================
   DISEÑO VISUAL PREMIUM - REFORMASJIEA
   ========================================================================== */

/* Importar Fuentes Premium */
@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');

/* Variables de Diseño (Tokens de Estilo) */
:root {
    /* Paleta de Colores Corporativos (Sincronizados con el Logotipo) */
    --color-primary: #1A1D24;
    /* Antracita/Pizarra Oscuro - Elegancia, solidez y construcción */
    --color-primary-light: #252A34;
    /* Gris antracita medio */
    --color-primary-dark: #101217;
    /* Gris carbón profundo */
    --color-accent: #FFB300;
    /* Amarillo/Naranja vibrante (Casco de construcción del logo) */
    --color-accent-hover: #E6A100;
    /* Amarillo/Naranja oscuro para estados activos */
    --color-accent-dark: #D97706;
    /* Ámbar/Naranja de alto contraste para textos sobre fondos claros */
    --color-accent-light: #FFFDF5;
    /* Crema claro con un sutil tinte amarillo */
    --color-accent-rgba: rgba(255, 179, 0, 0.12);

    /* Colores Semánticos */
    --color-text-dark: #1e293b;
    /* Gris casi negro para máxima legibilidad */
    --color-text-muted: #64748b;
    /* Gris medio para textos secundarios */
    --color-text-light: #f8fafc;
    /* Blanco roto */
    --color-bg-body: #f8fafc;
    /* Fondo general limpio */
    --color-bg-card: #ffffff;
    /* Fondo de tarjetas */
    --color-success: #10b981;
    /* Verde para confirmaciones */
    --color-border: #e2e8f0;
    /* Bordes suaves */

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

    /* Sombras (Elevation) */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 20px 40px -15px rgba(26, 29, 36, 0.12);

    /* Bordes y Transiciones */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Configuración de Alturas */
    --header-height: 80px;
}

/* Reset y Estilos Globales */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.25;
}

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

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

/* --------------------------------------------------------------------------
   COMPONENTES COMUNES Y CONTENEDORES
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

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

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3 {
    color: var(--color-text-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent-dark);
    /* Color ámbar de alto contraste sobre fondo claro */
    margin-bottom: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.section-bg-dark .section-subtitle {
    color: var(--color-accent);
    /* Mantiene el amarillo brillante en fondos oscuros */
}

.section-bg-dark .section-desc {
    color: #94a3b8;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 179, 0, 0.3);
    /* Sombra sincronizada con el amarillo corporativo */
}

.btn-outline {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 179, 0, 0.3);
}

.section-bg-dark .btn-outline {
    color: var(--color-text-light);
    /* En fondo oscuro, el texto es claro para máxima nitidez */
}

.section-bg-dark .btn-outline:hover {
    color: var(--color-primary);
}

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

.btn-dark:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--color-text-light);
    color: var(--color-primary);
}

.btn-white:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.2);
}

/* Tarjetas (Cards) */
.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(212, 175, 55, 0.3);
}

/* --------------------------------------------------------------------------
   HEADER & NAVBAR (GLASSMORPHISM)
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(18, 24, 36, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-scrolled {
    height: 70px;
    background-color: rgba(10, 13, 20, 0.95);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--color-accent);
}

.logo-img {
    height: 110px;
    /* Aumentado sustancialmente para una visibilidad imponente */
    max-height: 140%;
    /* Estilo flotante premium que sobresale del navbar de forma estética */
    width: auto;
    object-fit: contain;
    transition: var(--transition-bounce);
    /* Transición de rebote para micro-animación interactiva */
    display: block;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    /* Sombra para profundidad */
    transform-origin: center center;
}

.logo-img:hover {
    transform: scale(1.08) rotate(1deg);
    /* Ligera rotación y escala para un dinamismo espectacular */
}

.header-scrolled .logo-img {
    height: 85px;
    /* Sigue viéndose grande y legible cuando el usuario hace scroll */
}

.footer .logo-img {
    height: 180px;
    /* Tamaño majestuoso para el Footer */
    max-height: 100%;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    transform-origin: center center;
}

.footer .logo-img:hover {
    transform: scale(1.05) rotate(-1deg);
}

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

.nav-link {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 1rem;
    opacity: 0.85;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--color-accent);
}

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

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

/* Botón menú móvil (Hamburger) */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   HERO SECTION (INICIO)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 90vh;
    padding-top: var(--header-height);
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    color: var(--color-text-light);
    overflow: hidden;
}

/* Imagen de fondo difuminada elegantemente */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.15) 0%, rgba(18, 24, 36, 0.95) 70%);
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.hero-title span {
    color: var(--color-accent);
}

.hero-desc {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1.2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item h4 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tarjeta destacada lateral en hero */
.hero-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.hero-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.hero-card p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   SECCIÓN SERVICIOS
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.service-category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-primary);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

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

.service-icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--color-accent-rgba);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.service-card-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.service-card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

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

.service-link i {
    transition: var(--transition-smooth);
}

.service-card:hover .service-link {
    color: var(--color-accent);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   SECCIÓN PORTAFOLIO (PROYECTOS)
   -------------------------------------------------------------------------- */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-dark);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
}

.portfolio-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 24, 36, 0.9) 0%, rgba(18, 24, 36, 0.2) 60%, rgba(18, 24, 36, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    color: var(--color-text-light);
}

.portfolio-cat {
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.portfolio-title-overlay {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-card-body {
    padding: 1.5rem;
    background: var(--color-bg-card);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border: 1px solid var(--color-border);
    border-top: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.portfolio-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.portfolio-meta i {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   SECCIÓN TESTIMONIOS
   -------------------------------------------------------------------------- */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

/* Google Reviews Summary Widget */
.google-reviews-summary {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 2.5rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.google-reviews-summary:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.2);
}

/* Decoración dorada lateral */
.google-reviews-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-accent-hover));
}

.gr-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.gr-google-logo {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.gr-brand-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.gr-brand-text h3 span {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 30%, #FBBC05 60%, #EA4335 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.gr-brand-text p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.gr-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    padding: 0 2rem;
}

.gr-score {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1;
}

.gr-stars-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gr-stars {
    color: #ffc107;
    /* Color oficial estrellas de Google */
    font-size: 1rem;
    letter-spacing: 1px;
}

.gr-count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.gr-actions {
    display: flex;
    gap: 1rem;
}

.btn-gr-write,
.btn-gr-view {
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-gr-write {
    border-color: #cbd5e1;
    color: var(--color-text-dark);
}

.btn-gr-write:hover {
    background-color: #f8fafc;
    color: var(--color-primary);
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-gr-view {
    background-color: #121824;
}

.testimonial-card {
    padding: 2.5rem;
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-accent);
    position: relative;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--color-primary);
}

.testimonial-badge-google {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(66, 133, 244, 0.06);
    border: 1px solid rgba(66, 133, 244, 0.12);
    color: #4285F4;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-smooth);
}

.testimonial-card:hover .testimonial-badge-google {
    background: rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.2);
}

.testimonial-quote-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 1;
}

.testimonial-stars {
    color: var(--color-accent);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--color-text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.client-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.client-info p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.verified-source {
    color: #4285F4 !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.testimonial-google-link {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: #f8fafc;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    transition: var(--transition-smooth);
    z-index: 2;
}

.testimonial-google-link:hover {
    color: #4285F4;
    border-color: rgba(66, 133, 244, 0.3);
    background-color: rgba(66, 133, 244, 0.05);
    transform: translateY(-2px) scale(1.05);
}

/* Responsividad del Resumen de Google */
@media (max-width: 991px) {
    .google-reviews-summary {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .gr-actions {
        grid-column: span 2;
        justify-content: center;
        width: 100%;
    }

    .btn-gr-write,
    .btn-gr-view {
        flex: 1;
    }

    .gr-rating {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 650px) {
    .google-reviews-summary {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .gr-rating {
        border-left: none;
        padding: 0;
    }

    .gr-actions {
        grid-column: span 1;
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* --------------------------------------------------------------------------
   PÁGINA DE CONTACTO Y FORMULARIO
   -------------------------------------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-card-info {
    display: flex;
    gap: 1.2rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-accent-rgba);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-info-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.contact-info-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    white-space: pre-line;
}

.contact-hours-panel {
    background-color: var(--color-accent-light);
    border: 1px solid #f2e2be;
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-top: 1.5rem;
}

.contact-hours-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-hours-panel h3 i {
    color: var(--color-accent);
}

.hours-list {
    list-style: none;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(18, 24, 36, 0.1);
    padding-bottom: 0.4rem;
}

.hours-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Formulario Premium */
.contact-form-wrapper {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 3rem;
    border: 1px solid var(--color-border);
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-form-wrapper>p {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-bg-body);
    transition: var(--transition-smooth);
    color: var(--color-text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

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

/* Alertas de Feedback */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: flex;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: flex;
}

/* --------------------------------------------------------------------------
   DETALLES DE PROYECTOS - ANTES Y DESPUÉS
   -------------------------------------------------------------------------- */
.project-detail-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 4rem;
}

.project-gallery-title {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem 0;
    border-bottom: 2px solid var(--color-accent-rgba);
    padding-bottom: 0.5rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.comparison-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.comparison-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.comparison-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.comparison-tag.before {
    background-color: #1e293b;
    color: #f1f5f9;
}

.comparison-tag.after {
    background-color: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

.comparison-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 1.5rem;
    color: #ffffff;
    font-size: 0.9rem;
}

.project-meta-box {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-premium);
}

.project-meta-box h3 {
    color: var(--color-text-light);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
}

.project-meta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-meta-item span.label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-meta-item span.value {
    font-size: 1.05rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   FOOTER PREMIUM
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-col p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
}

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

.footer-contact-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-contact-info li {
    display: flex;
    gap: 0.75rem;
}

.footer-contact-info i {
    color: var(--color-accent);
    margin-top: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.1rem;
}

.social-link:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --------------------------------------------------------------------------
   BOTÓN FLOTANTE WHATSAPP (ACCESO RÁPIDO)
   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-bounce);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    color: #ffffff;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --------------------------------------------------------------------------
   RESPONSIVIDAD Y ADAPTACIÓN MÓVIL
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-content {
        max-width: 100%;
    }

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

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

    .hero-bg-image {
        width: 100%;
        opacity: 0.2;
    }

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

    .project-detail-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-meta-box {
        position: static;
    }

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

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

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

    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(10, 13, 20, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        z-index: 999;
        border-top: 1px solid var(--glass-border);
    }

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

    .nav-link {
        font-size: 1.25rem;
    }

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

    .comparison-card img {
        height: 280px;
    }

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

    .form-group-full {
        grid-column: span 1;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

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