:root {
    --primary-red: #E51D2A;
    --dark-blue: #1A233A;
    --light-gray: #f8f9fa;
    --text-dark: #212529;
    --text-light: #ffffff;
}

/* 
  SOLUCIÓN CLAVE 1: Ajuste final para la altura de la barra.
  Calculado como: altura_logo (105px) + padding_superior (10px) + padding_inferior (10px) = 125px
*/
html {
    scroll-padding-top: 105px; 
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-gray);
}

/* --- Navbar --- */
.navbar {
    background-color: rgba(26, 35, 58, 0.9);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
    /* Mantenemos el padding deseado de 10px */
    padding-top: 0px;
    padding-bottom: 0px;
}

/* SOLUCIÓN CLAVE 2: Eliminamos el padding extra del contenedor del logo */
.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand img {
    /* SOLUCIÓN CLAVE 3: Mantenemos el tamaño grande del logo */
    max-height: 105px; 
    transition: max-height 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    background-image: url('../img/hero-background.jpg');
    background-size: cover;
    background-position: center center;
    position: relative;
    color: var(--text-light);
    padding: 120px 0;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 35, 58, 0.75);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 1rem auto;
}
.hero-logo {
    max-width: 450px;
    margin-bottom: 2rem;
}
.btn-brand {
    background-color: var(--primary-red);
    color: var(--text-light);
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-brand:hover {
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Sections --- */
section {
    background-color: #fff;
}
.section-title {
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
}

/* --- Services Section --- */
#services {
    background-color: var(--light-gray);
}
.service-card {
    background-color: #fff;
    border: none;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.service-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}
.service-card h4 {
    font-weight: 600;
    color: var(--dark-blue);
}

/* --- About Us Section --- */
#about-us {
     background-color: #fff;
}
#about-us .lead {
    font-size: 1.2rem;
    font-weight: 400;
}

/* --- Portfolio Section --- */
#portfolio {
    background-color: var(--light-gray);
}
.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.portfolio-item:hover img {
    transform: scale(1.05);
}

/* --- Contact & Location Section --- */
#contact {
    background-color: var(--dark-blue);
    color: var(--text-light);
}
#contact .section-title::after {
     background-color: #fff;
}
#contact h3 {
    color: var(--primary-red);
    font-weight: 600;
}
#contact a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
}
#contact a:hover {
    text-decoration: underline;
}

.area-tag {
    background-color: rgba(229, 29, 42, 0.15);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid var(--primary-red);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    border: 3px solid var(--primary-red);
}

/* --- Footer --- */
footer {
    background-color: #111827;
    color: #aaa;
    padding: 2rem 0;
}
.footer-info {
    font-size: 0.9rem;
    color: #888;
}

/* --- Media Queries --- */
@media (max-width: 991px) {
    html {
        scroll-padding-top: 110px; /* altura_logo (90px) + padding (20px) = 110px */
    }
    .navbar-brand img {
        max-height: 90px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-logo {
        max-width: 80%;
    }
}