/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body, html {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 3rem 0;
    text-align: center;
}

h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.titulo-HL {
    font-weight: bold; /* Negrita */
    color: #2a52b0; /* Color del texto */
}

/* Estilos del header */
header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

header.hidden {
    transform: translateY(-100%);
}

.header-placeholder {
    height: 70px;
}

header .logo {
    height: 30px;
}

header .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: #1e90ff;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

/* Estilos de la sección hero */
.hero {
    background: #2a52b0;
    color: #fff;
    padding: 2.5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: #d01a67;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ff69b4;
}

/* Estilos de los botones de tipo de usuario */
#user-type-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.user-type-btn {
    background-color: #2a52b0;
    color: white;
    border: none;
    padding: 15px 20px;
    margin: 10px 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    font-size: 16px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.user-type-btn.active {
    background-color: #d01a67;
}

.user-type-btn:not(.active) {
    background-color: #ccc;
}




/* Estilos del carrusel de ventajas */
#advantages {
    position: relative;
    overflow: hidden; /* Oculta cualquier contenido que salga del carrusel */
    width: 100%; /* Asegura que el carrusel ocupe el ancho completo */
}

#advantages .carousel {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%; /* Limita el ancho del carrusel */
}

.advantage-item {
    flex: 0 0 100%; /* Cada ventaja debe ocupar todo el ancho del carrusel */
    width: 100%; /* Ajusta para asegurarse que cada item tenga el tamaño correcto */
    box-sizing: border-box;
}

.advantage-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2a52b0;
}




.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

/* Estilos de la cuadrícula de funcionalidades */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.feature-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* Estilos del contenedor de video */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Estilos del modal de video */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-modal-content {
    width: 90%;
    max-width: 800px;
    height: 90%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-content iframe {
    width: 100%;
    height: 100%;
}


/* Estilos del footer */
section:last-of-type {
    margin-bottom: 4rem;
}

footer {
    background: #f4f4f4;
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
}

footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer a {
    color: #2a52b0;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ff1493;
}



.cta {
    background-color: #2a52b0;
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-btn {
    background-color: #25D366;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #128C7E;
}





@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

#whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
    text-decoration: none; /* Elimina el subrayado */
    border: none; /* Asegura que no haya bordes */
    outline: none; /* Elimina el contorno al hacer foco */
    animation: bounce 2s infinite; /* Aplica la animación de rebote */

}

#whatsapp-button:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    text-decoration: none; /* Asegura que no haya subrayado en hover */
}

#whatsapp-button i {
    line-height: 1;
    display: block; /* Asegura que el icono se comporte como un bloque */

}





/* Estilos responsivos */
@media (max-width: 768px) {
    
    #whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 15px;
        right: 15px;
    }
    
    
    section:last-of-type {
        margin-bottom: 3rem;
    }

    footer {
        margin-top: 1.5rem;
    }
    
    footer .container {
        justify-content: space-around;
    }

    footer a {
        margin: 10px;
    }
    
    #advantages .carousel {
        overflow-x: hidden;
    }
 
 
/*HEADER*/    
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    header nav.active {
        display: block;
    }
    
    header nav ul {
        flex-direction: column;
    }
    
    header nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active {
        color: #ff1493;
    }
    
    /* Aseguramos que los enlaces del menú no cierren el menú al hacer clic */
    header nav ul li a:active,
    header nav ul li a:focus {
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    #user-type-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .user-type-btn {
        width: 100%;
        max-width: none;
        margin-bottom: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Ocultar el botón de inicio de sesión solo en el header para dispositivos móviles */
    .header-login-button {
        display: none;
    }

    /* Asegúrate de que el menú de hamburguesa y otros elementos móviles se muestren correctamente */
    #main-nav ul {
        /* Estilos para el menú móvil */
    }

    .hamburger-menu {
        /* Estilos para el botón de hamburguesa */
    }

    /* Otros estilos móviles según sea necesario */
}


/* Estilos para el carrusel en escritorio */
@media (min-width: 769px) {
    #advantages .carousel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .advantage-item {
        flex: 0 0 calc(33.333% - 2rem);
    }

    .carousel-nav {
        display: none;
    }
}

/* Animación de fade-in */
.fade-in-section {
    opacity: 0;
    transform: translateY(20vh);
    visibility: hidden;
    transition: opacity 0.6s ease-out, transform 1.2s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* Pricing Table Styles */
#pricing {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.pricing-table {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
}

