/* ==========================================================================
   Variables & Paleta de Colores
   ========================================================================== */
:root {
    --primary-color: #0b3b8c; /* Azul intenso */
    --primary-light: #1a56c4;
    --secondary-color: #2b2d42; /* Grafito / Negro */
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --border-color: #dee2e6;
    
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Roboto', sans-serif;
    
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Reseteo General
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   Clases Utilitarias
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.bg-dark {
    background-color: var(--secondary-color);
    color: var(--white);
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.bg-dark .section-header h2 {
    color: var(--white);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

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

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.bg-dark .section-header p {
    color: var(--gray-light);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(11, 59, 140, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Header y Navegación
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

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

.logo img {
    height: 150px;
    transition: var(--transition);
}

.header.scrolled .logo img {
    height: 100px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    margin-right: 30px;
}

.nav-link {
    padding: 10px 15px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary-color);
    position: relative;
}

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

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

.nav-link:hover::after {
    width: calc(100% - 30px);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    background-color: var(--secondary-color);
    background: url('../imágenes/hero-construccion.png') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 80px; /* Offset para el header */
}

.hero-brand {
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--primary-light);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--gray-light);
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   Servicios Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card ul {
    margin-left: 20px;
}

.service-card ul li {
    position: relative;
    margin-bottom: 8px;
    color: var(--gray);
    font-size: 0.95rem;
}

.service-card ul li::before {
    content: '\f054'; /* fa-chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -20px;
    top: 2px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.featured-service {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1c29 100%);
    color: var(--white);
    border-bottom-color: var(--primary-light);
}

.featured-service h3 {
    color: var(--white);
}

.featured-service .service-highlight {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.featured-service ul li {
    color: var(--gray-light);
}

.featured-service ul li::before {
    color: var(--primary-light);
}

/* ==========================================================================
   Empresa Section
   ========================================================================== */
.company-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.company-text {
    flex: 1;
}

.company-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 30px;
    line-height: 1.2;
}

.company-list {
    margin-bottom: 40px;
}

.company-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.company-list li i {
    color: var(--primary-light);
    margin-top: 5px;
    margin-right: 15px;
    font-size: 1.2rem;
}

.company-cta p {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 300;
}

.company-image {
    flex: 1;
}

.company-img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
}

/* ==========================================================================
   Proceso Section
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.process-step {
    position: relative;
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(11, 59, 140, 0.3);
}

.process-step h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Línea conectora */
@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50px;
        left: 50%;
        width: 100%;
        height: 2px;
        background-color: var(--border-color);
        z-index: 1;
    }
}

/* ==========================================================================
   Proyectos Section
   ========================================================================== */
.projects-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    height: 350px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

@media (min-width: 768px) {
    .project-item {
        width: calc(50% - 15px);
    }
}

@media (min-width: 992px) {
    .project-item {
        width: calc(33.333% - 20px);
    }
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (hover: hover) {
    .project-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow-hover);
    }
    
    .project-item:hover .project-img {
        transform: scale(1.05);
    }
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    padding: 30px 20px 20px;
    color: var(--white);
    z-index: 2;
}

.project-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* ==========================================================================
   Nosotros Section
   ========================================================================== */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-header {
    text-align: left;
    margin-bottom: 30px;
}

.about-header h2::after {
    left: 0;
    transform: none;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-desc {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.feature h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.feature p {
    font-size: 0.95rem;
    color: var(--gray);
}

.about-btn {
    margin-top: 10px;
}

.about-image {
    flex: 1;
}

.about-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
    .about-content {
        flex-direction: row-reverse;
        align-items: center;
        gap: 60px;
    }
}

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

/* ==========================================================================
   Presupuesto Section (Formulario)
   ========================================================================== */
.quote-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    color: var(--secondary-color);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 59, 140, 0.1);
}

.file-note-box {
    border: 2px dashed var(--border-color);
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    background-color: var(--gray-light);
    color: var(--gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.file-note-box i {
    font-size: 2rem;
    color: var(--primary-light);
}

.file-note-box p {
    font-size: 0.9rem;
    margin: 0;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    font-weight: 700;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-logo {
    height: 80px;
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--gray-light);
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer-col h3 {
    font-family: var(--font-heading);
    color: var(--primary-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-col ul li a {
    color: var(--gray-light);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* ==========================================================================
   WhatsApp Flotante
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--white);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--white);
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Media Queries (Responsive)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .company-content {
        flex-direction: column;
    }
    
    .company-img {
        min-height: auto;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }
    
    .nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-list {
        flex-direction: column;
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-list li {
        margin-bottom: 15px;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .btn-header {
        margin-top: 10px;
    }
    
    .hero {
        background-position: 70% center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
}
