/* Aura Experience Center - web.css
   Hoja de estilos principal (Formato Expandido)
*/

:root {
    --aura-blue: #1b3655;
    --aura-brand-blue: #2c4d9e;
    --aura-metrics-bg: #00428f;
    --aura-orange: #e39c42;
    --aura-text-dark: #303030;
    --aura-dark-translucent: rgba(0, 0, 0, 0.6);
    --aura-input-bg: #e9eff7;
    --footer-dark-bg: #161616;
    --footer-blue-bg: #00428f;
    /* Variables para Alertas */
    --success-bg: #d4edda;
    --success-text: #155724;
    --error-bg: #f8d7da;
    --error-text: #721c24;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--aura-blue);
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    /* Refuerzo para evitar gestos de zoom en algunos navegadores móviles */
    touch-action: pan-x pan-y;
}

/* --- Imágenes Decorativas --- */

.corner-bg {
    position: fixed;
    bottom: 0;
    width: auto;
    z-index: 0;
    pointer-events: none;
}

.corner-left {
    left: -40px;
}

.corner-right {
    right: -40px;
}

/* --- Header / Hero --- */

.hero-container {
    position: relative;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: var(--aura-dark-translucent);
    margin: 60px 4% 0 4%;
    height: 160px;
    border-radius: 80px;
    padding: 0 60px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

.nav-logo {
    width: 266px;
    object-fit: contain;
}

.contact-info {
    display: flex;
    gap: 100px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 18px;
}

.google-maps-btn {
    background-color: white;
    color: #333;
    padding: 10px 24px;
    border-radius: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s;
}

.google-maps-btn:hover {
    transform: scale(1.05);
}

/* --- Barra de Características --- */

.feature-bar-wrapper {
    position: relative;
    margin-top: 225px;
    padding: 0 6%;
    z-index: 2;
}

.feature-bar {
    background: white;
    border-radius: 120px;
    height: 199px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.feature-item {
    text-align: center;
    flex: 1;
}

.feature-icon-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.feature-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--aura-blue);
    text-transform: uppercase;
    line-height: 1.2;
}

/* --- Sección Información --- */

.info-section {
    position: relative;
    margin-top: 150px;
    margin-bottom: 50px;
    padding: 0 8%;
    z-index: 1;
}

.info-image-frame {
    position: relative;
    display: inline-block;
    margin-top: 20px;
    margin-left: 20px;
}

.info-image-frame::before {
    content: "";
    position: absolute;
    top: -35px;
    left: -35px;
    right: 120px;
    bottom: -35px;
    border: 3px solid white;
    z-index: 0;
}

.info-main-img {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
}

.info-content-col {
    padding-left: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-logo-title {
    max-width: 266px;
    margin-bottom: 45px;
}

.info-paragraph {
    color: white;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 35px;
}

.highlight-orange {
    color: var(--aura-orange);
    font-weight: 700;
}

/* --- Galería y Overlay --- */

.gallery-section {
    padding: 33px 35px;
    margin-top: 215px;
    background-color: #fff;
    z-index: 1;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.gallery-item {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 54, 85, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.gallery-overlay svg {
    stroke: #FFFFFF !important;
    width: 75px !important;
    height: 75px !important;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay svg {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-grid.diseno2 {
    grid-template-rows: 318px 411px;
    gap: 33px;
}

.gallery-grid.diseno2 .gal-1,
.gallery-grid.diseno2 .gal-2,
.gallery-grid.diseno2 .gal-4 {
    grid-column: span 3;
    height: 318px;
}

.gallery-grid.diseno2 .gal-2 {
    grid-column: span 4;
}

.gallery-grid.diseno2 .gal-3 {
    grid-column: span 2;
    grid-row: span 2;
    height: 762px;
    z-index: 5;
}

.gallery-grid.diseno2 .gal-5,
.gallery-grid.diseno2 .gal-6,
.gallery-grid.diseno2 .gal-7 {
    height: 411px;
}

.gallery-grid.diseno2 .gal-5 {
    grid-column: span 5;
}

.gallery-grid.diseno2 .gal-6 {
    grid-column: span 2;
}

.gallery-grid.diseno2 .gal-7 {
    grid-column: span 3;
}

/* --- Proyecto --- */

.project-section {
    background-color: #fff;
    padding: 100px 8% 135px 8%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.project-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 60px;
    color: var(--aura-brand-blue);
    text-transform: uppercase;
    margin-bottom: 35px;
    letter-spacing: 2px;
}

.project-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 19px;
    color: var(--aura-text-dark);
    line-height: 1.6;
    max-width: 950px;
    margin: 0 auto;
    font-weight: 600;
}

.project-highlight {
    color: var(--aura-brand-blue);
    font-weight: 700;
}

.project-link {
    font-size: 25px;
    color: var(--aura-brand-blue);
    font-weight: 700;
    text-decoration: none;
}

/* --- Métricas --- */

#metrics-section {
    background-color: var(--aura-metrics-bg);
    background-image: url('/assets/images/bgLeft.webp'),
        url('/assets/images/bgRight.webp');
    background-position: left bottom, right bottom;
    background-repeat: no-repeat;
    background-size: auto 100%;
    position: relative;
    padding: 100px 0 0 0;
    color: white;
    z-index: 1;
}

.metric-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
}

.metric-number .counter {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 75px;
    font-weight: 400;
    line-height: 1;
}

.metric-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    line-height: 1;
}

/* --- Formulario y Alertas --- */

.contact-wrapper {
    padding: 0 4%;
    position: relative;
    z-index: 2;
}

.contact-wrapper:before {
    content: "";
    position: absolute;
    top: 82px;
    left: 0;
    bottom: 82px;
    width: 100%;
    background: #FFF;
    z-index: -1;
}

.contact-card {
    background: white;
    border-radius: 40px;
    padding: 70px 60px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 1600px;
    margin: 0 auto;
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    color: var(--aura-brand-blue);
    text-transform: uppercase;
}

.title-logo {
    position: relative;
    top: -5px;
}

.contact-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    color: #616161;
    margin-bottom: 60px;
}

