﻿/* Main: ocupa el resto y hace scroll interno si hace falta */
/*main {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 2rem;
}
*/
a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}
/*#endif*/

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column,
    .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

/* Global logo style */
.coregreen-logo {
    height: 48px;
    width: auto;
    display: block;
    margin: 0 auto 1rem;
    vertical-align: middle;
}

/* Sidebar genérico */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #000000 20%, #4ca1af 100%);
    min-height: 100vh;
}
/* Offcanvas-body cleanup */
.offcanvas-body {
    padding: 0;
}

/* Navigation menu in sidebar */
.sidebar .nav {
    display: flex;
    flex-direction: column;
}

.sidebar .nav-link {
    padding: 0.5rem 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

    .sidebar .nav-link.active {
        background-color: rgba(255,255,255,0.1);
        font-weight: bold;
    }

    .sidebar .nav-link .oi {
        margin-right: 0.5rem;
        font-size: 1.2rem;
    }

/* Carousel image opacity */
.carousel-item img {
    opacity: 1.0;
}

/* Aerotermia banner styles */
.aerotermia-banner {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.banner-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.aerotermia-banner .introduccion {
    margin-top: 0.25rem;
}

/* Justified text */
.text-justify {
    text-align: justify;
}

    #bannerCarousel .carousel-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

/* Iconos sociales en top bar */
.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Ajuste extra para navbar superior */
.navbar.position-relative {
    min-height: 56px; /* ajusta si quieres más alto */
}
/* Footer */
.footer {
    border-top: 1px solid #dee2e6;
}

    .footer ul li a:hover {
        text-decoration: underline;
    }

    .footer button {
        white-space: nowrap;
    }

/* Top nav */
.position-sticky {
    position: sticky;
}

/* Sidebar fijo desktop */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 240px;
    overflow-y: auto;
    padding-top: 1rem;
    z-index: 100;
}

/* Contenido desplazable */
.content-wrapper {
    margin-left: 0; /* móvil */
}

/* En desktop, deja espacio para el sidebar */
@media (min-width: 768px) {main
    .content-wrapper {
        margin-left: 240px;
    }
}

/* Social icons */
.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Footer */
.footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    text-align: center;
}
/* Vídeo ocupa todo el ancho y altura fija */
.banner-video {
    width: 80%;
    height: 80%; /* misma altura que el contenedor */
    object-fit: cover; /* recorta sin distorsionar */
}
/* Por defecto en móvil (sidebar oculto), ocupa todo */
.flex-fill {
    margin-left: 0;
}

/* En escritorio (>=768px), deja hueco para el sidebar de 240px */
@media (min-width: 768px) {
    .flex-fill {
        margin-left: 240px;
    }
}

.page-container {
    position: relative; /* necesario para el sello absoluto */
}

/* Sello tipo tampón */
.stamp {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border: 3px dashed #c00;
    color: #c00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(15deg);
    background-color: rgba(255,255,255,0.8);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    pointer-events: none; /* que no interfiera con clics */
    z-index: 1000;
}
.flex-fill {
    margin-left: 0; /* móvil */
}

@media (min-width: 768px) {
    .flex-fill {
        margin-left: 240px; /* ancho del sidebar */
    }
}
/* Reset scroll solo para la página de presupuesto */
/*.page-presupuesto {*/
    /* deja que la página crezca sin limitaciones */
    /*overflow: visible !important;
}*/

    /* Sobre-escribe cualquier overflow o height forzado en <main> */
    /*.page-presupuesto main {
        overflow: visible !important;
        height: auto !important;
    }*/

/* Ahora el documento entero hace scroll */
html, body {
    height: auto;
    overflow-y: auto;
}

/* Asegura que main no limite nada */
main {
    height: auto;
    overflow: visible;
    padding: 1rem;
}

/* Contenedor con fondo */
.banner-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* altura mínima para que se vea bien */
    min-height: 250px;
    margin-bottom: 1.5rem; /* equivalente a mb-4 */
}

    /* Capa semitransparente sobre la imagen */
    .banner-bg::before {
        content: "";
        position: absolute;
        inset: 0; /* top/right/bottom/left: 0 */
        background: rgba(255, 255, 255, 0.7); /* blanco al 70% */
    }

    /* Contenido de texto, por encima del overlay */
    .banner-bg .banner-content {
        position: relative;
        z-index: 1;
        padding: 1.5rem; /* separa del borde */
        text-align: justify;
    }

