/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #222831;
    scroll-behavior: smooth;
    background: #F7F7F7;
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

:root {
    --primary-color: #276EF1;
    --secondary-color: #2BC48A;
    --background-color: #F7F7F7;
    --text-primary: #222831;
    --text-secondary: #8798AD;
    --border-color: #E0E0E0;
    --card-bg: #FFFFFF;
    --gradient: linear-gradient(135deg, #276EF1, #4A8BFF);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    /* position: fixed; <- ELIMINADO */
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.nav-logo h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: -5px;
    font-weight: bold;
}
.nav-logo span {
    color: var(--primary-color);
    font-size: 0.9rem;
}
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}
.nav-item {
    margin-left: 2rem;
}
.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}
.hamburger.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

.main-title {
    display: none;
}

/* ===== HERO FULLSCREEN RESPONSIVO ===== */
.hero {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    min-width: 300px;
    aspect-ratio: 16/6;
    min-height: 180px;
    max-height: 40vw;
    padding: 0;
    margin: 0; /* <--- Ya no necesitas margin-top aquí */
    overflow: hidden;
    background: #F7F7F7;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
@media (min-width: 768px) {
    .hero {
        height: 100vh;
        max-height: 700px;
        aspect-ratio: 16/6;
        margin: 0;
    }
}
.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slides {
    width: 100%;
    height: 100%;
}
.hero-slide {
    width: 100vw;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 0;
}
.hero-slide.active {
    opacity: 1;
    position: relative;
}
.hero-slide img {
    width: 100vw;
    height: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    position: relative;
    top: 0;
    left: 0;
}
@media (max-width: 900px) {
    .hero-slide img {
        max-height: 400px;
    }
}
@media (max-width: 600px) {
    .hero-slide img {
        max-height: 230px;
    }
}
@media (max-width: 400px) {
    .hero-slide img {
        max-height: 140px;
    }
}
.hero-overlay {
    position: absolute;
    top: 10%;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero-slide[data-text-position="left"] .hero-overlay { left: 5%; align-items: flex-start; text-align: left; }
.hero-slide[data-text-position="right"] .hero-overlay { right: 5%; align-items: flex-end; text-align: right; }
.hero-overlay h1 { font-size: 3rem; margin-bottom: 10px; font-weight: bold; }
.hero-overlay h2 { font-size: 1.8rem; margin-bottom: 20px; color: #FFD700; }
.hero-overlay p { font-size: 1.2rem; margin-bottom: 20px; line-height: 1.6; color: #f0f4ff; }
.hero-phone { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 30px; color: #FFD700; }
.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(39, 110, 241, 0.3);
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(39, 110, 241, 0.5); }
/* About Section */
.about { padding: 80px 0; background: var(--card-bg); }
.about h2 { text-align: center; color: var(--text-primary); font-size: 2.5rem; margin-bottom: 50px; }
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }
.about-content p { font-size: 1.1rem; margin-bottom: 20px; line-height: 1.8; color: var(--text-secondary); }
/* Services Section */
.services {
    padding: 80px 0;
    background: #F7F7F7;
}
.services h2 {
    text-align: center;
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 50px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    #service-immo { grid-column: 2; grid-row: 3; }
}
@media (max-width: 767px) { #service-immo { grid-column: auto; grid-row: auto; } }
/* Service Card & Icon Styles */
.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(39, 110, 241, 0.15);
    border-color: var(--primary-color);
}
.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(39, 110, 241, 0.3);
}
.service-icon i { font-size: 2rem; color: white; }
.service-card h3 { color: var(--text-primary); font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { color: var(--text-secondary); line-height: 1.6; }
.service-whatsapp-link {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
}
.service-whatsapp-link:hover { background: #128C7E; transform: translateY(-2px); }
.service-whatsapp-link i { margin-right: 5px; }
/* Contact Section */
.contact { padding: 80px 0; background: var(--card-bg); }
.contact h2 { text-align: center; color: var(--text-primary); font-size: 2.5rem; margin-bottom: 50px; }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-map iframe { width: 100%; min-height: 200px; border-radius: 10px; border: 0; }
@media (max-width: 900px) { .contact-content { grid-template-columns: 1fr; } }
.contact-info h3 { color: var(--text-primary); margin-bottom: 30px; font-size: 1.5rem; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-size: 1.1rem; color: var(--text-secondary); }
.contact-item i { color: var(--primary-color); font-size: 1.2rem; width: 20px; }
.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.contact-form h3 { color: var(--text-primary); margin-bottom: 30px; font-size: 1.5rem; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-primary); font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: var(--text-primary);
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 110, 241, 0.15);
}
.submit-btn {
    background: var(--gradient);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    box-shadow: 0 5px 15px rgba(39, 110, 241, 0.3);
}
.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(39, 110, 241, 0.5); }
/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.4s ease;
    z-index: 1000;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6); }
