:root {
    --primary: #1d1d1f;
    --secondary: #515154;
    --accent: #007aff;
    --accent-secondary: #34c759;
    --bg: #f5f5f7;
    --bg-secondary: #fbfbfd;
    --text: #1d1d1f;
    --text-light: #6e6e73;
    --text-muted: #86868b;
    --white: #ffffff;
    --gray-light: #f5f5f7;
    --gray-medium: #e5e5e7;
    --shadow-light: 0 2px 16px rgba(0,0,0,0.04);
    --shadow-medium: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-heavy: 0 16px 40px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --border-radius-large: 20px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: -0.01em;
}

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

/* Header compacto y alineado */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-light);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex: 1;
    min-width: 0; /* Permite que el contenido se contraiga */
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
    flex-shrink: 0; /* Evita que la imagen se contraiga */
}

.header.scrolled .logo-img {
    height: 32px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    transition: font-size 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0; /* Permite que el texto se contraiga */
}

.header.scrolled .logo-text {
    font-size: 1rem;
}

/* Botón hamburguesa - oculto por defecto */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

.nav-container {
    display: flex;
}

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

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

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

.header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 1;
    max-height: 50px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .header-info {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
}

.contact-data {
    color: var(--text-light);
    font-weight: 500;
}

.contact-data a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.social {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    font-size: 20px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

/* Colores específicos para cada red social */
.fa-whatsapp {
    color: #25D366;
}

.fa-facebook {
    color: #1877F2;
}

.fa-instagram {
    color: #E4405F;
}

.social-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.header.scrolled .social-icon {
    font-size: 18px;
}

/* Hero slider ocupa todo el fondo */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding-top: 80px; /* Espacio para header fijo */
}

.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
    left: 0; top: 0;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
    padding: 6rem 0;
    max-width: 800px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26,35,126,0.7), rgba(44,56,126,0.6));
    z-index: 2;
    pointer-events: none;
}

.hero h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    background: var(--accent);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    letter-spacing: 0.02em;
}

.btn:hover {
    background: var(--white);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    color: var(--primary);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.services {
    padding: 6rem 0;
    background: var(--white);
}

.about {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(245, 247, 250, 0.9) 0%, 
        rgba(195, 207, 226, 0.8) 50%, 
        rgba(235, 240, 248, 0.9) 100%);
    z-index: 1;
}

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

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-preview p,
.about-expanded p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.about-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    opacity: 0;
    margin-top: 0;
}

.about-expanded.show {
    max-height: 1200px;
    opacity: 1;
    margin-top: 1.5rem;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.about-signature {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent);
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-signature strong {
    color: var(--primary);
    font-size: 1.2rem;
}

.about-signature em {
    color: var(--text-light);
    font-style: normal;
    font-weight: 500;
}

.about-toggle-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 122, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.2);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 122, 255, 0.2);
}

.about-toggle-btn .btn-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.about-toggle-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

.contact {
    padding: 6rem 0;
    background: var(--white);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.contact-bottom-row {
    width: 100%;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary), #2980b9);
    border-radius: 24px;
    padding: 2.5rem;
    color: var(--white);
    box-shadow: var(--shadow-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h4 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--white);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem 0;
}

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

