/* Reset and Base Styles - Mobile Optimized */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    /* Prevent zoom on input focus on iOS */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Smooth scrolling for better mobile experience */
    scroll-behavior: smooth;
}

/* Prevent horizontal scrolling issues on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 120px;
    /* Prevent shrinking on mobile */
    flex-shrink: 0;
}

.nav-emblem {
    height: 40px;
    width: auto;
}

.nav-logo {
    height: 32px;
    width: auto;
}

.nav-brand h2 {
    color: #2563eb;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    margin-right: 120px;
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2563eb;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 120vh;
    display: flex;
    align-items: center;
    background: url('background-condominio.jpg') center/cover no-repeat;
    color: white;
    padding: 0 80px 120px 80px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.7);
    backdrop-filter: blur(2px);
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-badge {
    margin-top: 35px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.25rem;
}

.stat-item span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: slideInRight 1s ease-out;
}

.hero-image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.hero-main-icon {
    position: absolute;
    top: 55%;
    left: 55%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.rotating-gears {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotating-gears .gear-1 {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.9);
    animation: rotate-clockwise 12s linear infinite;
    position: relative;
    z-index: 2;
}

.rotating-gears .gear-2 {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.7);
    animation: rotate-counter-clockwise 8s linear infinite;
    position: absolute;
    top: 0%;
    left: 0%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

@keyframes rotate-clockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-counter-clockwise {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
    width: 140px;
    min-width: 140px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    user-select: none;
    z-index: 10;
}

.floating-card:hover {
    animation-play-state: paused;
}



.floating-card:hover {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation-play-state: paused;
}

.floating-card i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.card-1 {
    top: 0%;
    left: 25%;
    transform: translateX(-50%);
    animation-delay: 0s;
    z-index: 10;
}

.card-2 {
    top: 10%;
    right: 0%;
    animation-delay: 1s;
    z-index: 9;
}

.card-3 {
    top: 45%;
    right: -10%;
    animation-delay: 2s;
}

.card-4 {
    bottom: 0%;
    left: 75%;
    animation-delay: 0.5s;
}

.card-4 span {
    white-space: nowrap;
}

.card-5 {
    bottom: 0%;
    left: 35%;
    animation-delay: 1.5s;
}

.card-6 {
    top: 65%;
    left: -8%;
    animation-delay: 2.5s;
}

.card-7 {
    top: 25%;
    left: -8%;
    animation-delay: 3s;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}



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

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

.service-sidebar {
    position: fixed;
    top: 70px; /* Aligned with navbar bottom */
    right: -70%;
    width: 70%;
    height: calc(100vh - 70px);
    background: #f8fafc;
    color: #666666;
    z-index: 999;
    overflow-y: auto;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.service-sidebar.active {
    right: 0;
}

.sidebar-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: flex-start;
    padding: 1rem;
    border-bottom: 2px solid #66666600;
    background:#f8fafc00;
    z-index: 1001;
}

.close-btn {
    background: none;
    border: none;
    color:#666666;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    transition: 0.3s;
    color: #2563eb;
}

.sidebar-content {
    padding: 2rem;
    text-align: center;
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon i {
font-size: 4rem;
color: #2563eb;
margin-bottom: 1rem;
}

.sidebar-content h2 {
font-size: 2.5rem;
margin-bottom: 1.5rem;
color: #1e293b;
}

.service-description {
font-size: 1.1rem;
line-height: 1.6;
margin-bottom: 2rem;
opacity: 0.9;
}

.service-image {
margin: 2rem 0;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .service-sidebar {
        width: 90%;
        right: -90%;
    }
    
    .sidebar-content {
        padding: 1.5rem;
    }
    
    .service-icon i {
        font-size: 3rem;
    }
    
    .sidebar-content h2 {
        font-size: 2rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #f8fafc;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.service-card p {
    color: #666666;
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.about-features {
    list-style: none;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.about-features i {
    color: #2563eb;
}

.highlight-text {
    background-color: #2563eb;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
}

.stat h3 {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #64748b;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8fafc;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2563eb;
    margin-right: 1rem;
    width: 30px;
}

.contact-item h4 {
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #64748b;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: white;
}

/* Responsive Design */

/* Tablet and small desktop */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-image i {
        font-size: 12rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-brand {
        margin-left: 0;
        margin-right: auto;
    }
    
    .nav-menu {
        margin-right: 0;
    }
    
    .nav-emblem {
        height: 35px;
    }
    
    .nav-logo {
        height: 28px;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        text-align: center;
        margin: 0.5rem 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
        min-height: 90vh;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-image-container {
        width: 100%;
        max-width: 100vw;
        height: 350px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .hero-main-icon i {
        font-size: 6rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
    
    /* Mobile-specific positioning for floating cards - fixed overlap */
    .card-1 {
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .card-2 {
        top: 30%;
        right: 8%;
    }
    
    .card-3 {
        top: 60%;
        right: 5%;
    }
    
    .card-4 {
        bottom: 0% !important;
        right: 35% !important;
        left: auto !important;
    }
    
    .card-5 {
        bottom: 15%;
        left: 13%;
    }
    
    .card-6 {
        top: 30%;
        left: 0%;
    }
    
    .card-7 {
        top: 0%;
        left: 20%;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }
    
    .services {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat {
        padding: 1.5rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
        font-size: 26px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-brand {
        margin-left: 0;
        margin-right: auto;
    }
    
    .nav-brand h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Hide sidebar elements on mobile */
    #sidebar-overlay,
    #service-sidebar,
    .service-sidebar,
    .sidebar-overlay {
        display: none !important;
    }
    
    /* Hide hero-visual section on mobile */
    .hero-visual {
        display: none !important;
    }
    
    .hero {
        padding: 5rem 0 3rem;
        min-height: 85vh;
    }
    
    .hero-wrapper {
        gap: 2rem;
    }
    
    .hero-image-container {
        width: 250px;
        height: 250px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-item strong {
        font-size: 1.5rem;
    }
    
    .hero-main-icon i {
        font-size: 5rem;
    }
    
    .floating-card {
        padding: 0.6rem;
        font-size: 0.6rem;
    }
    
    .floating-card i {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        min-width: 200px;
    }
    
    .services,
    .about,
    .contact {
        padding: 60px 0;
    }
    
    .services h2,
    .about h2,
    .contact h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .service-card i {
        font-size: 2.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat {
        padding: 1.2rem;
    }
    
    .stat h3 {
        font-size: 1.8rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .contact-form textarea {
        min-height: 100px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

/* Extra small mobile */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .nav-brand {
        margin-left: 0;
        margin-right: auto;
    }
    
    .nav-brand h2 {
        font-size: 1.3rem;
    }
    
    .services h2,
    .about h2,
    .contact h2 {
        font-size: 1.8rem;
    }
    
    .hero-image i {
        font-size: 5rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .btn {
        min-width: 180px;
        padding: 10px 20px;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 22px;
    }
}

/* WhatsApp Button Animation - CSS optimized for mobile performance */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse 2s ease-in-out infinite;
    /* Hardware acceleration for smooth mobile performance */
    will-change: transform;
    transform: translateZ(0);
}
