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

:root {
    --ice-blue: #E8F4F8;
    --light-gray: #F5F7FA;
    --medium-gray: #8B9DAF;
    --dark-gray: #2C3E50;
    --charcoal: #1A252F;
    --frost: #B8D4E0;
    --steel: #95B8C7;
    --white: #FFFFFF;
    --accent: #D1E8F0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 1.2rem 0;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

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

.nav-links a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

/* Hero Section */
.hero {
    margin-top: 80px;
    height: 90vh;
    background: linear-gradient(135deg, var(--ice-blue) 0%, var(--frost) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Cpath d="M0 0l100 100M100 0L0 100" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E');
    opacity: 0.2;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    max-width: 900px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 2.5rem;
    max-width: 700px;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--dark-gray);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: white;
    color: var(--charcoal);
    border: 2px solid var(--steel);
}

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

/* Secciones */
section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.section-subtitle {
    color: var(--medium-gray);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card-link {
    text-decoration: none;
    color: inherit;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--ice-blue);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* Tarjetas con imagen de fondo */
.service-card-with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
}

.service-card-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.service-card-overlay {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--ice-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.service-card p {
    color: var(--charcoal);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.service-card ul {
    list-style: none;
    color: var(--charcoal);
}

.service-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.service-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--charcoal);
    font-weight: 700;
}

.ver-mas {
    margin-top: 1.5rem;
    color: var(--charcoal);
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

/* Proceso */
.process-bg {
    background: var(--light-gray);
}

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

.step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--steel);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.step h3 {
    font-size: 1.2rem;
    color: var(--charcoal);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.step p {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

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

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

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

.project-clickable {
    cursor: pointer;
}

.project-image {
    height: 220px;
    background: linear-gradient(135deg, var(--frost) 0%, var(--steel) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.project-image-real {
    height: 280px;
    overflow: hidden;
    background: var(--light-gray);
}

.project-image-real img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 1.8rem;
}

.project-type {
    color: var(--steel);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-content h3 {
    color: var(--charcoal);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.project-content p {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

/* Industrias */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.industry-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--ice-blue);
    transition: all 0.3s ease;
}

.industry-item:hover {
    border-color: var(--steel);
    background: var(--ice-blue);
}

.industry-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.industry-item h3 {
    color: var(--charcoal);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Capacidades Técnicas */
.capabilities-bg {
    background: var(--charcoal);
    color: white;
}

.capabilities-bg .section-title {
    color: white;
}

.capabilities-bg .section-subtitle {
    color: var(--frost);
}

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

.capability-item {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.capability-item h3 {
    color: var(--frost);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.capability-item p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

/* Por qué elegirnos */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.reason-icon {
    width: 80px;
    height: 80px;
    background: var(--ice-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.reason-item h3 {
    color: var(--charcoal);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.reason-item p {
    color: var(--medium-gray);
}

/* Contacto */
.contact-bg {
    background: var(--light-gray);
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--ice-blue);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--steel);
}

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

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--charcoal);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--dark-gray);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--charcoal);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-text {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-credit {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-credit a {
    color: var(--frost);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: white;
}

/* Páginas de galería */
.gallery-hero {
    margin-top: 80px;
    height: 70vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26, 37, 47, 0.7), rgba(26, 37, 47, 0.5));
}

.gallery-hero h1 {
    color: white;
    font-size: 3.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.back-button {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.8rem 1.5rem;
    background: var(--steel);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--dark-gray);
    transform: translateX(-5px);
}

.category-section {
    margin-bottom: 5rem;
}

.category-header {
    background: var(--ice-blue);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.category-header h2 {
    color: var(--charcoal);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

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

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Modal para imágenes */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoom 0.3s;
    pointer-events: none;
}

@keyframes zoom {
    from {transform: scale(0.8)}
    to {transform: scale(1)}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001 !important;
    user-select: none;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    pointer-events: auto !important;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--frost);
    background: rgba(0,0,0,0.8);
}

/* Controles del carrusel */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5) !important;
    color: white;
    border: none;
    font-size: 60px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001 !important;
    border-radius: 5px;
    line-height: 1;
    font-weight: 300;
    user-select: none;
    pointer-events: auto !important;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8) !important;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 2001;
    pointer-events: none;
}

.modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 2001;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1, .gallery-hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .services-grid,
    .projects-grid,
    .industries-grid,
    .capabilities-grid,
    .reasons-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .contact-container {
        padding: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Animaciones de scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}
/* ========================================
   MENÚ HAMBURGUESA MÓVIL
   ======================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10001;
    background: rgba(255,255,255,0.9);
    border-radius: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2C3E50;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }

    nav .nav-links {
        display: flex !important;
        position: fixed !important;
        right: -100% !important;
        top: 0 !important;
        left: auto !important;
        flex-direction: column !important;
        background: #ffffff !important;
        width: 75% !important;
        max-width: 320px !important;
        height: 100vh !important;
        text-align: left !important;
        transition: right 0.4s ease-in-out !important;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5) !important;
        padding: 6rem 0 2rem 0 !important;
        z-index: 10000 !important;
        overflow-y: auto !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    nav .nav-links.active {
        right: 0 !important;
        display: flex !important;
    }

    nav .nav-links li {
        margin: 0 !important;
        padding: 1.5rem 2rem !important;
        border-bottom: 1px solid #E8F4F8 !important;
        list-style: none !important;
    }

    nav .nav-links li a {
        font-size: 1.2rem !important;
        display: block !important;
        color: #2C3E50 !important;
        text-decoration: none !important;
    }
}

/* ========================================
   FOTOS EN PROCESO (CÓMO TRABAJAMOS)
   ======================================== */

.step-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.step-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-images img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .step-images {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .step-images img {
        height: 180px;
    }
}