.contact-item i {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item span {
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500;
}

.contact-form {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.contact-form h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-form p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    grid-column: 1 / -1;
}

.contact-form .btn {
    align-self: flex-start;
    padding: 1rem 2.5rem;
    margin-top: 1rem;
}

.contact-map-container {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23dee2e6"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>') center/60px no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.contact-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    position: relative;
    z-index: 2;
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.map-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.map-link i {
    font-size: 14px;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.whatsapp-float a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-float a:hover::before {
    opacity: 1;
}

.whatsapp-float i {
    font-size: 28px;
    z-index: 1;
    position: relative;
}

/* Animación de pulso para llamar la atención */
.whatsapp-float a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid #25D366;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    animation: whatsapp-pulse 2s infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float i {
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float i {
        font-size: 22px;
    }
}

/* Responsive para contacto */
@media (max-width: 900px) {
    .contact-content {
        gap: 3rem;
        max-width: 90%;
    }
    
    .contact-top-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .contact-map-container {
        min-height: 300px;
        border-radius: 20px;
    }
}

@media (max-width: 600px) {
    .contact {
        padding: 4rem 0;
    }
    
    .contact-content {
        gap: 2.5rem;
    }
    
    .contact-top-row {
        gap: 2.5rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-map-container {
        min-height: 250px;
    }
    
    .contact-item {
        margin-bottom: 1.2rem;
    }
    
    .contact-item i {
        width: 40px;
        height: 40px;
    }
}

/* Hero de servicios con imagen y texto lado a lado */
.services-hero {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-light);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.services-hero-content {
    flex: 1;
}

.services-hero-image {
    flex: 1;
    max-width: 500px;
}

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

.services-intro {
    max-width: none;
    margin: 0;
    text-align: left;
}

.services-intro p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 400;
}

.services-intro p:last-child {
    margin-bottom: 0;
}

/* Cards de servicios modernas - 2 por fila */
.service-list-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: fit-content;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

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

.service-card-image {
    width: 100%;
    height: 220px;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.service-card-content {
    flex: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
}

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

.service-card h4 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-weight: 400;
}

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

.service-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.service-features li:last-child {
    margin-bottom: 0;
}

.service-features i {
    color: var(--accent);
    font-size: 16px;
    width: 20px;
    height: 20px;
    background: rgba(255, 179, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive para servicios */
@media (max-width: 900px) {
    .services-hero {
        flex-direction: column;
        text-align: center;
        max-width: 90%;
        gap: 3rem;
        padding: 2.5rem;
    }
    
    .service-list-modern {
        grid-template-columns: 1fr;
        max-width: 90%;
        gap: 2rem;
    }
    
    .services, .about, .contact {
        padding: 4rem 0;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 70vh;
    }
    
    .hero-content {
        padding: 4rem 0;
    }
    
    .services-hero {
        padding: 2rem;
        gap: 2rem;
        border-radius: 20px;
    }
    
    .service-card {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .hero-service-img {
        height: 250px;
    }
    
    .service-card-image {
        height: 180px;
    }
    
    .container {
        padding: 0 15px;
    }
}

.about p {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    font-size: 1.1rem;
    text-align: left;
    line-height: 1.8;
}

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



.footer {
    background: linear-gradient(135deg, var(--primary) 0%, #1a1a1c 100%);
    color: var(--white);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 122, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 179, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

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

.footer-contact .contact-item,
.footer-schedule .schedule-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-contact .contact-item i {
    width: 18px;
    color: var(--accent);
    background: none;
    border-radius: 0;
    height: auto;
}

.footer-schedule .schedule-item {
    justify-content: space-between;
}

.footer-schedule .day {
    color: rgba(255, 255, 255, 0.8);
}

.footer-schedule .time {
    color: var(--white);
    font-weight: 600;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.footer-developer {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.developer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.developer-link:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.developer-logo-img {
    height: 20px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.developer-link:hover .developer-logo-img {
    opacity: 1;
}

.developer-link strong {
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive para footer */
@media (max-width: 1024px) {
    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 3rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-schedule .schedule-item {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-contact .contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2.5rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-sections {
        gap: 2rem;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
    }
    
    .developer-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .developer-logo-img {
        height: 16px;
    }
}

/* Animaciones al scrollear - estilo Apple */
.scroll-animate, .fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible, .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animación escalonada para elementos múltiples */
.scroll-animate:nth-child(1).visible { transition-delay: 0.1s; }
.scroll-animate:nth-child(2).visible { transition-delay: 0.2s; }
.scroll-animate:nth-child(3).visible { transition-delay: 0.3s; }

/* Modal de presupuesto */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.7) translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    color: var(--primary);
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary);
}

.quote-form {
    padding: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26,35,126,0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: #6c757d;
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Responsive modal */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .header-flex {
        gap: 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
        max-width: 180px; /* Limita el ancho del texto */
    }
    
    .header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .service-list {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }
    
    .nav-container.active {
        right: 0;
    }
    
    .nav {
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        width: 100%;
    }
    
    .nav li {
        width: 100%;
        border-bottom: 1px solid var(--gray-medium);
    }
    
    .nav li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        transition: all 0.3s ease;
    }
    
    .nav a:hover {
        background: var(--bg);
        color: var(--accent);
    }
    
    .logo-text {
        font-size: 0.9rem;
        max-width: 140px;
    }
    
    .header-info {
        padding: 0.5rem 0;
    }
    
    .contact-data {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

@media (max-width: 600px) {
    .container {
        width: 98%;
    }
    
    .logo-text {
        font-size: 0.8rem;
        max-width: 120px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .header.scrolled .logo-img {
        height: 28px;
    }
    
    .contact-data {
        font-size: 0.8rem;
    }
    
    .social {
        gap: 0.8rem;
    }
    
    .social-icon {
        font-size: 18px;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .logo-img {
        height: 28px;
    }
}

/* Overlay para el menú móvil */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Evitar scroll del body cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
}

/* Galería tipo Pinterest/Masonry */
.gallery-masonry {
    padding: 3rem 0 2rem 0;
    background: var(--bg-secondary);
}
.gallery-masonry .section-title {
    text-align: center;
    margin-bottom: 2rem;
}
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.masonry-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    will-change: transform;
    opacity: 0;
    transform: translateY(30px);
}
.masonry-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.masonry-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 220px;
    transition: transform 0.3s;
}
.masonry-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
@media (max-width: 900px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
    .masonry-item img {
        height: 160px;
    }
}
@media (max-width: 600px) {
    .gallery-masonry {
        padding: 2rem 0 1rem 0;
    }
    .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.7rem;
    }
    .masonry-item img {
        height: 100px;
    }
}

/* Modal para zoom de imagen galería */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}
.gallery-modal.active {
    display: flex;
    opacity: 1;
}
.gallery-modal-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    background: #fff;
    object-fit: contain;
    animation: zoomIn 0.3s;
}
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.gallery-modal-close {
    position: absolute;
    top: 32px;
    right: 48px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 2100;
    transition: color 0.2s;
}
.gallery-modal-close:hover {
    color: var(--accent);
}
@media (max-width: 600px) {
    .gallery-modal-close {
        top: 16px;
        right: 16px;
        font-size: 2rem;
    }
    .gallery-modal-img {
        max-width: 98vw;
        max-height: 60vh;
    }
}