/* ==========================================
   RESET Y VARIABLES
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #001f3f;
    --primary-hover: #003366;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #adb5bd;
    --bg-light: #f8fafc;
    --bg-gray: #f1f3f5;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* ==========================================
   HEADER
========================================== */
.main-header {
    width: 100%;
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    position: relative;
}

.header-logo {
    margin-right: auto;
}

.header-logo img {
    height: 40px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-contact:hover {
    background-color: var(--primary-hover);
}

/* Language Switcher */
.language-switcher {
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    margin-left: 15px;
}

.language-switcher:hover {
    background: var(--primary-color);
    color: white;
}

.language-switcher:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 31, 63, 0.2);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1100;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-only { display: none; }
.desktop-only { display: block; }

/* ==========================================
   HERO SECTION
========================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/bilis.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-secondary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================
   ABOUT SECTION
========================================== */
.about-section {
    padding: 80px 0;
    background: #fff;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header h2 {
    font-size: 2.5rem;
    margin: 0;
}

.about-header p {
    color: var(--text-muted);
    margin-top: 10px;
}

/* Mario Profile Block */
.mario-profile-block {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.mario-image {
    flex: 1;
}

.mario-image img {
    width: 100%;
    border-radius: 4px;
}

.mario-contact {
    flex: 1.5;
}

.mario-contact h3 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.mario-tagline {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.2rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-circle {
    width: 45px;
    height: 45px;
    background: #f0f7ff;
    color: #003366;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
}

.contact-text {
    font-size: 1.05rem;
    color: #475569;
}

.contact-text strong {
    display: block;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

/* Company Bio Block */
.company-bio-block {
    display: flex;
    gap: 80px;
    align-items: center;
    padding-top: 80px;
    border-top: 1px solid #eee;
}

.company-logo img {
    max-width: 600px;
    width: 100%;
    height: auto;
}

.company-text h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--text-dark);
}

.company-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 25px;
    max-width: 800px;
    text-align: justify;
    text-justify: inter-word;
}

/* ==========================================
   SERVICES SECTION
========================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.services-header {
    margin-bottom: 60px;
}

.services-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.services-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 280px;
    flex: 0 1 280px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #eff6ff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ==========================================
   PROPERTIES SECTION
========================================== */
.properties-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
    overflow: hidden;
    text-align: center;
}

