/*
Theme Name: template-condo-updated
Description: Diseño moderno y creativo con efectos glassmorphism, gradientes y animaciones elegantes.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- VARIABLES --- */
:root {
    --text-light: #ffffff;
    --text-dark: #374151;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-smooth: 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- RESET Y GENERALS --- */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
    color: var(--text-dark); 
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

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

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 { 
    color: #1f2937; 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem;
}

h3 { 
    color: #374151; 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: 0.75rem; 
}

p { 
    font-size: 1rem; 
    line-height: 1.8; 
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

/* --- ANIMACIONES BASE --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* --- HEADER: GLASSMORPHISM STYLE --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

.top-row { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--hover) 100%);
    padding: 10px 0; 
    font-size: 13px;
}

.top-row a {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.top-row a:hover {
    color: #fff !important;
}

.top-right { display: flex; align-items: center; justify-content: flex-end; }
.language-selector { display: flex; align-items: center; gap: 12px; }
.lang-item img { 
    width: 24px; 
    border-radius: 4px;
    opacity: 0.8; 
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}
.lang-item:hover img { 
    opacity: 1; 
    transform: scale(1.1);
}
.lang-divider {
    color: rgba(255,255,255,0.4);
}

.logo-row { 
    padding: 1rem 0; 
    background: transparent;
}

.logo-row .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo-empresa img { 
    max-height: 50px;
    transition: transform var(--transition-smooth);
}

.logo-empresa img:hover {
    transform: scale(1.2);
}

.img-app-link {
    max-height: 40px;
    opacity: 0.7;
    transition: all var(--transition-smooth);
}

.img-app-link:hover {
    opacity: 1;
}

/* --- HEADER: MENU MODERNO --- */
.menu-row { 
    background: transparent;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.menu-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-list { 
    display: flex; 
    list-style: none; 
    margin: 0; 
    padding: 0;
    gap: 0.25rem;
}

.nav-list li a {
    display: block; 
    padding: 0.75rem 1.25rem; 
    color: var(--text-dark) !important;
    text-decoration: none; 
    font-size: 0.875rem; 
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
    position: relative;
}

.nav-list li a:hover { 
    background: var(--primary);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.menu-app-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--hover) 100%);
    color: #fff;
    border: none;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 50px;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.menu-app-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width var(--transition-smooth);
    z-index: 0;
}

.menu-app-link:hover::before {
    width: 100%;
}

.menu-app-link:hover {
    transform: translateY(-3px);
    color: #fff !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45);
}

/* --- HERO ÉPICO --- */
.hero { 
    min-height: 85vh;
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center;
    padding: 4rem 0;
    position: relative;
}

.hero::before { 
    content: ""; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(
        135deg, 
        rgba(15, 23, 42, 0.85) 0%, 
        rgba(30, 58, 138, 0.6) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.hero .container {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 { 
    color: #fff; 
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    max-width: 700px;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--hover));
    margin-top: 1.5rem;
    border-radius: 2px;
}

.hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 500px;
    margin-top: 1rem;
    line-height: 1.6;
}

/* --- ACTION BAR MODERNA --- */
.action-bar { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--hover) 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.action-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.action-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.action-content p { 
    color: #fff; 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin: 0; 
}

.action-content span { 
    display: block; 
    font-size: 0.95rem; 
    color: rgba(255,255,255,0.8); 
    margin-top: 0.25rem;
    font-weight: 400;
}

/* --- SECCIÓN SOBRE NÓS --- */
.about-us { 
    padding: 6rem 0; 
    text-align: center;
    background: #fff;
}

.about-center-wrap { 
    max-width: 800px; 
    margin: 0 auto; 
}

.about-us h2 { 
    text-transform: none; 
    font-weight: 300;
    font-size: 2.25rem;
}

.about-us h2 b { 
    color: var(--primary); 
    font-weight: 700;
    position: relative;
}

.about-us p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- SERVICIOS: CARDS MODERNAS --- */
#condo-services-block { 
    padding: 5rem 0; 
    background: var(--bg-light);
}

.services-list { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    list-style: none; 
    padding: 0; 
    margin: 0;
}

.services-list li {
    animation: fadeInUp 0.6s ease-out;
}

.services-list li:nth-child(2) { animation-delay: 0.1s; }
.services-list li:nth-child(3) { animation-delay: 0.2s; }