.pricing-column {
    position: relative;
    overflow: hidden;
    flex: 1;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 10px;
    min-width: 250px;
    max-width: 300px;
}

.pricing-column h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.pricing-column ul {
    list-style-type: none;
    padding: 0;
}

.pricing-column li {
    margin-bottom: 10px;
    font-size: 14px;
    text-align: left; /* Cambiado de center a left */
    padding-left: 15px; /* Añade un margen izquierdo */
}

.feature-name {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Cambiado de center a flex-start */
}

.feature-excluded {
    color: #aaa;
    text-decoration: line-through;
}

.info-icon {
    margin-left: 5px;
    cursor: pointer;
    color: #d01a67; /* Color rosa del logo de HappyLiving */
}

.quote-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    background-color: #4CAF50; /* Verde consistente con otros botones */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quote-btn:hover {
    background-color: #45a049; /* Un tono más oscuro para el hover */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .pricing-table {
        flex-direction: column;
        align-items: center;
    }

    .pricing-column {
        width: 100%;
        max-width: none;
        margin-bottom: 20px;
    }
}

.ribbon {
    position: absolute;
    right: -5px;
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px;
    height: 75px;
    text-align: right;
}

.ribbon span {
    font-size: 10px;
    font-weight: bold;
    color: #FFF;
    text-transform: uppercase;
    text-align: center;
    line-height: 20px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    width: 100px;
    display: block;
    background: #4CAF50;
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    position: absolute;
    top: 19px;
    right: -21px;
}

.ribbon span::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 100%;
    z-index: -1;
    border-left: 3px solid #4CAF50;
    border-right: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #4CAF50;
}

.ribbon span::after {
    content: "";
    position: absolute;
    right: 0px;
    top: 100%;
    z-index: -1;
    border-left: 3px solid transparent;
    border-right: 3px solid #4CAF50;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #4CAF50;
}

.feature-included .feature-name {
    cursor: pointer;
}

.feature-included .feature-name:hover {
    text-decoration: underline;
}

#main-nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#main-nav ul li {
    margin: 0 10px;
}

#main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

#main-nav ul li a:hover {
    color: #007bff;
}

.login-btn {
    font-weight: bold;
    color: white;
    background-color: #d01a67; /* Este es el color rosa que estabas usando antes */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #ff69b4; /* Un tono más claro para el efecto hover */
    color: white; /* Mantiene el texto blanco incluso en hover */
}

/* Si es necesario ser más específico para evitar conflictos */
#main-nav ul li .login-btn {
    font-weight: bold;
    color: white;
}

#main-nav ul li .login-btn:hover {
    color: white;
}

.advantages-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.advantages-group {
    display: none;
    width: 100%;
}

.advantages-group.active {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.advantage-item {
    flex-basis: calc(33.333% - 20px);
    margin: 10px;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.advantage-item i {
    font-size: 2em;
    margin-bottom: 10px;
    color: #007bff;
}

.advantage-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.advantage-btn {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #f8f9fa;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.advantage-btn.active {
    background-color: #007bff;
    color: white;
}

@media (max-width: 768px) {
    .advantage-item {
        flex-basis: 100%;
    }
}

/* Estilos para el formulario de cotización */
.cotizacion-section {
    padding: 50px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 70px); /* Ajusta esto según la altura de tu header */
    display: flex;
    flex-direction: column;
}

.cotizacion-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-block {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.edificio-group {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    position: relative;
}

.edificio-group + .edificio-group {
    margin-top: 30px;
}

#agregarEdificio {
    margin-bottom: 20px;
    background-color: #1e90ff;
    margin-right: 10px;
    border: none; /* Eliminamos el borde negro */
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #45a049;
}

.remove-edificio {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.remove-edificio i {
    font-size: 14px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .cotizacion-form {
        padding: 20px;
    }

    .form-block {
        padding: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    #agregarEdificio,
    .submit-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Asegurarse de que el footer esté al final de la página */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Estilos para intl-tel-input */
.iti {
    width: 100%;
}
.iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/img/flags.png");
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/img/flags@2x.png");
    }
}

.error-message {
    color: #ff0000;
    font-size: 0.8em;
    position: absolute;
    bottom: -20px;
    left: 0;
}

input.invalid {
    border-color: #ff0000;
}