/* --- IMPORTAR FUENTES PROFESIONALES (Inter, Montserrat y Syne) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@600;700;800&family=Syne:wght@700;800&display=swap');

/* --- 1. RESET Y CONFIGURACIÓN GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #EAECEF;
    color: #4A5568;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.container-wide {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
}

/* --- 2. CABECERA Y NAVEGACIÓN --- */
header {
    background-color: #17253B;
    color: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-sub {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.55rem;
    color: #2D62AD;
    letter-spacing: 1.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-family: 'Inter', sans-serif;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #2F6D8F;
}

.nav-btn-highlight {
    background-color: #2D62AD;
    color: #ffffff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    transition: background-color 0.3s ease !important;
}

.nav-btn-highlight:hover {
    background-color: #17253B;
}

/* --- 3. SECCIÓN HERO --- */
.hero {
    position: relative;
    background-image: url('fachada-fondo.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 11rem 0;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 37, 59, 0.88);
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 0.9rem 2.4rem;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #2D62AD;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(45, 98, 173, 0.4);
}

.btn-primary:hover {
    background-color: #17253B;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- 4. SECCIÓN OBRAS (SCROLL HORIZONTAL) --- */
.obras-section {
    padding: 5rem 0;
    background-color: #EAECEF;
    text-align: center;
}

.obras-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: #17253B;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.obras-subtitle {
    color: #64748b;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.obras-scroll-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: #2D62AD #CBD5E1;
}

.obras-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.obras-scroll-container::-webkit-scrollbar-track {
    background: #D0D5DD;
    border-radius: 4px;
}

.obras-scroll-container::-webkit-scrollbar-thumb {
    background-color: #2D62AD;
    border-radius: 4px;
}

.obra-card {
    flex: 0 0 350px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    scroll-snap-align: start;
    border-top: 4px solid #2D62AD;
    text-align: left;
}

.obra-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    background-color: #cbd5e1;
}

.obra-info {
    padding: 1.2rem;
    text-align: center;
}

.obra-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #17253B;
}

/* --- 5. SECCIÓN DE CONTACTO Y FORMULARIO --- */
.contact-section {
    padding: 5rem 0;
    background-color: #DFE3E6;
}

.contact-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #17253B;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

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

.contact-box, .contact-info-box {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-top: 4px solid #2D62AD;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #17253B;
    margin-bottom: 0.4rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #4A5568;
    background-color: #F8FAFC;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #2D62AD;
    background-color: #ffffff;
}

.contact-info-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: #17253B;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.contact-info-box p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.info-item {
    margin-bottom: 1.2rem;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.info-item a {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2D62AD;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* --- FOOTER --- */
footer {
    background-color: #17253B;
    color: #94a3b8;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

#netlify-identity-widget, 
.netlify-deploy-badge, 
a[href*="netlify.com/?utm_source=netlify-badge"] {
    display: none !important;
}