.service-item { 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none; 
    color: inherit;
    padding: 2rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
    transition: all var(--transition-smooth);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--hover) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.service-icon-only { 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--hover) 100%);
    border-radius: var(--radius-md);
    color: #fff; 
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.service-item:hover .service-icon-only {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.service-text h3 { 
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    text-transform: none;
    transition: color var(--transition-smooth);
}

.service-item:hover .service-text h3 {
    color: var(--primary);
}

.service-text p { 
    font-size: 0.95rem; 
    line-height: 1.6; 
    color: var(--text-muted); 
    margin: 0;
    transition: color var(--transition-smooth);
}

/* --- ACTION BAR BIG: PARALLAX MODERNO --- */
.action-bar-big { 
    padding: 8rem 0; 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    color: #fff; 
    text-align: center;
    position: relative;
}

.action-bar-big::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.7) 100%);
}

.action-bar-big .container {
    position: relative;
    z-index: 2;
}

.action-big-content h2 { 
    color: #fff !important; 
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- BOTONES MODERNOS --- */
.btn-action { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-smooth);
    color: #fff !important;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #fff;
    transition: width var(--transition-smooth);
    z-index: -1;
}

.btn-action:hover::before {
    width: 100%;
}

.btn-action:hover { 
    color: var(--primary) !important;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Variante sólida para action-bar */
.action-bar .btn-action {
    background: #fff;
    color: var(--primary) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.action-bar .btn-action::before {
    background: rgba(0,0,0,0.1);
}

.action-bar .btn-action:hover {
    color: var(--primary) !important;
    transform: translateY(-3px) scale(1.02);
}

/* --- FOOTER ELEGANTE --- */
.site-footer { 
    background: linear-gradient(180deg, #1a1a2e 0%, #16162a 100%);
    color: #a0aec0; 
    font-size: 0.95rem; 
    line-height: 1.7;
}

.footer-top { 
    padding: 5rem 0; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr; 
    gap: 4rem; 
}

.footer-col h4 {
    color: #fff; 
    font-size: 1rem;
    font-weight: 700; 
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 1rem;
}

.footer-col h4::after { 
    content: ""; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 40px; 
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--hover));
    border-radius: 2px;
}

.footer-info, .footer-links { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.footer-info li, .footer-links li { 
    margin-bottom: 1rem; 
    display: flex; 
    align-items: flex-start; 
    gap: 0.75rem; 
}

.footer-info a, .footer-links a { 
    color: #a0aec0; 
    text-decoration: none; 
    transition: all var(--transition-smooth);
    position: relative;
}

.footer-info a:hover, .footer-links a:hover { 
    color: #fff;
    padding-left: 0.5rem;
}

.footer-info li i, .footer-links li i {
    color: var(--primary);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.highlight-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.5rem;
}

.footer-bottom { 
    background: rgba(0,0,0,0.3);
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.bottom-wrap { 
    display: flex; 
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.bottom-wrap .copy {
    font-size: 0.9rem;
    color: #718096;
}

.bottom-wrap .copy strong {
    color: #fff;
}

.legal-links {
    font-size: 0.85rem;
}

.legal-links a {
    color: #718096;
    text-decoration: none;
    transition: color var(--transition-smooth);
}

.legal-links a:hover {
    color: var(--primary);
}

.dev-by {
    font-size: 0.8rem;
    color: #4a5568;
}

/* ================================================================
   MOBILE SIDEBAR MENU
   ================================================================ */

/* Botón hamburguesa - oculto en desktop */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación hamburguesa cuando está activo */
.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Overlay oscuro */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: var(--bg-light);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.sidebar-close:hover {
    color: var(--text-dark);
}

/* Menú dentro del sidebar */
.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 2rem;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    font-size: 1rem;
}

/* ================================================================
   MEDIA QUERIES
   ================================================================ */

@media (max-width: 992px) {
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 3rem;
    }
    .footer-col h4::after { 
        left: 50%; 
        transform: translateX(-50%); 
    }
    .footer-info li { 
        justify-content: center; 
    }
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Menú móvil a partir de 1171px */
@media (max-width: 1171px) {
    /* Ocultar menú de navegación */
    .nav-menu {
        display: none;
    }
    
    /* Mostrar botón hamburguesa */
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    /* Header & Menu - Sidebar móvil */
    .site-header {
        position: relative;
    }
    
    .menu-flex { 
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .logo-row .container { 
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem; 
    }

    /* Hero */
    .hero {
        min-height: 70vh;
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    /* Action Bars */
    .action-flex { 
        flex-direction: column; 
        text-align: center; 
        gap: 1.5rem; 
    }
    
    .action-bar .btn-action { 
        width: 100%; 
        max-width: 280px; 
    }
    
    .action-big-content h2 { 
        font-size: 1.5rem; 
    }

    /* Servicios */
    #condo-services-block { 
        padding: 3rem 0; 
    }
    
    .services-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-top {
        padding: 3rem 0;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
}

/* --- UTILITY CLASSES --- */
.hidden-xs {
    display: inline;
}

@media (max-width: 576px) {
    .hidden-xs {
        display: none;
    }
}