.whatsapp-btn i { font-size: 1.8rem; color: white; }
/* Footer */
.footer { background: #F0F0F0; color: var(--text-secondary); text-align: center; padding: 30px 0; border-top: 1px solid var(--border-color); font-size: 0.95rem; }
/* Responsive Design */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.4s ease;
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 15px 0; }
    .hero-overlay {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        align-items: center !important;
        text-align: center !important;
        padding: 0 10px;
    }
    .hero-overlay h1 { font-size: 2.2rem; }
    .hero-overlay h2 { font-size: 1.5rem; }
    .hero-overlay p { font-size: 1.1rem; }
    .hero-phone { font-size: 1.2rem; }
    .contact-content { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .about h2, .services h2, .contact h2 { font-size: 2rem; }
}
@media (max-width: 480px) {
    .hero-overlay h1 { font-size: 1.8rem; }
    .hero-overlay h2 { font-size: 1.3rem; }
    .hero-overlay p { font-size: 1rem; }
    .hero-phone { font-size: 1.1rem; }
    .cta-button { padding: 12px 25px; font-size: 1rem; }
    .whatsapp-btn { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .whatsapp-btn i { font-size: 1.5rem; }
}
/* Footer Social, Floating Social, Animations... */
.footer-social {
    margin-top: 14px;
    display: flex;
    gap: 16px;
    justify-content: center;
}
.footer-social a {
    color: #fff;
    background: #222;
    font-size: 1.3em;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background 0.18s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: socialBounceStart 0.4s;
}
.footer-social a[title="WhatsApp"] { background: #25d366; }
.footer-social a[title="Facebook"] { background: #1877f2; }
.footer-social a[title="TikTok"] { background: #010101; }
.footer-social a:hover { animation: socialBounce 0.4s; opacity: 0.85; }
@keyframes socialBounce {
  0% { transform: scale(1);}
  40% { transform: scale(1.2);}
  60% { transform: scale(0.95);}
  100% { transform: scale(1.08);}
}
@keyframes socialBounceStart {
  0% { transform: scale(0.75);}
  70% { transform: scale(1.18);}
  100% { transform: scale(1);}
}
.floating-social {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.floating-social .social-btn {
    color: #fff;
    background: #25d366;
    font-size: 2.1em;
    padding: 8px 11px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.09);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: socialBounceStart 0.4s;
}
.floating-social .social-btn[title="Facebook"] { background: #1877f2; }
.floating-social .social-btn[title="TikTok"] { background: #010101; }
.floating-social .social-btn[title="WhatsApp"] { background: #25d366; }
.floating-social .social-btn:hover { animation: socialBounce 0.4s; box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
@keyframes socialBounce {
  0% { transform: scale(1);}
  40% { transform: scale(1.2);}
  60% { transform: scale(0.95);}
  100% { transform: scale(1.08);}
}
@keyframes socialBounceStart {
  0% { transform: scale(0.75);}
  70% { transform: scale(1.18);}
  100% { transform: scale(1);}
}
@media (max-width: 480px) {
    .floating-social {
        right: 20px;
        bottom: 20px;
    }
    .floating-social .social-btn {
        font-size: 1.6em;
        padding: 6px 8px;
    }
}
