        /* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #1a5276;
    --secondary-color: #2980b9;
    --accent-color: #e67e22;
    --text-color: #333333;
    --text-light: #666666;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --section-bg: #ffffff;
    --card-bg: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-secondary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 1rem; /* 16px */
    --line-height-base: 1.7;
    --heading-line-height: 1.3;
    --letter-spacing-wide: 0.05em;
    --letter-spacing-tight: -0.02em;
}

/* Base Typography */
body {
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: var(--heading-line-height);
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: var(--letter-spacing-tight);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.jahuen-page #nosotros h2::after,
#empresa h2::after {
    display: none;
}

/* Enhanced About Section Styling */
#nosotros {
    padding: 100px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

#nosotros .container {
    position: relative;
    z-index: 2;
}

#nosotros h2 {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 60px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 0;
}

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

.about-text {
    position: relative;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
    position: relative;
    padding-left: 25px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.about-text p:hover {
    transform: translateX(5px);
}

.about-text p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    #nosotros h2 {
        font-size: 2.4rem;
        margin-bottom: 40px;
    }
    
    .about-text p {
        font-size: 1.05rem;
        padding-left: 20px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000; /* Increased z-index to ensure it stays on top */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
    opacity: 1 !important; /* Ensure it's always visible */
    visibility: visible !important; /* Ensure it's always visible */
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    color: #FFF;
}

.whatsapp-float i {
    margin-top: 5px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive adjustments for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
        opacity: 1 !important; /* Ensure it's always visible on mobile */
        visibility: visible !important; /* Ensure it's always visible on mobile */
    }
}

@media (max-width: 768px) {
    #nosotros {
        padding: 70px 0;
    }
    
    #nosotros h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
        padding-left: 15px;
    }
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

h4 {
    font-size: 1.4rem;
    font-weight: 600;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

strong {
    font-weight: 600;
    color: var(--text-color);
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }
.text-muted { color: var(--text-light); }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }

/* Links */
.link-underline {
    position: relative;
    display: inline-block;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.link-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Jahuen page styles */
.hero-jahuen {
    padding: 120px 20px 80px;
    background: radial-gradient(1200px 400px at 50% -100px, rgba(230,126,34,0.08), transparent 60%);
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}
.hero-jahuen .jahuen-content h1 {
    color: var(--primary-color);
    letter-spacing: 0.5px;
    margin: 18px 0 12px;
}
.hero-jahuen .hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-jahuen .btn { min-width: 220px; }

.about .about-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 32px; 
    align-items: center;
    justify-items: center;
}
.about .about-image { border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,0.06); aspect-ratio: 4 / 3; background: #f6f7f9; }
.about .about-image img { width: 100%; height: 100% !important; object-fit: cover; object-position: center; display: block; }

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.services .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.03em;
}

.services h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.services p.lead {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 400;
}

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

.service-item {
    background: var(--white);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: all 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: var(--accent-color);
    transform: rotateY(180deg);
}

.service-item:hover .service-icon i {
    color: white;
}

.service-icon i {
    font-size: 2.5rem;
    color: #2563eb;
    transition: all 0.3s ease;
}

.service-item h3 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.service-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.service-item:hover h3::after {
    width: 80px;
    background: var(--accent-color);
}

.service-item p {
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 25px 0;
    text-align: center;
    font-size: 1.05rem;
}

.service-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-item li {
    color: #4b5563;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    font-size: 1rem;
}

.service-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
    transition: all 0.3s ease;
}

.service-item:hover li::before {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .services {
        padding: 70px 0;
    }
    
    .services h2 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .services p {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .service-item {
        padding: 30px 25px;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-icon i {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 60px 0;
    }
    
    .services h2 {
        font-size: 1.8rem;
    }
    
    .services p {
        font-size: 1rem;
    }
    
    .service-item {
        padding: 25px 20px;
    }
    
    .service-item h3 {
        font-size: 1.3rem;
    }
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.services p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #555;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-item {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-icon {
    background: #f0f7ff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: #2563eb;
    color: white;
}

.service-icon i {
    font-size: 2rem;
    color: #2563eb;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon i {
    color: white;
}

.service-item h3 {
    color: #1e40af;
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center;
    transition: color 0.3s ease;
}

.service-item p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.service-item ul {
    text-align: left;
    color: #4b5563;
    padding-left: 20px;
    margin-top: 15px;
    list-style: none;
}

.service-item li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.service-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services {
        padding: 60px 0;
    }
    
    .services h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        padding: 0 15px;
    }
    
    .service-item {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .services h2 {
        font-size: 1.8rem;
    }
    
    .service-item {
        padding: 20px 15px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 1.8rem;
    }
}

.contact .contact-content { display: grid; grid-template-columns: 1.1fr 1fr; }
.contact .contact-form { padding: 40px; background: #fff; }
.contact .contact-form .form-group { margin-bottom: 14px; }
.contact .contact-form input, .contact .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #e6e6e6; border-radius: 10px; font-family: inherit; }

/* Normalize Jahuen contact info alignment like Kasakit */
.contact .contact-items { display: grid; gap: 16px; }
.contact .contact-items .contact-item { display: grid !important; grid-template-columns: 48px 1fr; align-items: start !important; column-gap: 14px; }
.contact .contact-items .contact-icon { width: 48px !important; height: 48px !important; margin-right: 0 !important; border-radius: 10px !important; justify-self: start; }
.contact .contact-items .contact-details h4 { margin: 0 0 4px 0 !important; }
.contact .contact-items .contact-details p { margin: 0 !important; }

.header .back-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: rgba(230,126,34,0.08); color: var(--accent-color); font-weight: 600; }
.header .back-link:hover { background: rgba(230,126,34,0.14); }

/* Ensure Jahuen back link is left-aligned and visible */
.jahuen-nav ul { display: flex; justify-content: flex-start; align-items: center; gap: 12px;}
.jahuen-nav li { list-style: none; }

/* Make header container a positioning context so the mobile back arrow anchors correctly */
.header .container { position: relative; }

/* Jahuen responsive */
@media (max-width: 992px) {
    .about .about-content { 
        grid-template-columns: 1fr; 
        justify-items: center;
        text-align: center;
    }
    .services .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact .contact-content { grid-template-columns: 1fr; }
    /* Ensure Jahuen nav is not hidden by generic .main-nav rules */
    .jahuen-nav { all: unset; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); z-index: 10050; }
    .jahuen-nav ul { display: flex !important; }
    .jahuen-nav li { list-style: none; }
}

@media (max-width: 768px) {
    .hero-jahuen { 
        padding: 150px 20px 64px !important;
        min-height: auto !important;
        height: auto !important;
    }
    .hero-jahuen .jahuen-logo { max-width: 180px !important; height: auto; }
    .hero-jahuen .jahuen-content h1 { font-size: 1.5rem; }
    .hero-jahuen .jahuen-content p { font-size: 0.95rem; }
    .hero-jahuen .btn { min-width: 100%; justify-content: center; }

    .services .services-grid { grid-template-columns: 1fr; }
    .services { padding: 56px 0 !important; }

    .contact { padding: 64px 0 !important; }
    .contact .contact-content { padding: 0 0 !important; }
    .contact .contact-form { padding: 24px; margin: 0 !important; width: 100% !important; }
    .contact .contact-info { padding: 24px !important; margin: 0 !important; width: 100% !important; }
    /* Remove tiny left indents from inline styles in jahuen.html */
    .contact .social-links h4 { padding-left: 0 !important; }
    .contact .social-links > div { padding-left: 0 !important; }
    .about .about-image { aspect-ratio: 16 / 10; }

    /* Jahuen header sizing consistent with global mobile header */
    body { padding-top: 110px; }
    .header { position: relative; z-index: 10060; }
    .header .container { min-height: 100px; }
    .header .logo img[alt="Jahuen SPA"] { height: 80px !important; }
    .header .back-link { padding: 8px 12px; }

    /* Jahuen back arrow: icon-only on mobile, fixed to left inside header (override generic .main-nav) */
    .jahuen-nav { position: absolute !important; left: 12px; top: 50%; transform: translateY(-50%) !important; z-index: 10060; width: auto !important; height: auto !important; background: transparent !important; box-shadow: none !important; border-top: none !important; opacity: 1 !important; visibility: visible !important; max-height: none !important; }
    .jahuen-nav ul { display: flex !important; flex-direction: row !important; width: auto !important; height: auto !important; }
    .jahuen-nav .back-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        background: #ffffff;
        border: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    .jahuen-nav .back-link i { font-size: 18px; color: #000 !important; line-height: 1; }
    .jahuen-nav .back-link span { display: none; }
}

/* Very small phones: give a bit more room */
@media (max-width: 480px) {
    body { padding-top: 120px; }
    .hero-jahuen { padding: 180px 0 72px; }
    .jahuen-nav { left: 10px; }
    .jahuen-nav .back-link { width: 44px; height: 44px; }
    .jahuen-nav .back-link i { font-size: 19px; }
}
/* Mobile menu toggle base (hidden by default, shown in mobile MQ) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    border: none;
    cursor: pointer;
    padding: 15px;
    z-index: 1001;
    position: relative;
    width: 44px;
    height: 44px;
    margin-right: -10px;
}

.mobile-menu-toggle .bar {
    display: block;
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle .bar:nth-child(1) {
    top: 16px;
}

.mobile-menu-toggle .bar:nth-child(2) {
    top: 21px;
    opacity: 1;
}

.mobile-menu-toggle .bar:nth-child(3) {
    top: 26px;
}

/* Active state - transforms to X */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
    background-color: var(--primary-color);
}

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

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    background-color: var(--primary-color);
}

