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

/* Importando fuentes personalizadas */
@font-face {
    font-family: 'Gambetta';
    src: url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');
    /* Usando Playfair Display como alternativa a Gambetta */
}

@font-face {
    font-family: 'Avenir Next';
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
    /* Usando Inter como alternativa a Avenir Next */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #222551;
    --secondary-color: #ffd349;
    --text-dark: #374151;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-heading: 'Gambetta', 'Playfair Display', serif;
    --font-body: 'Avenir Next', 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Fuentes para títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand .logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.nav-brand .logo:hover {
    transform: scale(1.05);
}

.nav-brand h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: -5px;
}

.nav-brand span {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

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

.nav-menu a {
    text-decoration: none;
    color: #aeb5dc;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 0 0 80px;
    background: linear-gradient(rgba(34, 37, 81, 0.7), rgba(34, 37, 81, 0.7)), url('assets/images/panama_city_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    margin-top: 0.5rem;
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: transparent;
    color: #aeb5dc;
    border-color: #aeb5dc;
}

.btn-primary:hover {
    background: #aeb5dc;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: #aeb5dc;
    border-color: #aeb5dc;
}

.btn-secondary:hover {
    background: #aeb5dc;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services {
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Property Management */
.property-management {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/images/panama_skyline.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5rem 0;
    color: var(--white);
}

.property-management .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.property-management .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.property-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.property-description {
    background: rgba(255, 255, 255, 0.98);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
}

.property-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.property-icon i {
    font-size: 2rem;
    color: var(--white);
}

.property-description p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

.property-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.property-feature {
    background: rgba(255, 255, 255, 0.98);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    backdrop-filter: blur(15px);
}

.property-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.property-feature .feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Aplicando el mismo gradiente dorado-negro de servicios legales a todos los iconos */
.property-feature:nth-child(1) .feature-icon,
.property-feature:nth-child(2) .feature-icon,
.property-feature:nth-child(3) .feature-icon,
.property-feature:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.property-feature .feature-icon i {
    font-size: 1.2rem;
    color: var(--white);
}

.property-feature-content {
    flex: 1;
}

.property-feature h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.property-feature p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Why Choose Us */
.why-choose-us {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    justify-items: center;
}

.features-grid .feature {
    grid-column: span 2;
}

.features-grid .feature:nth-child(4) {
    grid-column: 2 / 4;
}

.features-grid .feature:nth-child(5) {
    grid-column: 4 / 6;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature p {
    color: var(--text-light);
}

/* Team */
.team {
    background: var(--white);
}

.team-image {
    margin-bottom: 3rem;
    text-align: center;
}

.team-image img {
    width: 100%;
    max-width: 800px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

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

.team-member {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.member-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.member-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-credentials span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Testimonials */
.testimonials {
    background: var(--bg-light);
}

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

.testimonial {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.stars {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.testimonial p {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact */
.contact {
    background: linear-gradient(rgba(34, 37, 81, 0.8), rgba(34, 37, 81, 0.8)), url('assets/images/panama_city_contact_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.contact .section-header h2 {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact .section-header p {
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-info h3,
.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 0.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-item strong {
    color: var(--white);
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-item p {
    color: #e5e7eb;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .property-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .property-management {
        background-attachment: scroll;
        padding: 3rem 0;
    }
    
    .property-management .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .property-management .section-header p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .property-description {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .property-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .property-icon i {
        font-size: 1.5rem;
    }
    
    .property-description p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .property-feature {
        padding: 1.2rem;
        gap: 0.8rem;
    }
    
    .property-feature .feature-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .property-feature .feature-icon i {
        font-size: 1rem;
    }
    
    .property-feature h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .property-feature p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.feature,
.team-member,
.testimonial {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}



/* Nuestros Clientes */
.clients {
    padding: 80px 0;
    background-color: var(--light-bg-color);
    text-align: center;
}

.clients .section-header h2 {
    color: var(--primary-color);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    position: relative;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.client-logo img {
    max-width: 80%;
    max-height: 80%;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(100%);
    opacity: 0.8;
    transform: scale(1.05);
}

.client-logo .social-links {
    display: none;
}

.client-logo:hover .social-links {
    display: none;
}

.client-logo .social-links i {
    color: #fff;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.client-logo .social-links i:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}




.hero-text h1 img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-text h1 img {
        max-width: 200px;
    }
}



/* Media queries para features */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid .feature {
        grid-column: span 1;
    }
    
    .features-grid .feature:nth-child(4),
    .features-grid .feature:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid .feature {
        grid-column: span 1;
    }
    
    .features-grid .feature:nth-child(4),
    .features-grid .feature:nth-child(5) {
        grid-column: span 1;
    }
}


/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ===== OPTIMIZACIONES MÓVILES MEJORADAS ===== */

/* Estilos generales para móviles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header móvil */
    .header {
        padding: 10px 0;
    }
    
    .navbar {
        padding: 0 15px;
    }
    
    .nav-brand .logo {
        height: 40px;
    }
    
    /* Hero section móvil */
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-text {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    /* Estadísticas del hero en móvil */
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .stat {
        text-align: center;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        backdrop-filter: blur(10px);
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    /* Botones del hero en móvil */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    /* Secciones generales en móvil */
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-header p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Servicios en móvil */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Clientes en móvil */
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .client-logo {
        padding: 1rem;
    }
    
    .client-logo img {
        max-height: 60px;
    }
    
    /* Features en móvil */
    .feature {
        text-align: center;
        padding: 1.5rem;
    }
    
    .feature-icon {
        margin-bottom: 1rem;
    }
    
    .feature h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .feature p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Contacto en móvil */
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    /* Footer en móvil */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        width: 100%;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer-section ul li a {
        font-size: 0.95rem;
    }
    
    /* Navegación móvil mejorada */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(34, 37, 81, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 211, 73, 0.2);
        transform: translateY(-2px);
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1001;
    }
    
    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: var(--white);
        margin: 3px 0;
        transition: 0.3s;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Estilos para pantallas muy pequeñas */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .client-logo img {
        max-height: 80px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
}

/* Mejoras de accesibilidad táctil */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .client-logo {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}



/* ===== OPTIMIZACIONES MÓVILES MEJORADAS ADICIONALES ===== */

/* Mejoras específicas para la experiencia móvil */
@media (max-width: 768px) {
    /* Header móvil mejorado - Transparente */
    .header {
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
    }
    
    .nav-brand .logo {
        height: 35px;
    }
    
    /* Hero section móvil optimizado */
    .hero {
        padding: 70px 0 40px;
        background-attachment: scroll;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }
    
    .hero-text p {
        font-size: 1.1rem;
        line-height: 1.6;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
        padding: 0 10px;
    }
    
    /* Estadísticas en grid 2x2 para móvil */
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin: 2.5rem 0;
        padding: 0 10px;
    }
    
    .stat {
        padding: 1.2rem 0.8rem;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Botones optimizados para móvil */
    .hero-buttons {
        padding: 0 20px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 24px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 12px;
    }
    
    /* Secciones con mejor espaciado */
    section {
        padding: 3.5rem 0;
    }
    
    .section-header {
        padding: 0 10px;
        margin-bottom: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.05rem;
        line-height: 1.6;
    }
    
    /* Servicios optimizados */
    .services-grid {
        padding: 0 10px;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1.5rem;
    }
    
    /* Clientes con mejor presentación */
    .clients {
        padding: 3rem 0;
    }
    
    .clients-grid {
        padding: 0 10px;
        gap: 1.5rem;
    }
    
    .client-logo {
        height: 90px;
        border-radius: 12px;
    }
    
    .client-logo img {
        max-height: 50px;
        max-width: 90%;
    }
    
    /* Features como tarjetas en móvil */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 10px;
    }
    
    .feature {
        background: var(--white);
        border-radius: 16px;
        box-shadow: var(--shadow);
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 1.5rem;
    }
    
    /* Contacto con formulario mejorado */
    .contact {
        background-attachment: scroll;
    }
    
    .contact-content {
        padding: 0 10px;
    }
    
    .contact-form {
        background: rgba(255, 255, 255, 0.95);
        padding: 2.5rem 2rem;
        border-radius: 16px;
        backdrop-filter: blur(10px);
    }
    
    .contact-form h3 {
        color: var(--primary-color);
        text-shadow: none;
    }
    
    .form-group label {
        color: var(--primary-color);
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        border-radius: 10px;
    }
    
    /* Footer optimizado */
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-content {
        padding: 0 10px;
    }
    
    /* Navegación móvil con animaciones */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(34, 37, 81, 0.98);
        backdrop-filter: blur(15px);
        justify-content: center;
        transition: left 0.4s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    
    .nav-menu a {
        font-size: 1.4rem;
        padding: 1.2rem 2.5rem;
        border-radius: 12px;
        border: 2px solid transparent;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 211, 73, 0.2);
        border-color: var(--secondary-color);
        transform: translateY(-3px);
    }
    
    .nav-toggle {
        padding: 5px;
    }
    
    .nav-toggle span {
        width: 28px;
        height: 3px;
        border-radius: 2px;
        transition: 0.4s;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.9rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        padding: 0 5px;
    }
    
    .section-header h2 {
        font-size: 1.7rem;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .client-logo {
        height: 100px;
    }
    
    .client-logo img {
        max-height: 60px;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat {
        padding: 1.5rem 1rem;
    }
}

/* Mejoras de accesibilidad táctil mejoradas */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .nav-menu a {
        min-height: 48px;
    }
    
    .client-logo {
        min-height: 48px;
    }
    
    .nav-toggle {
        min-height: 48px;
        min-width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Optimizaciones de rendimiento para móviles */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    .hero,
    .contact {
        background-attachment: scroll;
    }
}


/* Estilos para el tercer botón en el hero section */
.btn-tertiary {
    background: transparent;
    color: #aeb5dc;
    border-color: #aeb5dc;
    font-weight: 600;
}

.btn-tertiary:hover {
    background: #aeb5dc;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Ajustes para los botones del hero en móvil */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 24px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 12px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        background: transparent;
        color: #aeb5dc;
        border-color: #aeb5dc;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-tertiary:hover {
        background: #aeb5dc;
        color: var(--white);
        transform: translateY(-2px);
    }
}


/* Logo flotante en la parte inferior derecha */
.floating-logo {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.floating-logo-img {
    height: 192px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .floating-logo {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-logo-img {
        height: 144px;
    }
}

/* Asegurar que el hero tenga posición relativa para el logo flotante */
.hero {
    position: relative;
}


/* Logo en la sección de información de contacto */
.contact-logo {
    margin-top: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.contact-logo:hover {
    opacity: 1;
}

.contact-logo-img {
    height: 80px;
    width: auto;
    filter: grayscale(100%);
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .contact-logo {
        margin-top: 20px;
        text-align: center;
    }
    
    .contact-logo-img {
        height: 60px;
    }
}


/* Selector de idioma */
.language-selector {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: 2px solid #aeb5dc;
    color: #aeb5dc;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.lang-btn:hover {
    background: #aeb5dc;
    color: white;
    transform: translateY(-2px);
}

.lang-btn.active {
    background: #aeb5dc;
    color: white;
    box-shadow: 0 4px 15px rgba(174, 181, 220, 0.3);
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* Mostrar selector de idioma en menú móvil */
    .nav-menu.active .language-selector {
        display: flex;
        margin: 20px 0;
        justify-content: center;
    }
}

/* Media query para tablets */
@media (max-width: 768px) and (min-width: 481px) {
    .property-management {
        background-attachment: scroll;
        padding: 3.5rem 0;
    }
    
    .property-management .section-header h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .property-management .section-header p {
        font-size: 1rem;
        text-align: center;
    }
    
    .property-content {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .property-description {
        padding: 2rem;
        text-align: center;
    }
    
    .property-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 1.5rem;
    }
    
    .property-icon i {
        font-size: 1.8rem;
    }
    
    .property-feature {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .property-feature .feature-icon {
        width: 45px;
        height: 45px;
    }
    
    .property-feature .feature-icon i {
        font-size: 1.1rem;
    }
}

/* Media query específica para móviles pequeños */
@media (max-width: 480px) {
    .property-management {
        background-attachment: scroll;
        background-position: center center;
        padding: 2rem 0;
    }
    
    .property-management .container {
        padding: 0 1rem;
    }
    
    .property-management .section-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .property-management .section-header p {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .property-content {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .property-description {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .property-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 0.8rem;
    }
    
    .property-icon i {
        font-size: 1.2rem;
    }
    
    .property-description p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: justify;
    }
    
    .property-features {
        gap: 0.8rem;
    }
    
    .property-feature {
        padding: 1rem;
        border-radius: 8px;
        gap: 0.6rem;
    }
    
    .property-feature .feature-icon {
        width: 35px;
        height: 35px;
    }
    
    .property-feature .feature-icon i {
        font-size: 0.9rem;
    }
    
    .property-feature h4 {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
    
    .property-feature p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

