@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Montserrat:wght@600&display=swap');

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}
s
html, body{
    height: 100%;
    background: #000000;
}


html, body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-top: 42px; /* Para que el contenido no quede oculto debajo del nav fijo #ADD8E6 */
}


/*html, body {
    min-height: 100vh;//
    background-color: #ffffff;//
    background-image: url('/images/fondo.png');//
    background-size: cover;//
    background-position: center;//
    background-repeat: no-repeat;//
    background-attachment: fixed;//
    overflow-x: hidden;//
}*/

.container{
    margin: 0 auto;
    max-width: 1200px;
}

/* --- Ajustes para el nav principal --- */

.header{
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    padding: 5px 8%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header .logo{
    cursor: pointer;
}

.header .logo img{
    width: 150px;
    height: auto;
    transition: all 0.3s;
}

.header .logo img:hover{
    transform: scale(1.4);
}
.header .nav-links{
    list-style: none;
}

.header .nav-links li{
    display: inline-block;
    padding: 0 20px;   
}

.header .nav-links li:hover,
.overlay a:hover{
    transform: scale(1.25);
    transition: all 0.5s ease 0s;
}

.header .nav-links a{
    font-size: 20px;
    color: #000000;
}
.header .nav-links li a:hover{
    color: #383838;
}

.menu {
    display:none;
}


.header .btn button{
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    padding: 20px 20px;
    background-color: #25D366;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}

/* Botón flotante / fijo de Chat Bot IA con imagen */
/* Botón Chat Bot IA (WhatsApp) ajustado */
.chat-bot-btn {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 150px;
    height: 150px;
    display: block;
    cursor: pointer;
    z-index: 10001;
    text-decoration: none;
    border-radius: 50%;
    /* sin fondo: solo imagen */
    overflow: visible;
}
/* Ondas (olas) alrededor del borde */
.chat-bot-btn::before,
.chat-bot-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 4px solid #25D366;
    border-radius: 50%;
    opacity: 0;
    animation: chatWave 2.2s ease-out infinite;
    pointer-events: none;
}
.chat-bot-btn::after { animation-delay: 1.1s; }
@keyframes chatWave {
    0% { transform: scale(.75); opacity: .55; }
    55% { opacity: .25; }
    70% { opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}
.chat-bot-btn .max-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    z-index: 2; /* encima de las ondas */
}
.chat-bot-btn .max-2 { opacity: 0; }
.chat-bot-btn:hover .max-1,
.chat-bot-btn:active .max-1 { opacity: 0; }
.chat-bot-btn:hover .max-2,
.chat-bot-btn:active .max-2 { opacity: 1; }
.chat-bot-btn:hover .max-2 { transform: scale(1.03); }
/* Intensificar ondas al hover */
.chat-bot-btn:hover::before,
.chat-bot-btn:hover::after { animation-duration: 1.4s; }

/* Estado móvil: botón fijo abajo a la derecha */
@media (max-width: 900px) {
    .chat-bot-btn { bottom: 14px; right: 14px; width: 90px; height: 90px; }
    .chat-bot-btn::before, .chat-bot-btn::after { border-width: 3px; }
    .header .btn { display: none !important; }
}

/* Eliminada animación previa del círculo */

.header .menu button{
    margin-left: 20px;
    font-weight: 700;
    color: #000000;
    padding: 9px 25px;
    background: #eceff1;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}

.header .btn button:hover {
    background-color: #000000;
    color: #e0e0e0;
    transform: scale(1.1);
}

.header .menu button:hover{
    background-color: #e2f1f8;
    color: #000000;
    transform: scale(1.1);
}

@media screen and (max-width: 901px){
    .nav-links, .btn {
        display: none;
    }
    .menu {
        display: inherit;
        z-index: 9999; 
    }
}

/* --- Ajustes para el menu responsive del nav --- */

.header a{
    text-decoration: none;
}

.header .overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 9999; /* Aumenta el z-index para que quede por encima de todo */
    left: 0;
    top: 0;
    background-color: rgba(81, 255, 0, 0.932);
    overflow: hidden;
    transition: all 0.3s ease 0s;
}

.header .overlay .overlay-content{
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;    
}

.header .overlay a{
    padding: 15px;
    font-size: 36px;
    display: block;
    transition: all 0.3s ease 0s;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgb(0, 0, 0);
}
.header .overlay a:hover,
.header .overlay a:focus{
    color: #ffffff;
}

.header .overlay .close{
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 65px;
}

@media screen and (max-height:450px) {
    .header .overlay a{
        font-size: 20px;
    }
    .header .overlay .close{
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}
/* --- fin de Ajustes para el menu responsive del nav --- */

/* --- Ajustes para el footer responsive  --- */

.footer{
    margin-top: auto;
    position: relative;
    width: 100%;
    background: #ffffff;
    min-width: 100px;
    padding: 20px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.social-icon{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 10px 5px;
    flex-wrap: wrap;
}

.icon-element-footer{
    list-style: none;
}

.icon-footer{
    color: black;
    font-size: 32px;
    display: inline-block;
    margin: 0 10px;
    transition: 0.3s ease 0s;
}

.icon-footer:hover{
    color: #10bb00;
    transform: translateY(-18px);
}

.menu-footer{
    display: flex;
    justify-content: center;
    position: relative;
    align-items: center;
    margin: 10px 0;
    flex-wrap: wrap;
}

.menu-element-footer{
    list-style: none;
}

.menu-icon-footer{
    color: black;
    font-size: 20px;
    display: inline-block;
    text-decoration: none;
    margin: 5px 10px;
    opacity: 0.6;
    transition: 0.3s ease 0s;
}

.menu-icon-footer:hover{
    color: #000000;
    transform: scale(1.3);
    opacity: 1;
}

.text-footer{
    color: black;
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 20px;
}

.icon-footer ion-icon {
    font-size: 32px; /* O el tamaño que desees */
    width: 32px;
    height: 32px;
}

/* --- fin Ajustes para el footer responsive --- */

button, a, .btn, .btn-1, .btn-2 {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.nav-links a.active,
.menu-footer a.active {
    color: #000000 !important; /* O el color que prefieras */
    text-decoration: underline; /* Opcional */
    text-decoration-color: #000000;
    text-underline-offset: 15px; /* más separada del texto */
    text-decoration-thickness: 4px; /* línea un poco más marcada */
}

.overlay-content a.active{
    color: #ffffff !important; /* O el color que prefieras */
    text-decoration: underline; /* Opcional */
    text-decoration-color: #ffffff;
    text-underline-offset: 15px; /* más separada del texto */
    text-decoration-thickness: 8px; /* línea un poco más marcada */
}
.header .overlay {
    
    background: #000000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.nav-links .contacto {
    background: #000000;
    color: #ffffff !important;
    padding: 8px 15px;
    border-radius: 50px;
    transition: all 0.3s ease 0s;
}
.nav-links .contacto:hover {
    background: #d3d3d3;
    border: 1px solid #afafaf;
    color: #000000 !important;
    padding: 8px 15px;
    border-radius: 50px;
    transition: all 0.3s ease 0s;
}

/* --- Login FAB y modal --- */
.login-fab{
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 10002;
    transition: background .2s, color .2s, transform .2s;
}
.login-fab:hover{ background:#000; color:#fff; transform: translateY(-2px); border: 2px solid #fff;}
.login-fab ion-icon{ font-size: 26px; }

.login-modal{ position: fixed; inset:0; display:none; z-index:10003; }
.login-modal.open{ display:block; }
.login-modal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.6); }
.login-modal__dialog{ position:relative; margin:10vh auto; max-width:420px; background:#fff; color:#000; border-radius:12px; padding:22px; box-shadow:0 10px 30px rgba(0,0,0,.25); }
.login-modal__close{ position:absolute; top:10px; right:12px; font-size:26px; background:transparent; border:none; color:#000; cursor:pointer; }
.login-modal form{ display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.login-modal input{ width:100%; padding:10px 12px; border:1px solid #ccc; border-radius:8px; }
.btn-login-submit, .btn-go-presupuesto, .btn-logout{ background:#000; color:#fff; border:none; border-radius:10px; padding:10px 14px; cursor:pointer; }
.btn-login-submit:hover, .btn-go-presupuesto:hover, .btn-logout:hover{ background:#1f1f1f; }
.login-help{ font-size:12px; color:#555; margin-top:4px; }
/* Respeta el atributo hidden para ocultar nodos del modal */
.login-modal [hidden]{ display:none !important; }