/* ============================================
   ADE - Administración de Edificios
   Landing Page Styles
   ============================================ */

:root {
    --ade-primary: #0f4e98;
    --ade-primary-dark: #0a3a70;
    --ade-dark: #161e2d;
    --ade-gray: #5c6368;
    --ade-gray-light: #a3abb0;
    --ade-light: #f7f7f7;
    --ade-white: #ffffff;
    --ade-accent: #ee6742;
}

/* ============================================
   HERO SECTION
   ============================================ */
.ade-hero {
    background: linear-gradient(
        135deg,
        var(--ade-light) 0%,
        var(--ade-white) 100%
    );
    padding: 0 0 80px;
    position: relative;
}

.ade-badge {
    display: inline-block;
    background: var(--ade-primary);
    color: var(--ade-white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.ade-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--ade-dark);
    line-height: 1.2;
    margin-bottom: 10px;
}

.ade-brand {
    color: var(--ade-dark);
}

.ade-brand-accent {
    color: var(--ade-primary);
}

/* Texto Rotativo */
.ade-rotating-text {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.ade-rotate-word {
    color: var(--ade-primary);
    font-weight: 700;
    display: inline-block;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    min-width: 140px;
}

.ade-rotate-suffix {
    color: var(--ade-gray);
}

.ade-hero-subtitle {
    font-size: 1.25rem;
    color: var(--ade-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.ade-hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ade-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* ============================================
   BUTTONS
   ============================================ */
.ade-btn-primary {
    background: var(--ade-primary);
    color: var(--ade-white);
    border: 2px solid var(--ade-primary);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ade-btn-primary:hover {
    background: var(--ade-primary-dark);
    border-color: var(--ade-primary-dark);
    color: var(--ade-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 78, 152, 0.3);
}

.ade-btn-outline {
    background: transparent;
    color: var(--ade-dark);
    border: 2px solid var(--ade-dark);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ade-btn-outline:hover {
    background: var(--ade-dark);
    color: var(--ade-white);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.ade-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ade-dark);
    margin-bottom: 15px;
}

.ade-section-subtitle {
    font-size: 1.125rem;
    color: var(--ade-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.ade-features {
    padding: 100px 0;
    background: var(--ade-white);
}

.ade-feature-card {
    background: var(--ade-white);
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.ade-feature-card:hover {
    border-color: var(--ade-primary);
    box-shadow: 0 15px 40px rgba(15, 78, 152, 0.1);
    transform: translateY(-5px);
}

.ade-feature-icon {
    /* Fondo removido para estilo más limpio */
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    text-align: center;
}

.ade-feature-icon i {
    font-size: 42px; /* Aumentado de 28px */
    color: var(--ade-primary);
    transition: all 0.3s ease;
}

.ade-feature-card:hover .ade-feature-icon {
    transform: scale(1.1);
}

.ade-feature-card:hover .ade-feature-icon i {
    color: var(--ade-accent); /* Cambio de color sutil al hover */
}

.ade-feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ade-dark);
    margin-bottom: 15px;
}

.ade-feature-desc {
    font-size: 0.95rem;
    color: var(--ade-gray);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   MOCKUPS SECTION
   ============================================ */
.ade-mockups {
    padding: 100px 0;
    background: var(--ade-light);
}

.ade-mockup-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.ade-mockup-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ade-mockup-card:hover img {
    transform: scale(1.05);
}

.ade-mockup-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(22, 30, 45, 0.9), transparent);
    padding: 30px 20px 20px;
}

.ade-mockup-overlay span {
    color: var(--ade-white);
    font-size: 1.125rem;
    font-weight: 600;
}

/* ============================================
   STATS SECTION
   ============================================ */
.ade-stats {
    padding: 80px 0;
    background: var(--ade-primary);
}

.ade-stat-item {
    padding: 20px;
}

.ade-stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--ade-white);
    line-height: 1;
    margin-bottom: 10px;
}

.ade-stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.ade-contact {
    padding: 100px 0;
    background: var(--ade-white);
}

.ade-contact-card {
    background: var(--ade-white);
    border: 1px solid #e4e4e4;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.ade-contact .form-label {
    font-weight: 500;
    color: var(--ade-dark);
    margin-bottom: 8px;
}

.ade-contact .form-control {
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.ade-contact .form-control:focus {
    border-color: var(--ade-primary);
    box-shadow: 0 0 0 3px rgba(15, 78, 152, 0.1);
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.ade-whatsapp-btn {
    position: fixed;
    bottom: 100px; /* Por encima del botón scroll-to-top */
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ade-white);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 99999; /* Por encima de todo, incluyendo header y footer */
}

.ade-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: var(--ade-white);
}

.ade-whatsapp-btn:focus {
    color: var(--ade-white);
    outline: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .ade-hero {
        padding: 100px 0 60px;
    }

    .ade-hero-title {
        font-size: 2.5rem;
    }

    .ade-hero-image {
        margin-top: 40px;
    }

    .ade-section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .ade-hero-title {
        font-size: 2rem;
    }

    .ade-hero-cta {
        flex-direction: column;
    }

    .ade-hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    .ade-contact-card {
        padding: 30px 20px;
    }

    .ade-stat-number {
        font-size: 2.5rem;
    }

    .ade-whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}