/* Contenedor general, si quieres márgenes o bg específicos */
.custom-banner {
    margin-bottom: 1rem; /* ajusta separación */
}

/* Wrapper para el img, centra horizontalmente */
.custom-banner-img-wrapper {
    text-align: center; /* centra la img en línea */
    margin-bottom: 0.5rem; /* espacio bajo la imagen */
}

/* Control fino de tamaño */
.custom-banner-img {
    width: 30%; /* ejemplo: ocupa el 60% del ancho del contenedor */
    max-width: 400px; /* nunca supere 400px */
    height: auto; /* mantiene la proporción */
}/* Wrapper para el img, centra horizontalmente */
.custom-banner-img-wrapper {
    text-align: center; /* centra la img en línea */
    margin-bottom: 0.5rem; /* espacio bajo la imagen */
}

/* Control fino de tamaño */
.custom-banner-img {
    width: 30%; /* ejemplo: ocupa el 60% del ancho del contenedor */
    max-width: 400px; /* nunca supere 400px */
    height: auto; /* mantiene la proporción */
}

/* Texto bajo la imagen */
.custom-banner-text h2 {
    margin-top: 0; /* elimina margen extra */
    margin-bottom: 0.5rem;
}

.custom-banner-text p {
    margin-bottom: 0; /* elimina margen si no quieres espacio extra */
}


/* Texto bajo la imagen */
.custom-banner-text h2 {
    margin-top: 0; /* elimina margen extra */
    margin-bottom: 0.5rem;
}

.custom-banner-text p {
    margin-bottom: 0; /* elimina margen si no quieres espacio extra */
}

/* Segundo banner: wrapper que centra la imagen */
.custom-banner2-img-wrapper {
    text-align: center; /* centra la img en línea */
    margin-bottom: 0.5rem; /* espacio bajo la imagen */
}

/* Control fino de tamaño del segundo banner */
.custom-banner2-img {
    width: 80%; /* ocupa el 40% del ancho del contenedor */
    max-width: 500px; /* nunca supere 500px */
    height: auto; /* mantiene la proporción */
}

/* Texto bajo la imagen del segundo banner */
.custom-banner2-text h2 {
    margin-top: 0; /* elimina margen extra */
    margin-bottom: 0.75rem; /* un poco más de espacio bajo el título */
}

.custom-banner2-text p {
    margin-bottom: 1rem; /* espacio tras el párrafo */
    text-align: justify; /* justifica el texto */
}

/* Contenedor de iconos responsivo */
.icon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

/* Iconos: tamaño base 64 x 64, pero reducen en pantallas pequeñas */
.icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* Ajustes responsivos */
@media (max-width: 1400px) {
    .icon-img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 992px) {
    .icon-img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .icon-img {
        width: 100px;
        height: 100px;
    }
}
.metric-box {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.05);
}

.metric-icon {
    font-size: 1.5rem;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: bold;
}

.metric-label {
    font-size: 0.875rem;
    color: #555;
}

@media (prefers-color-scheme: dark) {
    .metric-box {
        background-color: rgba(0,0,0,0.6);
    }

    .metric-label {
        color: #bbb;
    }
}
.process-icon {
    font-size: 3.5rem; /* antes: 2.5rem */
    transition: color .2s;
}

/* Mantén el resto igual */
.process-step {
    background-color: rgba(255,255,255,0.55);
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    transition: transform .2s;
}

    .process-step:hover {
        transform: translateY(-0.5rem);
    }

    .process-step h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .process-step ul li {
        margin-bottom: 0.5rem;
    }

/* Fondo atenuado para Proceso paso a paso */
.page-proceso {
    /* Primer parámetro: capa negra al 60%,
     segundo: la imagen de fondo */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/images/AereaSesRovires.JPG') center/cover no-repeat;
    min-height: 100vh;
    position: relative;
}

/* Tu contenido sigue aquí, sin cambiar */
.page-proceso-content {
    position: relative;
    z-index: 1;
}