.form-group-floating {
    position: relative;
}

.contact-form .form-control {
    background-color: var(--aura-input-bg);
    border: none;
    border-radius: 30px;
    padding: 22px 30px 10px 30px;
    height: 65px;
}

.contact-form label {
    position: absolute;
    left: 30px;
    top: 19px;
    color: #959595;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group-floating .form-control:focus+label,
.form-group-floating .form-control:not(:placeholder-shown)+label {
    top: -15px;
    left: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--aura-brand-blue);
    background: white;
    padding: 0 10px;
}

.btn-aura-submit {
    background-color: #00428f;
    color: #fff;
    border-radius: 12px;
    padding: 0 60px;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    height: 65px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-aura-submit:hover {
    background-color: #002d62;
    box-shadow: 0 8px 20px rgba(0, 45, 98, 0.3);
    transform: translateY(-2px);
}

.btn-aura-submit:focus,
.btn-aura-submit:active {
    background-color: #001a3d !important;
    color: #fff !important;
    outline: none !important;
}

/* Estilos de Alertas JSON */
.form-alert {
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.success-box {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.error-box {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.location-bar {
    min-height: 153px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 18px;
    padding: 0 20px;
}

.location-icon-img {
    height: 45px;
}

/* --- Mapa --- */

#map {
    width: 100%;
    height: 719px;
    background-color: #f5f5f5;
    z-index: 1;
}

/* --- datFooter (Informativo) --- */

.dat-footer {
    background-color: var(--footer-dark-bg);
    color: white;
    height: 448px;
    display: flex;
    align-items: center;
    padding: 0 6%;
    position: relative;
    z-index: 2;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1546px;
    width: 100%;
    margin: 0 auto;
    background-color: #161616;
}

.footer-logo-img {
    width: 266px;
    height: auto;
    display: block;
}

.footer-info-col {
    min-width: 200px;
}

.footer-title {
    font-family: 'Oswald', sans-serif;
    font-size: 27px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.footer-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-icon {
    width: 24px !important;
    height: 23px !important;
    flex-shrink: 0;
    object-fit: contain;
    margin-top: 1px;
}

.footer-text {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: white;
}

.footer-text a {
    color: white;
    text-decoration: none;
}

/* --- #footer Final: Barra Azul --- */

#footer {
    background-color: var(--footer-blue-bg);
    color: white;
    height: 116px;
    display: flex;
    align-items: center;
    padding: 0 6%;
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    position: relative;
    z-index: 2;
}

.footer-bottom-wrapper {
    max-width: 1546px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-tw-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
}

.ico-tw-img {
    height: 28px;
}

/* --- Botón de Volver Arriba --- */

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--aura-brand-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid white;
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}