/* Focus state for better accessibility */
.mobile-menu-toggle:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Main navigation */
.main-nav {
    display: flex;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .nav-item {
    margin: 0 12px;
    position: relative;
}

.main-nav .nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    color: var(--accent-color);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link:focus::after {
    width: 100%;
}

/* Mobile menu styles */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Main navigation styles for mobile */
    .main-nav {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 0 30px;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.active {
        transform: translateX(320px);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
    }

    .main-nav .nav-list {
        flex-direction: column;
        width: 100%;
        padding: 0 24px;
    }

    .main-nav .nav-item {
        margin: 0;
        width: 100%;
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .main-nav.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered animation for menu items */
    .main-nav.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .main-nav.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .main-nav.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .main-nav.active .nav-item:nth-child(5) { transition-delay: 0.3s; }
    .main-nav.active .nav-item:nth-child(6) { transition-delay: 0.35s; }

    .main-nav .nav-link {
        display: block;
        padding: 14px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: #333;
        transition: all 0.3s ease;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link:focus {
        color: var(--accent-color);
        padding-left: 8px;
    }

    .main-nav .nav-link::after {
        display: none;
    }

    /* Prevent body scroll when menu is open */
    .menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .main-nav {
        left: -100%;
        width: 85%;
        max-width: 300px;
    }
    
    .main-nav.active {
        transform: translateX(100%);
    }
    
    .mobile-menu-toggle {
        padding: 12px;
    }
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

p, ul, ol, li, figure, figcaption, blockquote, cite {
    text-align: center;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    display: inline-block;
}

a:hover {
    color: var(--accent-color);
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Top Contact Bar */
body {
    margin: 0;
    padding: 0;
    padding-top: 30px; /* Add padding to body to prevent content from being hidden under the fixed header */
}

.top-contact-bar {
    width: 100%;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    padding: 0;
    margin: 0;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    position: fixed; /* Change from relative to fixed */
    top: 0; /* Stick to the top */
    left: 0;
    z-index: 1001;
    height: 30px;
    border: none;
    outline: none;
    box-shadow: 0 0 0 100vmax #000;
    clip-path: inset(0 -100vmax);
}

.top-contact-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 30px;
    background-color: #000;
    position: relative;
}

.top-contact-bar .contact-info {
    display: flex;
    gap: 0px;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-contact-bar .contact-item {
    background-color: #000;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0 5px;
    height: 100%;
    white-space: nowrap;
    line-height: 1;
}

.top-contact-bar i {
    font-size: 11px;
    color: #ffffff;
    opacity: 0.9;
}

.top-contact-bar a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    font-weight: 400;
    line-height: 1;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

.top-contact-bar a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.top-contact-bar a:hover i {
    color: #fff;
    opacity: 1;
}





/* Contact Info Item */
.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    white-space: nowrap;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 0.9em;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Social Links */
.social-links a {
    color: #666;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Hide on mobile */
@media (max-width: 1199px) {
    .top-contact-bar {
        display: none;
    }
    
    body {
        padding-top: 80px !important;
    }
    
    .header {
        top: 0 !important;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 20px 0;
    overflow: hidden;
    min-height: 120px;
}

.header .container {
    max-width: 1400px;
    margin: 0;
    padding: 0 150px 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Logo */
.header .logo {
    display: flex;
    align-items: center;
    height: 200px;
    flex-shrink: 0;
    padding: 20px 0;
    margin: 0;
    margin-right: auto;
}

.header .logo a {
    display: flex;
    height: 100%;
    align-items: center;
    padding: 0 20px;
}

.header .logo-img {
    height: 100%;
    width: auto;
    max-height: 200px;
    min-width: 300px;
    object-fit: contain;
    display: block;
}

/* Tamaño para móviles - Máxima prioridad */
@media screen and (max-width: 767px) {
    .header .logo {
        height: 140px;
        padding: 15px 0;
    }
    
    .header .logo-img {
        max-height: 120px !important;
        max-width: 250px !important;
    }
    
    body .header .logo,
    body .header .logo a,
    body .header .logo-img {
        display: block !important;
        height: 65px !important;
        max-height: 65px !important;
        max-width: 150px !important;
        width: auto !important;
        margin: 0 auto !important;
    }
    
    /* Reset de cualquier transformación que pueda afectar el tamaño */
    body .header .logo-img {
        transform: none !important;
        -webkit-transform: none !important;
    }
    
    /* Sobrescribir cualquier estilo inline */
    body .header .logo-img[src*="logo"],
    body .header .logo-img[src*="Logo"],
    body .header .logo-img[alt*="KASAKIT"],
    body .header .logo-img[alt*="Kasakit"] {
        height: 65px !important;
        max-height: 65px !important;
        max-width: 150px !important;
        width: auto !important;
        margin: 0 auto !important;
    }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .header .logo-img {
        height: 60px;
        max-width: 140px;
    }
}

/* Escritorio (1024px en adelante) */
@media (min-width: 1024px) {
    .header .logo {
        margin-left: 0;
    }
    
    .header .logo-img {
        height: 70px;
        max-width: 160px;
        margin-left: 0;
        display: block !important;
    }
    
    .header .logo a {
        padding: 15px 0;
    }
}

/* Asegurar que el header tenga suficiente altura */
.header {
    min-height: 120px;
}

.header .logo:hover .logo-img {
    transform: scale(1.05);
}

/* Navigation */
.main-nav {
    grid-column: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
    top: 20px;
    right: 65px;
}

/* Navigation Links */
.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    white-space: nowrap;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:not(.highlight):hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 12px;
    right: 12px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: calc(100% - 24px);
}

/* CTA Button */
.header-cta {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    top: -20px;
    transform: none;
    right: -80px;
}

.nav-link.highlight {
    background: var(--accent-color);
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-link.highlight:hover {
    background: #d46e1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Navigation Items */
.nav-item {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

/* Navigation Links */
.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 0;
    white-space: nowrap;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-link:not(.highlight):hover {
    color: var(--accent-color);
}

/* CTA Button */
.header-cta .nav-link.highlight {
    background: var(--accent-color);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.header-cta .nav-link.highlight:hover {
    background: #d46e1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: white;
}

/* Remove underline from CTA button */
.header-cta .nav-link.highlight::after {
    display: none;
}

/* Mobile CTA Button */
.mobile-cta {
    display: none; /* Hidden by default on desktop */
}

.mobile-cta .nav-link.highlight {
    display: block;
    width: 100%;
    text-align: center;
    margin: 10px 0;
    padding: 12px 24px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Mobile styles */
@media (max-width: 768px) {
    .mobile-cta {
        display: block;
        width: 100%;
        padding: 0 15px;
        margin-top: 15px;
    }
    
    .header-cta {
        display: none;
    }
    
    .header .container {
        grid-template-columns: auto 1fr auto;
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .mobile-cta {
        display: none;
    }
    
    .header-cta {
        display: flex;
        align-items: center;
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav .nav-link:hover::after {
    width: 100%;
}

/* Highlighted navigation item */
.main-nav .highlight {
    background-color: var(--accent-color);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 4px;
    margin-left: 10px;
}

.main-nav .highlight:hover {
    background-color: #d35400;
    color: white !important;
}

/* Navigation */
.main-nav .nav-list {
    list-style: none;
    gap: 20px;
}

.main-nav .nav-link {
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.main-nav .nav-link:hover {
    color: var(--accent-color);
}

/* Main navigation items and links are styled above */

/* Responsive Header */
@media (max-width: 1200px) {
    .header { top: 0 !important; }
    .header .container {
        padding: 0 20px;
    }
    /* Reduce offsets so nav and CTA align better on tablets */
    .nav-list {
        top: 0;
        right: 0;
        gap: 16px;
    }
    .header-cta {
        position: static;
        right: auto;
        top: auto;
    }
}

@media (max-width: 992px) {
    .header .container {
        padding: 0 20px;
    }
    
    .main-nav li {
        margin: 0 10px;
    }
    
    .main-nav a {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .main-nav ul {
        display: none;
    }
    
    .main-nav.active ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .main-nav a {
        padding: 12px 20px;
        width: 100%;
        display: block;
    }
    
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0px !important;
    }
    
    .instagram-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        padding: 0 15px;
        left: -25px;
    }
    
    #modelos.projects {
        margin-top: 0 !important;
        padding-top: 60px !important; /* Reduced from 120px */
        padding-bottom: 60px !important;
    }
    
    body .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100px !important;
        min-height: 100px !important;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Reset de estilos del contenedor del header para móvil */
    @media (max-width: 768px) {
        .header {
            display: flex !important;
            justify-content: center !important;
        }
    }
    
    body .header .container {
        padding: 10px 20px !important;
        height: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr !important; /* Sobrescribir grid */
        position: relative !important;
        margin: 0 !important;
    }
    
    /* Estilos específicos para el logo en móvil */
    body .header .logo {
        height: 80px !important;
        padding: 10px 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 200px !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }
    
    /* Estilos específicos para la imagen del logo en móvil */
    body .header .logo-img {
        height: 100% !important;
        max-height: 80px !important;
        min-width: 180px !important;
        width: auto !important;
        margin: 0 auto !important;
        display: block !important;
        object-fit: contain !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Asegurar que el logo esté centrado en móvil */
    @media (max-width: 768px) {
        .header .container {
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            padding: 0 20px !important;
            margin: 0 auto !important;
            max-width: 100% !important;
            width: 100% !important;
        }
        
        .header .logo {
            margin: 0 auto !important;
            display: block !important;
            text-align: center;
            width: 100% !important;
            max-width: 200px !important;
            height: 80px !important;
            padding: 10px 0 !important;
        }
        
        .header .logo a {
            display: block !important;
            width: 100% !important;
            height: 100% !important;
        }
        
        .header .logo-img {
            height: 100% !important;
            width: auto !important;
            max-width: 100% !important;
            margin: 0 auto !important;
            display: block !important;
        }
    }
    
    #modelos.projects h1 {
        margin-top: 0 !important;
        margin-bottom: 40px !important;
        font-size: 2.2rem !important;
    }
    
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 50px !important;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    
    
    
    .header .container {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        height: 100%;
        margin: 0 auto;
        padding: 0 15px;
        max-width: 100%;
    }
    
    .header .logo {
        position: absolute;
        left: 30px; /* Ajustado para mover más a la izquierda */
        height: 70px;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        width: auto;
        transform: none; /* Eliminamos el centrado anterior */
    }
    
    .header .logo-img {
        height: 100%;
        width: auto;
        max-height: 70px;
        margin: 0 auto;
        display: block;
    }
    
    .mobile-menu-toggle {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 1001;
    }
    
    /* Mobile menu styles */
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0 15px;
    }
    
    .nav-item {
        width: 100%;
        margin: 5px 0;
    }
    
    .nav-link {
        padding: 12px 15px;
        display: block;
        border-radius: 4px;
    }
    
    .nav-link:hover {
        background: #f5f5f5;
    }
    
    .header {
        height: 100px !important; /* ensure overrides later rules */
        top: 0 !important; /* stick to very top on mobile */
        z-index: 10005; /* above overlay */
    }
    
    .header .container {
        padding: 0 15px;
        height: 100%; /* fill header to prevent internal gaps */
    }
    
    .logo {
        left: 15px;
    }
    
    /* Explicitly override desktop logo size */
    .header .logo {
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .header .logo-img {
        height: 100% !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain;
        object-position: center;
    }
    /* Guard against other rules shrinking the logo */
    .header .container .logo .logo-img { height: 110px !important; }
    /* Mobile header layout: center logo, hide CTA */
    .header-cta { display: none; }
    .header .container { display: flex; justify-content: center; align-items: center; position: relative; }
    .logo { position: static; left: auto; }
    /* Show hamburger */
    .mobile-menu-toggle { display: inline-flex; z-index: 10011; }
    
    .main-nav {
        position: fixed;
        top: 100px; /* align with taller header */
        left: 0;
        width: 100%;
        background: white;
        border-top: 1px solid rgba(0,0,0,0.06); /* clean seam under header */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        height: auto;
        max-height: 0;
        overflow: hidden;
        /* Transitions for cleaner open/close */
        transition: max-height 0.3s ease-out, opacity 0.2s ease, transform 0.2s ease;
        opacity: 0;
        transform: translateY(-8px);
        visibility: hidden;
        display: block; /* ensure visible container for animation */
        z-index: 10050; /* decisively above overlay */
    }
    
    .main-nav.active {
        max-height: 500px;
        padding: 15px 0;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
    
    .main-nav ul {
        display: flex; /* ensure visible */
        flex-direction: column;
        width: 100%;
        height: auto;
    }
    
    .main-nav li {
        width: 100%;
        margin: 0;
        height: auto;
    }
    
    .main-nav a {
        padding: 14px 24px; /* bigger tap targets */
        width: 100%;
        border-bottom: none !important;
    }
    
    .main-nav .highlight {
        margin: 10px 20px 0;
        width: calc(100% - 40px);
        justify-content: center;
    }
    
    .menu-toggle {
        position: relative;
        z-index: 1001;
        font-size: 1.5rem;
        cursor: pointer;
        margin-left: auto;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.5s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 20px;
    position: relative;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
    font-size: 0.95rem;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--accent-color);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

/* Final mobile overrides only for Jahuen page */
@media (max-width: 768px) {
    /* Ensure header/container are the anchor */
    /* Make header fixed so the arrow stays inside it; offset content with body padding */
    body.jahuen-page { padding-top: 140px !important; }
    body.jahuen-page .header { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; height: 120px !important; z-index: 10060 !important; overflow: visible !important; background: #fff !important; border-bottom: 1px solid rgba(0,0,0,0.06) !important; }
    /* anchor arrow to header container like other nav items */
    body.jahuen-page .header .container { position: relative !important; min-height: 100px !important; }

    /* Keep back arrow visible and not affected by generic .main-nav overlay */
    /* Position back arrow on the RIGHT inside the fixed header */
    body.jahuen-page .header .jahuen-nav { position: absolute !important; right: 16px !important; left: auto !important; top: 50% !important; transform: translateY(-72%) !important; width: auto !important; height: auto !important; background: transparent !important; box-shadow: none !important; border: 0 !important; opacity: 1 !important; visibility: visible !important; max-height: none !important; z-index: 10070 !important; }
    body.jahuen-page .jahuen-nav ul { display: flex !important; flex-direction: row !important; }
    body.jahuen-page .jahuen-nav .back-link { width: 46px !important; height: 46px !important; padding: 0 !important; border-radius: 50% !important; background: #fff !important; border: 1px solid rgba(0,0,0,0.1) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important; }
    body.jahuen-page .jahuen-nav .back-link i { color: #000 !important; font-size: 20px !important; }
    body.jahuen-page .jahuen-nav .back-link span { display: none !important; }

    /* Balanced spacing so hero clears header and CTAs are fully visible */
    body.jahuen-page .hero-jahuen { 
        position: relative; 
        z-index: 1; 
        padding-top: 120px !important; 
        padding-bottom: 100px !important;
        min-height: auto !important;
    }
    /* Remove double white contour around logo on small screens */
    body.jahuen-page .header .logo { background: transparent !important; box-shadow: none !important; padding: 0 !important; }
}

/* Extra small phones: tighten arrow and add more breathing room for hero */
@media (max-width: 480px) {
    body.jahuen-page { padding-top: 130px !important; }
    body.jahuen-page .header { height: 116px !important; overflow: visible !important; position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; background: #fff !important; border-bottom: 1px solid rgba(0,0,0,0.06) !important; }
    body.jahuen-page .header .container { min-height: 104px !important; position: relative !important; }
    body.jahuen-page .header .jahuen-nav { right: 14px !important; left: auto !important; top: 50% !important; transform: translateY(-76%) !important; z-index: 10070 !important; }
    body.jahuen-page .jahuen-nav .back-link { width: 44px !important; height: 44px !important; }
    body.jahuen-page .jahuen-nav .back-link i { font-size: 18px !important; }
    body.jahuen-page .hero-jahuen { 
        padding-top: 120px !important; 
        padding-bottom: 100px !important;
        min-height: auto !important;
    }
}

/* Highlighted Menu Item */
.main-nav ul li a.highlight {
    background-color: var(--accent-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.main-nav ul li a.highlight::after {
    display: none;
}

.main-nav ul li a.highlight:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Jahuen SPA Specific Styles */
/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../photos/hero-bg.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

/* Jahuen Hero Section */
.hero-jahuen {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #050505;
    color: #fff;
    padding: 40px 0;
    margin: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    font-family: 'Poppins', sans-serif;
}

.hero-jahuen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, #050505 0%, #0a0a0a 100%),
        radial-gradient(circle at 20% 20%, rgba(200, 160, 100, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(200, 160, 100, 0.03) 0%, transparent 25%),
        repeating-linear-gradient(
            45deg,
            rgba(200, 180, 150, 0.02) 0px,
            rgba(200, 180, 150, 0.02) 1px,
            transparent 1px,
            transparent 15px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(200, 180, 150, 0.02) 0px,
            rgba(200, 180, 150, 0.02) 1px,
            transparent 1px,
            transparent 15px
        );
    z-index: 1;
    background-blend-mode: overlay, normal, normal, normal, normal;
}

.hero-jahuen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    z-index: 2;
}

.hero-jahuen .container {
    position: relative;
    z-index: 3;
}

.jahuen-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 120px 20px;
    background: transparent;
    border: none;
    z-index: 2;
}

.jahuen-content:hover {
    transform: perspective(1000px) translateZ(20px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.6);
}

.jahuen-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: all 0.5s ease;
    position: relative;
    z-index: 3;
}

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

.jahuen-logo {
    animation: float 6s ease-in-out infinite;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.hero-jahuen .btn-primary {
    background: linear-gradient(45deg, #d4af37, #f4e5c2);
    border: none;
    padding: 16px 40px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #111;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
    margin: 0 10px;
    transform: translateY(0);
}

.hero-jahuen .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: #000;
}

.hero-jahuen .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
    z-index: -1;
}

.hero-jahuen .btn-primary:hover::before {
    left: 100%;
}

.hero-jahuen .btn-outline {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
    padding: 16px 40px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    margin: 0 10px;
    transform: translateY(0);
}

.hero-jahuen .btn-outline:hover {
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
    color: #f4e5c2;
}

.hero-jahuen .btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: 0.6s;
    z-index: -1;
}

.hero-jahuen .btn-outline:hover::before {
    left: 100%;
}

.hero-jahuen .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.5);
}

.hero-jahuen .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-jahuen h1 {
    font-size: 3.5rem;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 300;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(90deg, #f5f5f5, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    padding: 0 20px;
    margin: 0 auto 20px;
    max-width: 90%;
    line-height: 1.2;
}

.hero-jahuen h1::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.hero-jahuen h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.hero-jahuen p {
    font-size: 1.1rem;
    margin: 0 auto 30px;
    color: #bbb;
    max-width: 600px;
    padding: 0 20px 20px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-jahuen p::after {
    content: '✧';
    display: block;
    font-size: 1.5rem;
    color: #d4af37;
    margin: 15px auto 0;
    letter-spacing: 8px;
    opacity: 0.6;
    line-height: 1;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px auto 0;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    justify-items: center;
}

.service-item {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* Contacto Section */
.contacto-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    overflow: hidden;
}

.contacto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    z-index: 1;
}

.contacto-section h2 {
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.6;
    position: relative;
    padding-left: 15px;
    border-left: 3px solid var(--accent-color);
}

.contact-info p i {
    min-width: 45px;
    height: 45px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-info p:hover i {
    transform: translateY(-3px);
    background: var(--accent-color);
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.2);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.contact-form .btn:hover {
    background: #d46e1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3);
}

/* Center the submit button only on Jahuen page */
body.jahuen-page .contact-form button[type="submit"] {
    display: block;
    margin: 0 auto;
}

/* Jahuen: remove the additional left underline under "Información de Contacto" (keep only the centered H2 underline) */
body.jahuen-page .contact .contact-info h3 span {
    display: none !important;
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .contact h2 {
        font-size: 2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }
}

.contacto-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Formulario de Contacto */
.contacto-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto 60px;
}

.contacto-form h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
    text-align: center;
}

.contacto-form > p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 0;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ffffff;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.2);
}

.contacto-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contacto-form button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto 0;
    display: block;
}

.contacto-form button:hover {
    background: #d46e1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgb(255, 255, 255);
}

/* Información de Contacto y Mapa */
.contacto-info-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgb(255, 255, 255);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card.contact-card {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border: 1px solid #eee;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.6rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.info-card h3 i {
    color: var(--accent-color);
    font-size: 1.6rem;
    margin-right: 10px;
}

.info-card p {
    color: #555;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    padding: 0 15px;
}

.info-card p i {
    color: var(--accent-color);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 50%;
    padding: 5px;
}

.map-container {
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
}

/* Estilos para móviles */
@media (max-width: 768px) {
    .map-container {
        margin: 20px -20px;
        width: calc(100% + 40px);
        border-radius: 0;
    }
    
    /* Hacer que el mapa sea más interactivo en móviles */
    .map-container iframe {
        pointer-events: auto !important;
    }
    
    /* Asegurar que el contenedor no interfiera con los gestos táctiles */
    .map-container {
        -webkit-overflow-scrolling: touch;
        touch-action: manipulation;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contacto-info-wrapper {
        flex-direction: column;
        max-width: 600px;
    }
    
    .info-card {
        width: 100%;
        padding: 30px 20px;
    }
    
    .info-card p {
        justify-content: flex-start;
        text-align: left;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .contacto-form {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .contacto-section h2 {
        font-size: 2rem;
    }
    
    .info-card {
        padding: 25px 20px;
    }
    
    .info-card h3 {
        font-size: 1.3rem;
    }
}

/* Visite Casa Piloto Section */
.casa-piloto-section {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    margin-bottom: 0;
    overflow: hidden;
}

.casa-piloto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    z-index: 1;
}

.casa-piloto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    z-index: 1;
}

/* Galería de Casa Piloto */
.casa-piloto-gallery {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.casa-piloto-gallery .main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    border-color: #e67e22;
    transform: scale(1.05);
}

/* Estilos responsivos para la galería */
@media (max-width: 768px) {
    .casa-piloto-gallery .main-image {
        height: 300px;
    }
    
    .gallery-thumbnails img {
        width: 60px;
        height: 45px;
    }
}

.casa-piloto-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.casa-piloto-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
}

.casa-piloto-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.casa-piloto-gallery {
    flex: 1;
    min-height: 500px;
    background: url('photos/casa-piloto.jpg') no-repeat center center/cover;
}

.casa-piloto-gallery .main-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
}

.gallery-thumbnails {
    display: flex;
    padding: 15px;
    background: white;
    border-radius: 0 0 10px 10px;
    gap: 10px;
}

.gallery-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    opacity: 1;
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.casa-piloto-text {
    flex: 1;
    padding: 0 0 0 30px;
}

.casa-piloto-header h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

/* Removed the orange underline from the heading */

.highlight-text {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 90%;
}

.casa-piloto-text p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff7d35, #ff9a5a);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    line-height: 1;
    padding: 0;
}

.feature-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.pulse-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    top: -2px;
    right: -2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

.feature-content h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feature-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cta-wrapper {
    margin-top: 40px;
    text-align: center;
}

.cta-wrapper p {
    margin-top: 25px;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.4);
    background: #d46e1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .casa-piloto-content {
        flex-direction: column;
    }
    
    .casa-piloto-gallery,
    .casa-piloto-text {
        width: 100%;
    }
    
    .casa-piloto-text {
        padding: 30px 0 0 0;
    }
    
    .contacto-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .casa-piloto-section,
    .contacto-section {
        padding: 70px 0;
    }
    
    .casa-piloto-section h2,
    .contacto-section h2 {
        font-size: 2rem;
    }
    
    .casa-piloto-content {
        padding: 20px;
    }
    /* Casa Piloto: responsive media and thumbs */
    .casa-piloto-gallery .main-image {
        height: 32vh;
        max-height: 320px;
    }
    .gallery-thumbnails {
        justify-content: center;
        flex-wrap: wrap;
    }
    .gallery-thumbnails img {
        width: 64px;
        height: 48px;
    }
    
    .contacto-form {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .casa-piloto-content {
        padding: 15px;
    }
    .casa-piloto-text {
        padding: 20px 0 0 0;
    }
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Center Casa Piloto button on larger screens */
.casa-piloto-text .btn-primary {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../photos/casas.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

/* About Section */
.about {
    background-color: var(--light-gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 400px; /* Fixed height for the container */
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Ensure the image is centered */
    transition: var(--transition);
    display: block;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Modelos Section */
.modelos-section {
    padding: 100px 0;
    background-color: var(--light-gray);
    margin-top: 200px !important;
    display: block;
}

.modelos-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--prima  ry-color);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.modelos-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Nuestra Empresa Section */
.empresa-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--section-bg);
}

.empresa-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    z-index: 1;
}

.empresa-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.empresa-logo {
    flex: 0 0 300px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empresa-logo img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
}

.empresa-text {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
    text-align: left;
}

.empresa-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

@media (max-width: 992px) {
    .empresa-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .empresa-logo {
        margin-bottom: 20px;
    }
    
    .empresa-text {
        text-align: center;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .empresa-section {
        padding: 60px 0;
    }
    
    .empresa-logo {
        max-width: 200px;
        margin-bottom: 30px;
    }
    
    .empresa-text p {
        font-size: 1rem;
        text-align: center;
    }
}

/* Nuestra Empresa Section */
.empresa-section {
    padding: 100px 0;
    background: #f9fafb;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    color: #ff7d35;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff7d35, #ff9a5a);
    margin: 20px auto 0;
    border-radius: 3px;
}

.empresa-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.empresa-image {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.empresa-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.empresa-logo-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 80%;
}

.empresa-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
}

.years-exp {
    display: block;
    color: #ff7d35;
    font-weight: 600;
    font-size: 0.9rem;
}

.empresa-text {
    flex: 1;
    padding: 50px 50px 50px 0;
}

.empresa-intro {
    margin-bottom: 30px;
}

.empresa-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #4a5568;
}

.empresa-details {
    margin: 40px 0 0;
}

.detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item i {
    font-size: 1.8rem;
    color: #ff7d35;
    margin-top: 5px;
    flex-shrink: 0;
}

.detail-item h4 {
    color: #1a2a51;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.detail-item p {
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

.empresa-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature-box {
    background: #f8f9fa;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #ff7d35;
}

.feature-box i {
    font-size: 2rem;
    color: #ff7d35;
    margin-bottom: 15px;
    display: inline-block;
}

.feature-box h4 {
    color: #1a2a51;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-box p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.empresa-cta {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #ff7d35, #ff9a5a);
    color: white;
    border: none;
}

.btn-outline {
    background: transparent;
    color: #1a2a51;
    border: 2px solid #1a2a51;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .empresa-content {
        flex-direction: column;
    }
    
    .empresa-image {
        min-height: 400px;
        width: 100%;
    }
    
    .empresa-text {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .empresa-features {
        grid-template-columns: 1fr;
    }
    
    .empresa-cta {
        flex-direction: column;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-item i {
        margin: 0 auto 10px;
    }
}

@media (max-width: 480px) {
    .empresa-text {
        padding: 30px 20px;
    }
    
    .empresa-logo-card {
        left: 50%;
        transform: translateX(-50%);
        max-width: 90%;
    }
}

/* Proyectos Realizados Section */
.proyectos-section {
    padding: 80px 0;
    background-color: #fff;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Tips Section */
.map-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tips-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--light-gray);
    overflow: hidden;
}

.tips-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    z-index: 1;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.tips-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--accent-color), #2980b9);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

.tips-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.tips-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto 50px;
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.tip-card {
    width: 100%;
    box-sizing: border-box;
}

/* Responsive Tips */
@media (max-width: 1200px) {
    .tips-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .tips-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 50px;
    }
    
    .tips-section h2 {
        font-size: 1.5rem;
        padding: 0 15px 15px;
        word-wrap: break-word;
    }
}

.tip-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tip-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    font-size: 2rem;
    padding: 25px;
    text-align: center;
}

.tip-card h3 {
    padding: 20px 25px 15px;
    margin: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.tip-content {
    padding: 0 25px 25px;
    flex-grow: 1;
}

.tip-content h4 {
    color: var(--accent-color);
    margin: 15px 0 10px;
    font-size: 1.1rem;
}

.tip-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.tip-content li {
    padding: 5px 0 5px 25px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.tip-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.tip-category h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.tip-content h4 {
    color: #333;
    font-size: 1.3rem;
    margin: 25px 0 15px;
    color: var(--accent-color);
}

.tip-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.tip-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
    position: relative;
    padding-left: 15px;
}

.tip-content li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.professional-support {
    background: linear-gradient(135deg, var(--primary-color), #1a5276);
    padding: 40px 20px;
    border-radius: 16px;
    color: white;
    margin: 80px auto;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(26, 82, 118, 0.2);
}

.professional-support::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), #f39c12);
    z-index: 1;
}

.support-card {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
    padding: 10px;
}

.support-icon {
    background: rgba(255, 255, 255, 0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-color);
    font-size: 3rem;
}

.support-icon i {
    font-size: 3rem;
    color: white;
    transition: all 0.3s ease;
}

.support-card:hover .support-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.support-card:hover .support-icon i {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.support-details {
    flex: 1;
}

.support-details h3 {
    font-size: 1.8rem;
    margin: 0 0 15px;
    color: white;
    position: relative;
    display: inline-block;
}

.support-details p {
    margin: 0;
    line-height: 1.8;
    font-size: 1.1rem;
    color: white;
    opacity: 0.9;
    max-width: 90%;
}

/* Animation for the background */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.support-icon {
    animation: float 4s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .map-container {
        padding-bottom: 100%;
        max-width: 100%;
        margin: 0 auto 30px;
    }
    
    .support-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 10px;
    }
    
    .support-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
        opacity: 1 !important; /* Ensure icon is always visible */
        visibility: visible !important; /* Force visibility */
    }
    
    .support-icon i {
        font-size: 2.5rem;
        display: block !important; /* Ensure icon is displayed */
    }
    
    .support-details h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .professional-support {
        margin: 50px auto;
        padding: 30px 15px;
    }
    
    .support-details p {
        max-width: 100%;
    }
}

/* Projects Section */
#modelos.projects {
    background-color: var(--section-bg);
    padding: 0px 0 80px;
    margin-top: 50px !important;
    position: relative;
}

@media (min-width: 992px) {
    #modelos.projects {
        padding: 100px 0 80px;
        margin-top: 0;
        padding-top: 180px; /* Add more space at the top for desktop */
    }
}

.projects h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-category {
    margin-bottom: 40px;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.category-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
}

.category-description {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 300px;
    cursor: pointer;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    color: white;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
    transform: translateY(0);
}

.project-overlay h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-details {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.project-details span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.project-details i {
    color: var(--accent-color);
    width: 16px;
    text-align: center;
    font-size: 1rem;
}

/* Adjust layout for different screen sizes */
@media (max-width: 992px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-item {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .projects h1 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .category-header h2 {
        font-size: 1.8rem;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        height: 300px;
    }
}

/* Process Section */
.process {
    background-color: var(--light-gray);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    transition: var(--transition);
}

.step:hover .step-icon {
    background-color: var(--accent-color);
    transform: rotate(360deg);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Jahuen SPA Page Styles */
.hero-jahuen {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
    box-sizing: border-box;
    background: linear-gradient(107deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.6) 100%), 
                url('../photos/hero-bg.jpg') no-repeat center center/cover;
    background-attachment: scroll;
    color: #fff;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

/* Ensure all content within hero is centered */
.hero-jahuen .container,
.hero-jahuen .jahuen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-jahuen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    z-index: 10;
}

.hero-jahuen::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.jahuen-content {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 60px 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateZ(0);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.jahuen-content:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.jahuen-logo {
    max-width: 300px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.4));
}

.jahuen-content h1 {
    font-size: 3.5rem;
    margin: 20px auto;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
    max-width: 100%;
    width: 100%;
    text-align: center;
}

.jahuen-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 0 auto 30px;
    max-width: 700px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    padding: 0;
    width: 100%;
    text-align: center;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 30px auto 0;
    width: 100%;
    max-width: 600px;
}

.hero-buttons .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin: 5px;
    min-width: 180px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-buttons .btn-primary {
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.hero-buttons .btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.back-to-kasakit {
    display: inline-block;
    margin-top: 40px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.back-to-kasakit i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.back-to-kasakit:hover {
    color: var(--accent-color);
}

.back-to-kasakit:hover i {
    transform: translateX(-5px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.back-to-kasakit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.back-to-kasakit:hover {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

#loadMoreBtn:hover {
    background: #d46e1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#remainingModels {
    color: #666;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

/* Projects Section */
#modelos.projects {
    padding: 100px 0 80px;
    background-color: #f9f9f9;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

/* Ajuste para desktop */
@media (min-width: 1024px) {
    #modelos.projects {
        padding-top: 200px; /* Aumentado de 100px */
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.services h2 {
    text-align: center;
    margin: 0 auto 60px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px 15px;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1) 0%, rgba(230, 126, 34, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

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

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-item p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .jahuen-content h1 {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .hero-jahuen {
        height: 70vh;
        min-height: 400px;
    }
    
    .jahuen-content h1 {
        font-size: 2.2rem;
    }
    
    .jahuen-content p {
        font-size: 1.1rem;
    }
    
    .service-item {
        padding: 30px 20px;
    }
}

/* Section Styling */
section {
    background-color: var(--section-bg);
    padding: 80px 0;
    width: 100%;
}

/* Card Styling */
.model-item,
.card,
.info-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

/* Models Grid Section */
.models-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    margin: 40px 0;
    padding: 0 20px;
}

.model-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    aspect-ratio: 4/3.5; /* Slightly taller aspect ratio */
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    outline: none;
}

.model-item[role="button"]:focus-visible {
    box-shadow: 0 0 0 3px var(--accent-color);
    transform: translateY(-2px);
}

/* Hover effect for all model items */
.model-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* More pronounced hover effect for clickable model items */
.model-item[role="button"]:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.model-item:hover .model-overlay {
    transform: translateY(0);
    opacity: 1;
    padding-bottom: 25px;
}

.model-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.model-item:hover img {
    transform: scale(1.05);
}

.model-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 15px 15px 10px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0);
    opacity: 0.9;
    backdrop-filter: blur(2px);
}

.model-overlay h3 {
    margin: 0 0 5px;
    color: white;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 8px;
}

.model-details span {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.35);
    padding: 3px 8px;
    border-radius: 12px;
    backdrop-filter: blur(2px);
    transition: all 0.2s ease;
    line-height: 1.2;
}

.model-details span i {
    color: var(--accent-color);
    font-size: 0.9em;
}

.model-item:hover .model-details span {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.coming-soon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
}

.load-more-container {
    text-align: center;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    grid-column: 1 / -1;
}

#loadMoreBtn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

#loadMoreBtn:hover {
    background: #d46e1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#remainingModels {
    color: #666;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 40px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 30px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 82, 118, 0.2);
}

.filter-btn:active {
    transform: translateY(0);
}

/* Loading spinner for infinite scroll */
.loading-spinner {
    display: none;
    width: 40px;
    height: 40px;
    margin: 30px auto;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Infinite scroll trigger */
.scroll-trigger {
    height: 20px;
    width: 100%;
    margin: 20px 0;
    background: transparent;
}

/* Responsive Grid Layout */
@media (max-width: 1200px) {
   .models-grid {
       grid-template-columns: repeat(3, 1fr);
       padding: 0 15px;
   }
}

@media (max-width: 900px) {
   .models-grid {
       grid-template-columns: repeat(2, 1fr);
       padding: 0 15px;
   }
}

@media (max-width: 600px) {
   .models-grid {
       grid-template-columns: 1fr;
       padding: 0 10px;
   }
   
   .model-item {
       max-width: 100%;
       margin: 0 auto 20px;
       min-height: 250px;
       display: block !important;
   }
   
   .models-grid {
       display: block !important;
   }
   
   .model-item.hidden {
       display: none !important;
   }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin: 0 auto 50px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.footer-logo {
    grid-column: span 1;
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer h4 {
    color: white;
    font-size: 1.3rem;
    margin: 0 0 25px 0;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
    text-align: left;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

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

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-info i {
    margin-right: 12px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
    margin-top: 4px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 30px;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-logo img {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer h4 {
        margin-top: 30px;
        text-align: center;
    }
    
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul {
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .tips-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .empresa-content,
    .casa-piloto-content,
    .contacto-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .empresa-image {
        order: -1;
    }
    
    .casa-piloto-content {
        flex-direction: column;
    }
    
    .casa-piloto-gallery {
        order: -1;
        width: 100%;
        min-height: 300px;
    }
    
    .tips-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .contacto-content,
    .casa-piloto-text {
        padding: 30px 20px;
    }
    
    .casa-piloto-section h2,
    .contacto-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 1024px) {
    .main-nav ul li {
        margin-left: 15px;
    }
    
    .main-nav ul li a {
        font-size: 0.9rem;
        padding: 5px 0;
    }
    
    .main-nav ul li a.highlight {
        padding: 5px 15px;
    }
}

@media (max-width: 992px) {
    .header {
        padding: 5px 0;
    }
    
    .header .container {
        padding: 0 10px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .main-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 8px;
        margin-top: 8px;
    }
    
    .main-nav .nav-list {
        padding-bottom: 5px;
    }
    
    .main-nav a {
        font-size: 0.85rem;
        padding: 5px 8px;
    }
    
    /* Hide scrollbar but keep functionality */
    .main-nav::-webkit-scrollbar {
        display: none;
    }
    
    .main-nav {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 5px;
    }
    
    .main-nav a {
        font-size: 0.8rem;
        padding: 5px;
    }
}

/* Adjust header height for mobile */
.header {
    height: auto;
}

/* Ensure content is below fixed header */
main {
    margin-top: 0;
}

.btn {
    padding: 10px 20px;
}

@media (max-width: 768px) {
    .project-gallery,
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--white);
        padding: 100px 30px 30px;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav ul li {
        margin: 10px 0;
        width: 100%;
    }
    
    .main-nav ul li a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: block;
        width: 100%;
    }
    
    .main-nav ul li a.highlight {
        text-align: center;
        padding: 10px 20px;
        margin-top: 10px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .project-gallery,
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   #FOOTER
   ========================================================================== */

.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 60px 0 0;
    width: 100%;
    margin: 0;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
    align-items: start;
}

/* Ensure all grid items align to the start */
.footer-content > * {
    justify-self: stretch;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-brand img {
    height: 65px;
    margin-bottom: 15px;
    max-width: 100%;
    width: auto;
}

.footer p {
    color: #a8b2d1;
    line-height: 1.7;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    color: #fff;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4,
.footer-brand h4 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 15px;
    min-height: 50px;
    display: flex;
    align-items: flex-end;
}

.footer-brand h4 {
    opacity: 0;
    pointer-events: none;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-brand h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

/* Ensure all sections start at the same height */
.footer-brand,
.footer-links,
.footer-contact {
    padding-top: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #a8b2d1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-links i {
    margin-right: 8px;
    font-size: 0.7rem;
    color: var(--accent-color);
    min-width: 15px;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    margin: 0;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.footer-contact i {
    color: var(--accent-color);
    margin-right: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact a {
    color: #a8b2d1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    margin-top: 20px;
}

.footer-bottom > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.footer-bottom p {
    margin: 0;
    color: #a8b2d1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* Responsive Footer */
/* Jahuen: remove duplicate orange lines under footer headings (keep only inline span in HTML) */
body.jahuen-page .footer h4::after {
    display: none !important;
}
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: span 2;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-brand p {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul,
    .footer-contact ul {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-brand {
        grid-column: auto;
        margin-bottom: 30px;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }
    
    .footer-links ul,
    .footer-contact ul {
        align-items: center;
    }
    
    .footer-contact li {
        justify-content: center;
        text-align: center;
    }
    
    .footer-bottom > div {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .footer-legal a {
        display: block;
        padding: 5px 0;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 0;
    }
    
    .footer-brand img {
        height: 50px;
    }
    
    .footer p,
    .footer-links a,
    .footer-contact a,
    .footer-bottom p,
    .footer-bottom a {
        font-size: 0.9rem;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
}

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

/* Base responsive styles */
@media (max-width: 1200px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* Fix for small screens */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Ensure no horizontal scroll */
    img, video, iframe, object, embed, svg {
        max-width: 100%;
        height: auto;
    }
    
    /* Mobile Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }
    
    .footer-brand,
    .footer-links,
    .footer-contact {
        margin-bottom: 30px !important;
        text-align: center !important;
    }
    
    .footer h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .footer-social {
        justify-content: center !important;
    }
    
    .footer-bottom {
        text-align: center !important;
    }
    
    .footer-bottom > div {
        flex-direction: column;
        gap: 15px;
    }
}

/*
 * Breakpoints:
 * - Large devices (desktops, 1200px and up)
 * - Medium devices (tablets, 992px - 1199.98px)
 * - Small devices (landscape phones, 768px - 991.98px)
 * - Extra small devices (portrait phones, 576px - 767.98px)
 * - Tiny devices (phones, less than 576px)
 */

/* ==========================================================================
   #1. LAYOUT & GRID
   ========================================================================== */

/* Container adjustments */
@media (max-width: 1199.98px) {
    .container {
        width: 90%;
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 575.98px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
}

/* ==========================================================================
   #2. NAVIGATION
   ========================================================================== */

/* Tablet and below */
@media (max-width: 991.98px) {
    .navbar .menu {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
}

/* Mobile navigation */
@media (max-width: 767.98px) {
    .navbar {
        padding: 15px 0;
    }
    
    .logo img {
        max-height: 30px;
    }
}

/* ==========================================================================
   #3. HERO SECTION
   ========================================================================== */

/* Large desktops */
@media (min-width: 1200px) {
    .hero-jahuen {
        min-height: 70vh;
    }
}

/* Tablets */
@media (max-width: 1199.98px) {
    .hero-jahuen h1 {
        font-size: 3rem;
    }
    
    .hero-jahuen p {
        font-size: 1rem;
    }
}

/* Small tablets */
@media (max-width: 991.98px) {
    .hero-jahuen {
        min-height: 60vh;
        padding: 60px 0;
    }
    
    .hero-jahuen h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .hero-jahuen p {
        font-size: 0.95rem;
        max-width: 90%;
    }
}

/* Instagram Gallery Styles */
.instagram-gallery {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
}

.instagram-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(64, 93, 230, 0.04) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(253, 29, 29, 0.04) 0%, transparent 30%);
    z-index: 0;
    pointer-events: none;
}

.instagram-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.instagram-header h2 {
    color: #1a1a2e;
    font-weight: 800;
    font-size: 3rem;
    margin: 0 0 15px 0;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.instagram-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.instagram-header h2 span {
    color: var(--accent-color);
    position: relative;
}

.instagram-header p {
    color: #4a4a6a;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 25px auto 0;
    line-height: 1.7;
    font-weight: 400;
    opacity: 0.9;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0 30px;
    position: relative;
    z-index: 1;
    align-items: stretch;
}

.instagram-post {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 100%;
    min-height: 400px;
}

.instagram-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.instagram-post::after {
    content: 'Ver en Instagram';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.instagram-post:hover::before {
    opacity: 0.9;
}

.instagram-post:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.instagram-post:hover .instagram-media {
    transform: scale(1.05);
}

.instagram-media {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 400px;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.instagram-post iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.instagram-post:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Instagram Footer Button */
.instagram-footer {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #405DE6 0%, #5851DB 10%, #833AB4 30%, #C13584 50%, #E1306C 70%, #FD1D1D 90%, #F56040 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.instagram-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(230, 126, 34, 0.4);
}

.instagram-button:hover::before {
    opacity: 1;
}

.instagram-button i {
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

.instagram-button:hover i {
    transform: scale(1.1);
}

/* Media queries for Instagram gallery */
@media (max-width: 1200px) {
    .instagram-grid {
        max-width: 1000px;
        gap: 22px;
    }
}

@media (max-width: 992px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .instagram-header h2 {
        font-size: 2.6rem;
    }
    
    .instagram-header p {
        font-size: 1.1rem;
        max-width: 600px;
    }
    
    .instagram-footer {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .instagram-gallery {
        padding: 80px 0 60px;
    }
    
    .instagram-header {
        margin-bottom: 50px;
    }
    
    .instagram-header h2 {
        font-size: 2.2rem;
    }
    
    .instagram-header h2::after {
        width: 60px;
        height: 3px;
        bottom: -8px;
    }
    
    .instagram-header p {
        font-size: 1.05rem;
        max-width: 500px;
        margin-top: 20px;
    }
    
    .instagram-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        padding: 0 20px;
        gap: 18px;
    }
    
    .instagram-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .instagram-gallery {
        padding: 70px 0 50px;
    }
    
    .instagram-header h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .instagram-header p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .instagram-button {
        width: 90%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Landscape phones */
@media (max-width: 767.98px) {
    .hero-jahuen {
        min-height: auto;
        padding: 100px 20px 60px !important;
        height: auto !important;
    }
    .instagram-gallery {
        padding: 100px 0;
        background: linear-gradient(135deg, #f8f9fc 0%, #eef2f7 100%);
        position: relative;
        overflow: hidden;
    }

    .instagram-gallery::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 200px;
        background: linear-gradient(135deg, rgba(64, 93, 230, 0.03) 0%, rgba(253, 29, 29, 0.03) 100%);
        z-index: 0;
    }

    .instagram-header {
        text-align: center;
        margin-bottom: 60px;
        position: relative;
        z-index: 1;
    }

    .instagram-header h2 {
        color: #2c3e50;
        font-weight: 800;
        font-size: 2.8rem;
        margin: 0 0 20px 0;
    }

    .instagram-header h2 span {
        color: var(--accent-color);
    }

    .instagram-header p {
        color: #555;
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.7;
    }

    .instagram-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 1200px;
        margin: 50px auto 0;
        padding: 0 20px;
        position: relative;
        z-index: 1;
    }

    .instagram-post {
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        border: 1px solid rgba(0,0,0,0.03);
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .instagram-post:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }

    .instagram-post iframe {
        width: 100% !important;
        height: 100% !important;
        border: none;
    }

    /* Media queries for Instagram gallery */
    @media (max-width: 992px) {
        .instagram-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .instagram-post::after {
            font-size: 0.9rem;
        }
        
        .instagram-gallery {
            padding: 60px 0;
        }
        
        .instagram-header h2 {
            font-size: 2.2rem;
        }
        
        .instagram-grid {
            grid-template-columns: 1fr;
            padding: 0 15px;
            gap: 20px;
        }
    }
    
    .hero-jahuen h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }
    
    .hero-jahuen h1::before {
        width: 60px;
        bottom: -10px;
    }
    
    .hero-jahuen p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 25px;
    }
    
    .hero-jahuen p::after {
        font-size: 1.2rem;
        margin-top: 15px;
        letter-spacing: 6px;
    }
}

/* Portrait phones */
@media (max-width: 575.98px) {
    .hero-jahuen {
        min-height: auto;
        padding: 80px 15px 50px !important;
        height: auto !important;
    }
    
    .hero-jahuen h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }
    
    .hero-jahuen h1::before {
        width: 50px;
        bottom: -8px;
    }
    
    .hero-jahuen p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .hero-jahuen p::after {
        font-size: 1rem;
        letter-spacing: 4px;
    }
}

/* Very small phones */
@media (max-width: 399.98px) {
    .hero-jahuen h1 {
        font-size: 1.6rem;
    }
    
    .hero-jahuen p {
        font-size: 0.8rem;
    }
}

/* Instagram Button Styles */
.instagram-footer {
    text-align: center;
    margin: 10px 0px;
    width: 100%;
    padding: 0 15px;
    right: -450px;
    position: relative;
}

/* Center Instagram button on mobile */
@media (max-width: 768px) {
    .instagram-footer {
        right: 0;
        transform: none;
        margin: 10px auto;
    }
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.instagram-button i {
    margin-right: 10px;
    font-size: 1.2em;
}

.instagram-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   #4. BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */

/* Tablet and below */
@media (max-width: 991.98px) {
    .btn {
        padding: 12px 30px;
        font-size: 0.8rem;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .btn-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        padding: 10px 25px;
        font-size: 0.75rem;
    }
}

/* Very small phones */
@media (max-width: 399.98px) {
    .btn {
        padding: 8px 20px;
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   #5. GRID LAYOUTS
   ========================================================================== */

/* Services grid */
@media (max-width: 991.98px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile grid */
@media (max-width: 767.98px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-info div {
        width: 100%;
    }
}

/* ==========================================================================
   #6. PRINT STYLES
   ========================================================================== */

@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
}

/* ============================================
   CASA PILOTO SECTION - REDESIGN
   ============================================ */
.casa-piloto-section {
    padding: 30px 0;
    background-color: #f7f9fc;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    overflow: hidden;
}

.casa-piloto-section .container {
    background-color: transparent;
    padding: 0 15px;
    margin: 0 auto;
    max-width: 1200px;
}

.casa-piloto-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.gallery-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.main-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    background: white;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #e67e22;
    transform: scale(1.05);
}

.info-details-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.header-info {
    text-align: center;
    margin-bottom: 20px;
}

.header-info .tagline {
    color: #e67e22;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.header-info h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 10px 0;
    line-height: 1.3;
}

.features-list {
    margin: 25px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.icon-feature {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #e67e22;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.feature-text h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1rem;
}

.feature-text p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.location-map {
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.location-map h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
}

.location-map h4 i {
    color: #e67e22;
}

.map-iframe-wrapper {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.map-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.cta-action {
    text-align: center;
    margin-top: 25px;
}

.btn-primary-large {
    display: inline-block;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    width: 100%;
    max-width: 280px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.cta-note {
    margin-top: 15px;
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

@media (min-width: 576px) {
    .main-image-wrapper {
        height: 300px;
    }
    
    .thumbnail {
        height: 100px;
    }
    
    .header-info h3 {
        font-size: 1.8rem;
    }
    
    .btn-primary-large {
        padding: 15px 30px;
    }
}

@media (min-width: 992px) {
    .casa-piloto-content {
        flex-direction: row;
        gap: 40px;
        margin-top: 30px;
    }
    
    .gallery-container {
        flex: 1;
        position: sticky;
        top: 20px;
    }
    
    .main-image-wrapper {
        height: 350px;
    }
    
    .info-details-container {
        flex: 1;
        padding: 30px;
    }
    
    .header-info {
        text-align: left;
    }
    
    .location-map h4 {
        justify-content: flex-start;
    }
    
    .btn-primary-large {
        width: auto;
    }
}

@media (min-width: 1200px) {
    .main-image-wrapper {
        height: 400px;
    }
    
    .casa-piloto-content {
        gap: 60px;
    }
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #1a2a51;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

/* Gallery Styles */
.gallery-container {
    background: #f7f9fc;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: auto;
    padding: 10px 0 15px;
    margin: 0 auto;
    max-width: 600px;
}

/* Asegurar que las imágenes tengan esquinas redondeadas */
.gallery-container img {
    border-radius: 12px;
}

.main-image-wrapper {
    height: 250px;
    overflow: hidden;
    max-width: 90%;
    margin: 0 auto;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-container:hover .main-image {
    transform: scale(1.05);
}

.thumbnails-grid {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 0;
    border-top: 1px solid #f0f0f0;
    max-width: 90%;
    margin: 0 auto;
}

.thumbnail {
    width: 70px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.thumbnail.active, 
.thumbnail:hover {
    border-color: #ff7d35;
    opacity: 1;
    transform: scale(1.05);
}

/* Info Section */
.info-details-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.header-info {
    margin-bottom: 10px;
}

.tagline {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff7d35;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.header-info h3 {
    font-size: 2rem;
    color: #1a2a51;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Estilo moderno para los íconos */
.icon-feature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff7d35, #ff9a5a);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
    margin-right: 15px;
}

/* Efecto hover sutil */
.icon-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 125, 53, 0.3);
}

/* Asegurar que los íconos de Font Awesome se centren perfectamente */
.icon-feature i {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    position: relative;
}

/* Ajuste fino para íconos específicos si es necesario */
.icon-feature .fa-home { transform: translateY(1px); }
.icon-feature .fa-ruler-combined { transform: translateY(1px) rotate(-15deg); }
.icon-feature .fa-palette { transform: translateY(1px); }
.feature-text h4 {
    font-size: 1.1rem;
    color: #1a2a51;
    margin: 0 0 5px 0;
}

.feature-text p {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Map Section */
.location-map {
    width: 100%;
    margin: 0;
    order: -1; /* Mover el mapa al principio */
}

.location-map h4 {
    font-size: 1.3rem;
    color: #1a2a51;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-map h4 i {
    color: #ff7d35;
}

.map-iframe-wrapper {
    position: relative;
    padding-bottom: 40%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.map-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* CTA Button */
.cta-action {
    text-align: center;
    margin-top: 10px;
}

.btn-primary-large {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(45deg, #ff7d35, #ff9955);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(255, 125, 53, 0.25);
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 125, 53, 0.4);
    background: linear-gradient(45deg, #ff6f1f, #ff8a3d);
}

.cta-note {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 15px;
    line-height: 1.5;
}

/* Responsive Styles */
@media (min-width: 992px) {
    .features-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .feature-item {
        margin: 0;
        padding: 15px;
    }
    
    .main-image-wrapper {
        height: 280px;
    }
    
    .map-iframe-wrapper {
        padding-bottom: 50%;
    }
}

@media (max-width: 1200px) {
    .content-wrapper {
        gap: 20px;
    }
    
    .main-image-wrapper {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .casa-piloto-section {
        padding: 50px 0;
        margin-top: -10px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .header-info h3 {
        font-size: 1.7rem;
    }
    
    .main-image-wrapper {
        height: 300px;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .btn-primary-large {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .header-info h3 {
        font-size: 1.5rem;
    }
    
    .main-image-wrapper {
        height: 250px;
    }
    
    .thumbnails-grid {
        padding: 15px 10px;
        gap: 10px;
    }
    
    .thumbnail {
        height: 70px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px 15px;
    }
    
    .icon-feature {
        margin: 0 0 15px 0;
    }
    
    .btn-primary-large {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px 15px;
    }
    
    .icon-feature {
        margin: 0 0 15px 0;
    }
    
    .btn-primary-large {
        max-width: 100%;
    }
}
