/* Variables Globales de Color */
:root {
    --primary-green: #105911;
    --dark-green: #083c0a;
    --hover-green: #218838;
    --text-dark: #222222;
}

/* Espacio compensatorio para el contenido inferior */
.header-spacer {
    height: 120px;
}

/* TOP BAR */
.top-bar {
    font-size: 0.85rem;
    background-color: #f8f9fa;
}

.quote-text {
    display: inline-block;
    transition: opacity 0.5s ease-in-out;
    color: #444;
}

/* NAVBAR BASE (Móvil y Escritorio) */
/*.custom-navbar {
				background-color: #ffffff;
				transition: background 0.35s ease;
			}*/

/* Tamaño de Logo en Responsive y Desktop */
.header-logo {
    max-height: 110px;
    width: auto;
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .header-logo {
        max-height: 45px;
        /* Ajuste óptimo para pantallas pequeñas */
    }

    .custom-navbar {
        background-color: #084100;
        transition: background 0.35s ease;
    }
}

@media (max-width: 700px) {
    .custom-navbar {
        background-color: #084100;
        transition: background 0.35s ease;
    }
    .navbar-nav{
        margin-right: 0 !important;
    }
}

/* VISTA DE ESCRITORIO (min-width: 992px) */
@media (min-width: 992px) {
    .custom-navbar {
        /* Aquí se aplica la imagen de fondo de diseño personalizado */
        background-image: url('/portfolio/headerimg.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* LINKS DE NAVEGACIÓN */
.custom-navbar .nav-link {
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
    position: relative;
    transition: color 0.3s ease;
}

.custom-navbar .nav-link:hover {
    color: var(--primary-green);
}

/* Estilo para el Ítem Activo (Página Actual) */
.custom-navbar .nav-link.active {
    color: var(--primary-green) !important;
}

/* Línea inferior verde en la pestaña activa (En pantalla grande) */
@media (min-width: 992px) {
    .custom-navbar .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--primary-green);
        border-radius: 2px;
    }
}


/* BOTÓN DE TELÉFONO */
.btn-phone {
    background: linear-gradient(180deg, #105911 0%, #083c0a 100%);
    border: none;
    font-size: 0.95rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.3s ease;
}

.btn-phone:hover {
    background: linear-gradient(180deg, #187719 0%, #0c520f 100%);
    transform: translateY(-1px);
}

/* TRANSICIÓN SUAVE EN EL MENÚ HAMBURGUESA */
@media (max-width: 991.98px) {
    .custom-collapse {
        transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    }

    .navbar-nav {
        background-color: #ffffff;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

.navbar-nav {
    margin-right: 16rem;
}




/* ===================================================
   HERO SECTION - ESTRUCTURA BASE
=================================================== */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    /* Mantiene la onda dentro del contenedor */
    z-index: 1;
}

/* Capa Oscura (Overlay) para legibilidad del texto en cualquier imagen */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    /* Oscurece un 45% la imagen de fondo */
    z-index: 1;
}

/* El texto debe ir por encima de la capa oscura */
.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
    margin-left: 8rem;
    /* Espacio extra para que la curva no tape el texto */
}

.hero-title {
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .breadcrumb-item+.breadcrumb-item::before {
    content: "-";
    color: #ffffff;
    padding: 0 0.5rem;
}

/* ===================================================
   SVG WAVE DIVIDER (Curva inferior)
=================================================== */
.hero-wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    /* Por encima de la imagen y el overlay */
}

.hero-wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
    /* Altura de la curva */
}

/*
  IMPORTANTE: El atributo fill="#ffffff" del path en el SVG debe coincidir
  con el color de fondo de la siguiente sección web. Si tu siguiente sección
  es blanca, la curva se fusionará perfectamente.
*/


/* ===================================================
   IMÁGENES DE FONDO POR PÁGINA (Súper fácil de gestionar)
=================================================== */

/* Página de Servicios */
#hero-services {
    background-image: url('/assets/heros/serviceshero.png');
}

/* Página de Contacto */
#hero-contact {
    background-image: url('/assets/heros/contacthero.png');
}

/* Página About Us */
#hero-about {
    background-image: url('/assets/heros/abouthero.png');
}

/* Página Gallery */
#hero-gallery {
    background-image: url('/assets/heros/galleryhero.png');
}


/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 280px;
    }

    .hero-wave-divider svg {
        height: 40px;
        /* Hacemos la curva un poco más suave en móviles */
    }
}