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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Color Variables */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --accent-blue: #60a5fa;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --dark-gray: #374151;
    --text-gray: #6b7280;
    --text-color: #333333;
    --border-gray: #e5e7eb;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gray);
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.company-name {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-blue);
}

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

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

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

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

.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Container - Vertical Layout */
.main-container {
    display: block;
    width: 100%;
    margin-top: 70px;
    overflow-x: hidden;
    overflow-y: auto;
}

.section {
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    opacity: 1;
    transform: none;
    transition: none;
    margin: 0 auto;
    box-sizing: border-box;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Hero Section Styles */
.hero-section {
    background: white;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    z-index: 2;
}

.hero-logo {
    margin-bottom: 2rem;
}

.company-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-text {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.hero-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-stat .stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-blue);
    border: 2px solid var(--secondary-blue);
}

.btn-secondary:hover {
    background: var(--secondary-blue);
    color: white;
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    font-weight: 400;
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    padding-right: 2rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.value-propositions {
    margin: 2rem 0;
}

.value-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.value-item i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.value-item span {
    font-weight: 500;
    color: var(--text-color);
}

.company-highlights {
    margin-top: 2rem;
}

.company-highlights h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.highlights-list {
    list-style: none;
    padding: 0;
}

.highlights-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.highlights-list li::before {
    content: "▶";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.why-choose-us h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.reason-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.reason-item i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.1rem;
}

.reason-item span {
    font-weight: 500;
    color: var(--text-color);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-blue);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
}

/* Services Section */
.services-section {
    background: white;
}

/* Service Features List */
.service-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

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

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

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

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

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

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

/* Projects Section */
.projects-section {
    background: white;
}

/* Projects Stats */
.projects-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 15px;
}

.projects-stats .stat-item {
    text-align: center;
    color: white;
}

.projects-stats .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.projects-stats .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Project Details */
.project-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.project-tag {
    background: var(--primary-blue);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-client {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-style: italic;
}

.project-type,
.project-year {
    padding: 0.5rem 1rem;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: white;
}

/* Contact Section Styles - Centered Layout */
.contact-content-centered {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    width: 100%;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.15);
}

.contact-icon {
    background: var(--primary-color);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
}