.properties-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.properties-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-window {
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.properties-carousel {
    display: flex;
    gap: 25px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    justify-content: center;
    width: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* Property Card */
.property-card {
    max-width: 350px;
    min-width: 300px;
    min-height: 450px;
    flex: 0 0 calc(33.333% - 17px);
    background: white;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    height: 210px;
    overflow: hidden;
    position: relative;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--text-dark);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.property-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-info h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
    text-align: center;
}

.property-location {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    margin-bottom: 18px;
    align-items: flex-start;
    text-align: center;
    gap: 8px;
    line-height: 1.4;
    min-height: 40px;
}

.property-location i {
    color: #ef4444;
    margin-top: 3px;
}

.property-specs {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 18px;
    font-size: 0.85rem;
    gap: 15px;
    color: #475569;
}

.property-specs span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.property-specs i {
    color: var(--primary-color);
    font-size: 1rem;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-view-details {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 2px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-view-details:hover {
    color: #e74c3c;
    border-color: #e74c3c;
    opacity: 0.7;
}

/* ==========================================
   CONTACT SECTION
========================================== */
.contact {
    padding: 80px 0;
    background-color: #f9fafb;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact.seccion-header p {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
    text-align: left;
    padding: 0;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center !important;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
    margin-left: 0;
}

.info-item i {
    color: #0056b3;
    font-size: 1.2rem;
    margin-top: 10px;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    color: #333;
    margin-bottom: 3px;
}

.info-item p {
    color: #666;
    text-align: left;
    margin: 0;
}

.working-hours {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.working-hours p {
    text-align: left;
}

/* Contact Form */
.contact-form-container {
    flex: 1.5;
    background-color: var(--bg-gray);
    padding: 40px;
    border-radius: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    background-color: var(--bg-gray);
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    color: #495057;
    width: 100%;
    outline: none;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: #e9ecef;
}

.form-group input:focus:invalid,
.form-group textarea:focus:invalid {
    border-bottom: 2px solid #ff4d4d;
}

.form-group input.valid {
    border-bottom: 2px solid #28a745;
}

.error-message {
    color: #ff4d4d;
    font-size: 11px;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.field-error {
    animation: shake 0.2s ease-in-out 0s 2;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--primary-hover);
}

/* ==========================================
   MODAL
========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.modal-content h2 {
    margin-bottom: 10px;
    color: #1a1a1a;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #28a745;
    width: 100%;
    animation: progress 3s linear forwards;
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* ==========================================
   FOOTER
========================================== */
.main-footer {
    background-color: #0a1118;
    color: #fff;
    padding: 30px 0;
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1.5fr 1.5fr;
    gap: 30px;
    align-items: start;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: justify;
    text-justify: inter-word;
}

.footer-logo-circle {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    margin: 0 auto 20px auto;
}

.footer-logo-circle img {
    width: 70%;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: #0056b3;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #fff;
}

.contact-details i {
    margin-right: 10px;
    color: #fff;
    width: 15px;
}

.copyright {
    border-left: 1px solid #2c3e50;
    padding-left: 20px;
    text-align: left;
    font-size: 0.75rem;
}

.footer-created-by {
    display: flex;
    justify-content: center;
    padding: 5px 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.created-by-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    transition: var(--transition);
}

.bot-logo-top {
    width: 110px;
    height: auto;
    display: block;
}

.created-by-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.text-label {
    color: #888;
    font-size: 13px;
    margin-bottom: 2px;
}

.text-brand {
    color: #4A90E2;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.created-by-wrapper:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 40px;
    padding: 15px 20px;
    text-align: center;
    font-size: 13px;
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================
   GOOGLE REVIEWS SECTION
========================================== */
.reviews-section {
    padding: 100px 0;
    background: white;
}

.reviews-header {
    text-align: center;
    margin-bottom: 60px;
}

.reviews-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.reviews-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.stars {
    display: flex;
    gap: 5px;
    font-size: 1.5rem;
}

.star {
    color: #fbbf24;
}

.star.empty {
    color: #d1d5db;
}

.rating-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-light);
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-rating {
    display: flex;
    gap: 3px;
    font-size: 1rem;
}

.review-text {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
}

.review-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 4;
    text-overflow: ellipsis;
}

.review-read-more {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: -10px;
}

.review-read-more:hover {
    text-decoration: underline;
}

.reviews-footer {
    text-align: center;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-view-all:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-view-all::after {
    content: '→';
    font-size: 1.2rem;
}

/* Loading State */
.reviews-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.reviews-loading::before {
    content: '⏳';
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

/* Error State */
.reviews-error {
    text-align: center;
    padding: 60px 20px;
    color: #ef4444;
}

/* ==========================================
   FIXED CTA BUTTON
========================================== */
.cta-fixed {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    z-index: 10000;  /* ← MUY IMPORTANTE */
    transition: var(--transition);
}

.cta-fixed:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE - MEDIA QUERIES
========================================== */

/* Tablets */
@media (max-width: 1024px) {
    .property-card {
        flex: 0 0 calc(50% - 13px);
    }
}

/* Mobile */
@media (max-width: 992px) {
    .cta-fixed {
        display: flex !important;  /* Forzar que se muestre */
        padding: 10px 16px;
        font-size: 13px;
        bottom: 15px;
        right: 15px;
        z-index: 10000;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .copyright {
        border-left: none;
        padding-left: 0;
        grid-column: span 2;
        text-align: center;
        margin-top: 20px;
    }

    .company-bio-block,
    .mario-profile-block {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .company-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    /* Header */
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        padding: 5px 10px;
        z-index: 1001;
    }

    .mobile-menu-btn:hover {
        color: var(--primary-hover);
    }

    .desktop-only { display: none; }
    .mobile-only { display: block; }

    .header-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .header-logo img {
        height: 35px; /* Ajusta según necesites */
        width: auto;
    }

    .header-controls {
        display: flex;
        align-items: center;
        gap: 10px; /* Espacio entre el selector EN/ES y el menú */
    }

    .language-switcher {
        position: absolute;
        top: 50%;
        right: 60px;
        transform: translateY(-50%);
        font-size: 0.75rem;
        padding: 6px 8px;
        margin-left: 0;
        border-width: 1.5px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%; /* Más estrecho */
        height: calc(100vh - 70px);
        background: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 30px;
        padding-left: 20px;
        gap: 15px;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 15px 20px;
        color: var(--primary-color);
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        transition: 0.3s ease;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        color: var(--primary-color);
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links a:hover {
        color: var(--primary-hover);
    }

    /* Botón de contacto en móvil */
    .nav-links .btn-contact {
        background: var(--primary-color);
        color: #fff !important;
        border-radius: 50px;
        padding: 10px 25px !important;
        margin-top: 15px;
        width: auto;
        border: none;
    }

    .nav-links .btn-contact:hover {
        background: var(--primary-hover);
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2.2rem !important;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 30px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        width: 100%;
        max-width: 250px;
        text-align: center;
        justify-content: center;
    }

    /* About */
    .mario-profile-block,
    .company-bio-block {
        flex-direction: column;
        display: flex;
        text-align: center;
        align-items: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
    }

    .contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        width: 100%;
    }

    .contact-text {
        margin: 0;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Properties Carousel */
    .carousel-container {
        padding: 0 10px;
        max-width: 100%;
    }

    .carousel-btn {
        display: none !important;
    }

    .carousel-window {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 20px 0;
    }

    .properties-carousel {
        display: flex;
        gap: 20px;
        padding: 0 10px;
        justify-content: flex-start !important;
        width: max-content;
    }

    .property-card {
        flex: 0 0 85vw;
        max-width: 75vw;
        min-width: 75vw;
        min-height: 450px;
        scroll-snap-align: center;
        margin: 0;
    }

    /* Contact */
    .contact-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .contact-info,
    .contact-form {
        width: 100% !important;
        padding: 20px !important;
    }

    .contact-info {
        margin-bottom: 40px;
        text-align: left;
    }

    .contact-info h3 {
        margin-bottom: 20px;
        font-size: 1.3rem;
    }

    .info-item {
        gap: 12px;
        margin-bottom: 18px;
        margin-left: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px;
    }

    .footer-col {
        border: none !important;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
        width: 100%;
    }

    .footer-col ul {
        padding: 0;
        list-style: none;
    }

    .footer-col ul li {
        margin-bottom: 15px;
    }

    .footer-contact-item {
        display: flex;
        flex-direction: row; /* Mantiene icono al lado del texto */
        justify-content: center; /* Centra el conjunto en la pantalla */
        align-items: center;
        gap: 12px;
        width: 100%;
        margin-bottom: 15px;
    }

    .footer-credits img {
        margin-bottom: 15px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-header h2 {
        font-size: 2rem;
    }

    .grecaptcha-badge { 
        bottom: 70px !important; /* Lo sube para que no tape el botón */
    }
}

@media (max-width: 480px) {
    .language-switcher {
        padding: 5px 10px;
        font-size: 0.8rem;
        min-width: auto;
    }
}