/* Variables y Configuración Base */
:root {
    --dark-bg: #0b111e; /* Color principal oscuro del diseño */
    --card-bg: #131b2f; /* Color de las tarjetas */
    --orange: #f97316;  /* Acento principal */
    --orange-hover: #ea580c;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-orange { color: var(--orange); }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.w-100 { width: 100%; }
.border-top { border-top: 1px solid #e2e8f0; }

/* Tipografía de Secciones */
.section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title-dark {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title-light {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.link-orange {
    color: var(--orange);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

.link-orange:hover {
    color: var(--orange-hover);
    gap: 12px;
}

/* Botones */
.btn-primary {
    background-color: var(--orange);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background-color: var(--orange-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 1px solid var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--white);
}

/* Navegación */
header {
    background-color: var(--dark-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.logo i {
    color: var(--orange);
    font-size: 1.5rem;
}

.logo h2 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo span {
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--orange);
}

.mobile-menu {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section (Actualizado para compactar) */
.hero {
    background: linear-gradient(rgba(11, 17, 30, 0.6), rgba(11, 17, 30, 0.7)), url('imagenes/fondo-edificio.png') center/cover no-repeat;
    background-attachment: fixed;
    padding-top: 100px; /* Reducimos el espacio de arriba */
    padding-bottom: 40px; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Menos espacio entre etiquetas para forzar la misma línea */
    margin-bottom: 20px; /* Reducimos el espacio debajo de las etiquetas */
}

.tag {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-light);
    padding: 5px 10px; /* Etiquetas más delgadas */
    border-radius: 20px;
    font-size: 0.7rem; /* Texto un pelín más pequeño */
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap; /* Obliga a la etiqueta a no partirse en dos */
}

.tag.highlight {
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--orange);
    border-color: var(--orange);
}

.hero-text h1 {
    font-size: 3rem; /* Título un poco más compacto */
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 15px; /* Menos espacio debajo del título */
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px; /* Menos espacio debajo del párrafo */
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* =========================================
   CONTENEDOR PRINCIPAL Y CARRUSEL
   ========================================= */
/* Esto obliga a que el texto y el carrusel se pongan lado a lado en PC */
.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 20px;
    overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.carousel-track {
    display: flex;
    width: 400%; 
    height: 100%;
    animation: slideCarousel 20s infinite;
    flex-wrap: nowrap; 
}

.carousel-slide {
    width: 25%; 
    height: 100%;
    flex-shrink: 0; 
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.carousel-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(11, 17, 30, 0.8);
    backdrop-filter: blur(5px);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

@keyframes slideCarousel {
    0%, 20% { transform: translateX(0); } 
    25%, 45% { transform: translateX(-25%); } 
    50%, 70% { transform: translateX(-50%); } 
    75%, 95% { transform: translateX(-75%); } 
    100% { transform: translateX(0); } 
}

@media (max-width: 992px) {
    .hero-carousel {
        height: 300px;
    }
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Estadísticas */
.stats {
    background-color: var(--card-bg);
    padding: 40px 0;
    margin-top: -30px;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.stat-item {
    color: var(--white);
    flex: 1;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child { border-right: none; }

.stat-item i {
    color: var(--orange);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.stat-item h3 { font-size: 2rem; margin-bottom: 5px; }
.stat-item p { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 1px; }

/* About / Nosotros */
.about {
    padding: 100px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-subtitle { color: var(--orange); }
.about-text p { margin-bottom: 20px; color: #475569; }

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    gap: 15px;
}

.feature i { font-size: 1.5rem; margin-top: 3px; }
.feature h5 { font-size: 1.1rem; margin-bottom: 5px; }
.feature p { font-size: 0.9rem; margin-bottom: 0; }

.about-image { position: relative; }
.img-placeholder {
    background-color: var(--bg-light);
    border-radius: 20px;
    height: 400px;
    background-image: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&q=80');
    background-size: cover;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.floating-badge i {
    background-color: var(--orange);
    width: 40px; height: 40px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 8px; font-size: 1.2rem;
}

.floating-badge strong { display: block; font-family: var(--font-heading); }
.floating-badge span { font-size: 0.8rem; color: var(--text-muted); }

/* Servicios */
.services {
    background-color: var(--dark-bg);
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}

.service-card:hover { transform: translateY(-5px); border-color: var(--orange); }
.service-card i { color: var(--orange); font-size: 2rem; margin-bottom: 20px; }
.service-card h3 { color: var(--white); margin-bottom: 15px; font-size: 1.3rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; }

/* Por qué elegirnos */
.why-us {
    background-color: #172136; /* Un tono intermedio */
    padding: 100px 0;
}

.why-us-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.why-us-text p { color: var(--text-muted); font-size: 1.1rem; }

.why-us-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.list-item { display: flex; gap: 15px; }
.list-item i { font-size: 1.5rem; margin-top: 3px; }
.list-item h4 { color: var(--white); margin-bottom: 5px; font-size: 1.1rem; }
.list-item p { color: var(--text-muted); font-size: 0.9rem; }

/* Materiales */
.materials { padding: 80px 0; }

.materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.material-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.dot { width: 30px; height: 30px; border-radius: 50%; }
.dot.gray { background: #64748b; }
.dot.silver { background: #94a3b8; }
.dot.dark-gray { background: #334155; }
.dot.black { background: #0f172a; }
.dot.bronze { background: #b45309; }
.dot.light-silver { background: #cbd5e1; }
.dot.green { background: #16a34a; }
.dot.orange { background: #f97316; }

/* Proceso */
.process { padding: 80px 0; }
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
}

.process-steps .line {
    position: absolute;
    top: 25px; left: 0; right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--bg-light);
    padding: 0 10px;
    width: 180px;
}

.step-number {
    width: 50px; height: 50px;
    background: var(--dark-bg);
    color: var(--white);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 0 auto 15px;
}

.step h4 { margin-bottom: 10px; font-size: 1.1rem; }
.step p { font-size: 0.85rem; color: #64748b; }

/* Contacto */
.contact-section { padding: 100px 0; background: var(--bg-light); }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-form-box h2 { font-family: var(--font-heading); margin-bottom: 10px; }
.contact-form-box p { color: var(--text-muted); margin-bottom: 30px; font-size: 0.9rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dark);
}
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 6px;
    font-family: var(--font-body); font-size: 0.9rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.icon-box {
    width: 50px; height: 50px; background: var(--dark-bg); color: var(--orange);
    border-radius: 8px; display: flex; justify-content: center; align-items: center; font-size: 1.2rem;
}
.info-item h5 { margin-bottom: 5px; font-size: 1.1rem; }
.info-item p { color: #475569; font-size: 0.95rem; }

.contact-buttons { display: flex; gap: 15px; margin-top: 40px; }
.btn-whatsapp {
    background: #25D366; color: white; padding: 12px 24px; border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px;
}
.btn-dark {
    background: var(--dark-bg); color: white; padding: 12px 24px; border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px;
}

/* Footer */
footer { background: var(--dark-bg); color: var(--text-light); padding-top: 80px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo i { color: var(--orange); font-size: 1.5rem; }
.footer-col h3 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--orange); }
.social-links a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%;
    margin-right: 10px; color: var(--white);
}
.social-links a:hover { background: var(--orange); }
.footer-bottom { font-size: 0.85rem; color: var(--text-muted); padding-bottom: 20px; }
.footer-links a { color: var(--text-muted); margin-left: 20px; }
/* =========================================
   GALERÍA DE PROYECTOS
   ========================================= */
.gallery-section {
    padding: 100px 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(249, 115, 22, 0.85); /* Naranja de tu marca semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2.5rem;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

/* Efectos al pasar el mouse (Hover) */
.gallery-item:hover img {
    transform: scale(1.1); /* Hace un ligero zoom a la foto */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1; /* Muestra el color naranja */
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1); /* Agranda la lupa */
}
/* Responsive Media Queries (Básico) */
@media (max-width: 992px) {
    .hero-container, .about-container, .why-us-container, .contact-wrapper { grid-template-columns: 1fr; }
    .services-grid, .materials-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-container { flex-wrap: wrap; }
    .stat-item { flex: 50%; margin-bottom: 20px; border: none; }
    .process-steps { flex-direction: column; align-items: center; gap: 30px; }
    .process-steps .line { display: none; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* El JS maneja esto */
    .mobile-menu { display: block; }
    .services-grid, .materials-grid, .why-us-list, .form-row { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 2.5rem; }
    .footer-container { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: 1fr; }
}

/* =========================================
   ESTILOS PARA PÁGINAS INTERNAS (SERVICIOS)
   ========================================= */

/* Hero Interno */
.inner-hero {
    background-color: var(--dark-bg);
    padding: 150px 0 60px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.inner-hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 15px;
}

.inner-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Contenedor principal del servicio */
.service-details {
    padding: 80px 0;
}

.service-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

/* Lista de "Qué incluye" */
.service-details h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.include-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.include-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.include-item i {
    color: var(--orange);
    font-size: 1.1rem;
}

/* Caja de Llamada a la Acción (CTA) */
.service-cta {
    background-color: var(--dark-bg);
    padding: 40px;
    border-radius: 12px;
    color: var(--white);
}

.service-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-cta p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-dark-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Columna Derecha (Imagen y mini stats) */
.service-image-box img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.mini-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.mini-stat {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 20px 10px;
    border-radius: 8px;
    text-align: center;
}

.mini-stat i {
    color: var(--orange);
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.mini-stat span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Otros Servicios */
.other-services {
    background-color: var(--bg-light);
    padding: 80px 0;
    border-top: 1px solid #e2e8f0;
}

.other-services h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.service-card-alt {
    background: linear-gradient(145deg, #64748b, #475569);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    transition: transform 0.3s;
}

.service-card-alt:hover {
    transform: translateY(-5px);
}

.service-card-alt i {
    color: var(--orange);
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-card-alt h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card-alt p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: #e2e8f0;
}

@media (max-width: 992px) {
    .service-layout { grid-template-columns: 1fr; }
    .include-grid { grid-template-columns: 1fr; }
}
/* =========================================
   MODAL DE GALERÍA (EFECTO ZOOM)
   ========================================= */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000; /* Por encima de todo, incluso del menú */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 17, 30, 0.95); /* Fondo oscuro casi sólido */
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease; /* Animación de entrada suave */
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--orange);
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}