/* Make entire icon clickable when wrapped in a link */
.contact-icon a {
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WhatsApp-specific styling */
.contact-item.whatsapp .contact-icon {
    background: #25D366;
}

/* QR image styling inside contact details */
.contact-item .qr-image {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-top: 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* Center contact details content */
.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Center WhatsApp card on desktop (3-column grid) */
@media (min-width: 1025px) {
    .contact-item.whatsapp {
        grid-column: 2;
    }
}

.contact-details h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

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

.commitment-message {
    margin-top: 3rem;
    text-align: center;
}

.commitment-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.commitment-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.commitment-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.commitment-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: white;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo .company-name {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        margin-top: 60px;
    }
    
    .section {
        min-height: calc(100vh - 60px);
        padding: 3rem 1rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .service-card {
        padding: 2rem 1rem;
        margin-bottom: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto 1rem auto;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .service-card p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        text-align: center;
    }
    
    .service-card li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .project-card {
        margin-bottom: 1rem;
        padding: 1.5rem 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .project-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .project-card p {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .about-content {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .about-text {
        max-width: 100%;
        margin-bottom: 1rem;
        padding-right: 0;
    }
    
    .about-stats {
        max-width: 100%;
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content-centered {
        padding: 0 1rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .contact-icon i {
        font-size: 1.3rem;
    }
    
    .contact-details h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-details p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-gray);
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .nav-container {
        padding: 0 1rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .company-name {
        font-size: 0.8rem;
        display: none;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .social-links {
        position: fixed;
        bottom: 0.4rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        background: rgba(255, 255, 255, 0.9);
        padding: 0.5rem;
        border-radius: 25px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 1.5rem 0.5rem;
        min-height: auto;
        margin: 0;
    }
    
    .section-content {
        padding: 0 0.5rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-content {
        padding: 1rem 0.5rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-logo {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .company-logo {
        max-width: 200px;
        display: block;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
        text-align: center;
        max-width: 100%;
    }
    
    .hero-stats {
        gap: 1.5rem;
        margin-top: 2rem;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .hero-stat {
        padding: 1rem 0.5rem;
        min-width: 80px;
        flex: 1;
        max-width: 100px;
        margin: 0 auto;
    }
    
    .hero-stat .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-stat .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .company-logo {
        max-width: 150px;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .hero-stat {
        padding: 0.8rem 0.5rem;
        min-width: 70px;
    }
    
    .hero-stat .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stat .stat-label {
        font-size: 0.7rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .service-card,
    .project-card {
        margin-bottom: 1rem;
    }
}

/* Mejoras adicionales para móviles iPhone */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .company-name {
        display: none;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .section {
        padding: 1rem 0.25rem;
        min-height: auto;
    }
    
    .section-content {
        padding: 0 0.25rem;
    }
    
    .hero-content {
        padding: 0.5rem 0.25rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0 0.25rem;
    }
    
    .hero-stats {
        gap: 1rem;
        padding: 0 0.25rem;
    }
    
    .hero-stat {
        padding: 0.8rem 0.25rem;
        min-width: 70px;
        max-width: 90px;
    }
    
    .hero-stat .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stat .stat-label {
        font-size: 0.7rem;
    }
    
    .services-grid,
    .projects-grid {
        padding: 0 0.25rem;
        gap: 1rem;
    }
    
    .service-card,
    .project-card {
        padding: 1.5rem 0.8rem;
    }
    
    .contact-info-grid {
        padding: 0 0.25rem;
        gap: 1rem;
    }
    
    .contact-item {
        padding: 1.2rem 0.8rem;
    }
}
    .nav-container {
        padding: 0 0.8rem;
    }
    
    .hero-content {
        padding: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        padding: 0 0.3rem;
    }
    
    .company-logo {
        max-width: 130px;
    }
    
    .hero-stats {
        gap: 0.8rem;
    }
    
    .hero-stat {
        padding: 0.6rem 0.3rem;
        min-width: 60px;
    }
    
    .hero-stat .stat-number {
        font-size: 1.3rem;
    }
    
    .hero-stat .stat-label {
        font-size: 0.65rem;
    }
    
    .section {
        padding: 1.5rem 0.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .services-grid,
    .projects-grid {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .service-card,
    .project-card {
        padding: 1.5rem 1rem;
    }
}
@media (min-width: 1025px) {
    .main-container {
        scroll-snap-type: x mandatory;
    }
    
    .section {
        scroll-snap-align: start;
    }
}

/* Animation classes - simplified without problematic animations */
.fade-in,
.slide-in-left,
.slide-in-right {
    opacity: 1;
    transform: none;
    transition: none;
}

.fade-in.visible,
.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1;
    transform: none;
}
/* Carousel (Favoritas) */
.carousel-section {
    background: var(--white);
    padding-left: 0;
    padding-right: 0;
}
.carousel-section .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.carousel {
    width: 100%;
    max-width: none;
    margin: 0;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    /* Altura basada en el ancho del viewport (mantiene 16:9) */
    height: min(56.25vw, 720px);
    min-height: 260px;
    background: var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Fallback for browsers without aspect-ratio */
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}
.carousel-slide,
.carousel-slide img {
    width: 100%;
    height: 100%;
}

/* (la transición queda arriba en .carousel-track) */

.carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00000010;
}
.carousel-slide { flex: 0 0 100%; }

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Llenar el contenedor 16:9 sin deformar */
    background: #fff;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dot.active {
    background: var(--secondary-blue);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel { width: 100%; }
}
/* Gallery Page */
.gallery-header {
    background: var(--white);
    border-bottom: 1px solid #eee;
}
.gallery-header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
/* Full-width layout for gallery page */
.gallery-page .section { padding-left: 0; padding-right: 0; }
.gallery-page .container { width: 100%; max-width: none; padding: 0; }

.gallery-filter {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--secondary-blue);
    color: var(--secondary-blue);
    background: #fff;
    cursor: pointer;
}
.filter-btn.active {
    background: var(--secondary-blue);
    color: #fff;
}

.gallery-section.hidden { display: none; }
.gallery-section .section-subtitle { margin-bottom: 0.75rem; }
.gallery-section .section-description { color: var(--text-secondary); margin-bottom: 1rem; }
.gallery-hint { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    width: 100%;
}
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    background: #fff;
}
.gallery-item { aspect-ratio: 1 / 1; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox[hidden] { display: none !important; }
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.lightbox-caption {
    color: #fff;
    margin-top: 0.75rem;
    text-align: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (min-width: 768px) {
    .gallery-item { aspect-ratio: 1 / 1; }
}