/* CSS Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables de Estilo */
:root {
    --amarillo-industrial: #FFD600;
    --amarillo-toledo: #FFD700;
    --azul-marino: #174EA6;
    --gris-oscuro: #181A1B;
    --blanco: #fff;
    --gris-texto: #b0b3b8;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

/* Estilos Base */
body {
    font-family: var(--font-body);
    background: var(--gris-oscuro);
    color: var(--blanco);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Botones */
.btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--amarillo-toledo);
    color: var(--azul-marino);
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 0.4rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 0 0 4px rgba(255,214,0,0.08);
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 1.2rem;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--azul-marino);
    color: var(--amarillo-toledo);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 0 0 6px rgba(255,214,0,0.13);
}

.btn-outline {
    border-color: var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--background-light);
    border-color: var(--text-dark);
}

/* Header */
.header {
    background: var(--gris-oscuro);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--azul-marino);
    letter-spacing: 1px;
    font-weight: 700;
}

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

.nav-menu a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--amarillo-toledo);
}

.nav-menu i {
    font-size: 0.7em;
    margin-left: 0.3rem;
    opacity: 0.6;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    align-items: center;
    background: var(--gris-oscuro);
    padding: 0 0 2rem 0;
    margin-top: 0;
    gap: 0;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    background: linear-gradient(90deg, rgba(16,19,26,0.92) 0%, rgba(16,19,26,0.7) 40%, rgba(16,19,26,0.2) 100%), url('images/Fondo-poli.png') center 30%/cover no-repeat;
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(16,19,26,0.82);
    z-index: 2;
}

.hero-content, .hero-3d {
    position: relative;
    z-index: 3;
}

.hero-content {
    padding: 3rem 3rem 3rem 6vw;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 370px;
    max-width: 520px;
}

.hero-content::before {
    display: none;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 900;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 1.1s cubic-bezier(.77,0,.18,1) 0.3s forwards;
}

.hero-content .azul {
    color: var(--azul-marino);
    font-weight: 900;
}

.hero-content .amarillo {
    color: var(--amarillo-industrial);
    font-weight: 900;
}

.hero-content .blanco {
    color: var(--blanco);
    font-weight: 900;
}

.hero-content .sub {
    color: var(--gris-texto);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 1.1s cubic-bezier(.77,0,.18,1) 0.5s forwards;
    animation-delay: 0.5s;
}

.search-bar {
    display: flex;
    max-width: 500px;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.search-bar input {
    flex-grow: 1;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-blue);
}

.search-bar .btn {
    border-radius: 0;
    border: none;
    border-left: 1px solid var(--border-color);
}

.hero-3d {
    width: 100%;
    min-width: 340px;
    min-height: 480px;
    height: 60vh;
    background: transparent !important;
    box-shadow: none;
    border-radius: 1.5rem;
    margin: 2rem 2rem 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.hero-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 320px;
    min-height: 320px;
    height: 60vh;
    background: transparent;
    border-radius: 1.5rem;
    z-index: 3;
}

.hero-img img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: auto;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.18));
}

/* Partners Section */
.partners {
    background-color: #f9fafb;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.partners .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.partners span {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partners span:hover {
    filter: grayscale(0);
    opacity: 1;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: #10131a;
    color: var(--gris-texto);
    text-align: center;
    padding: 2rem 0 1rem 0;
    font-size: 1rem;
    border-top: 1.5px solid var(--azul-marino);
}

.footer p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-content {
        min-width: 0;
        max-width: 100vw;
        padding: 2rem 1rem;
        border-radius: 1.5rem;
    }
    .hero-content::before {
        display: none;
    }
    .hero-3d {
        margin: 2rem auto;
        min-width: 220px;
        min-height: 260px;
        height: 40vw;
    }
    .hero-img {
        min-width: 180px;
        min-height: 180px;
        height: 40vw;
        margin: 2rem auto;
    }
    .hero-img img {
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .header-actions {
        display: none;
    }
    .hamburger {
        display: block;
    }
}

@keyframes btnFadeIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: none; }
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: none;
    }
}

.servicios {
    background: #181A1B;
    padding: 4rem 0 2rem 0;
}
.servicios-title {
    font-family: var(--font-heading);
    color: var(--azul-marino);
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
}
.servicios-desc {
    color: var(--gris-texto);
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
}
.servicios-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.servicios-list li {
    font-size: 1.15rem;
    color: var(--blanco);
    margin-bottom: 0.7rem;
    padding-left: 1.5rem;
    position: relative;
}
.servicios-list li::before {
    content: '\25A0';
    color: var(--amarillo-toledo);
    position: absolute;
    left: 0;
    font-size: 1rem;
    top: 0.2rem;
}

.galeria {
    background: #181A1B url('https://www.transparenttextures.com/patterns/brushed-alum.png');
    background-blend-mode: multiply;
    padding: 4rem 0 2rem 0;
}
.galeria-title {
    font-family: var(--font-heading);
    color: var(--azul-marino);
    font-size: 2.4rem;
    margin-bottom: 2.2rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 12px #000, 0 1px 0 #FFD600;
}
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.2rem;
    margin-top: 2rem;
}
.galeria-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    transition: transform 0.2s, box-shadow 0.2s;
}
.galeria-grid img:hover {
    transform: scale(1.04) rotate(-1deg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}
@media (max-width: 900px) {
    .servicios, .galeria {
        padding: 2.5rem 0 1.2rem 0;
    }
    .galeria-grid {
        gap: 1rem;
    }
    .galeria-grid img {
        height: 120px;
    }
}

.servicio-card {
    background: linear-gradient(135deg, #23272b 80%, #FFD60011 100%);
    border-radius: 1.2rem;
    border: 2.5px solid #b0b3b8;
    box-shadow: 0 6px 32px rgba(0,0,0,0.22), 0 0 0 4px #23272b;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.servicio-card::before, .servicio-card::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    background: radial-gradient(circle, var(--amarillo-toledo) 60%, #b0b3b8 100%);
    border-radius: 50%;
    z-index: 2;
}
.servicio-card::before { left: 8px; top: 8px; }
.servicio-card::after { right: 8px; bottom: 8px; }
.servicio-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid #FFD60044;
    filter: grayscale(0.08) contrast(1.08);
    transition: filter 0.2s, box-shadow 0.2s;
}
.servicio-card span {
    font-family: var(--font-heading);
    color: var(--amarillo-toledo);
    font-size: 1.18rem;
    font-weight: 900;
    padding: 1.1rem 0.5rem 1.1rem 0.5rem;
    text-align: center;
    letter-spacing: 0.7px;
    background: linear-gradient(90deg, #23272b 80%, #FFD60011 100%);
    text-shadow: 0 2px 8px #000, 0 1px 0 #FFD600;
    border-top: 2px solid #b0b3b8;
    width: 100%;
    box-sizing: border-box;
}
.servicio-card:hover {
    transform: scale(1.045) translateY(-6px) rotate(-1deg);
    box-shadow: 0 12px 40px 0 #FFD70033, 0 0 0 4px #FFD70099;
    border-color: var(--amarillo-toledo);
}
.servicio-card:hover img {
    filter: brightness(1.13) contrast(1.13) drop-shadow(0 0 16px #FFD70044);
}

.modal-galeria {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(16,19,26,0.92);
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s;
}
.modal-galeria.active {
    display: flex;
}
.modal-content {
    background: #22242a;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem 2rem 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    max-width: 480px;
    width: 95vw;
    position: relative;
    text-align: center;
    animation: modalPop 0.5s cubic-bezier(.77,0,.18,1);
}
.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--amarillo-toledo);
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--azul-marino);
}
.modal-slider {
    margin-top: 1.2rem;
    position: relative;
}
#modal-img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 1rem;
    background: #181A1B;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.modal-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}
.modal-controls button {
    background: var(--amarillo-toledo);
    color: var(--azul-marino);
    border: none;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.modal-controls button:hover {
    background: var(--azul-marino);
    color: var(--amarillo-toledo);
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.servicios-modernas {
    background: #0d111a;
    padding: 4rem 0 2rem 0;
}
.servicios-modernas-title {
    font-family: var(--font-heading);
    color: var(--azul-marino);
    font-size: 2.4rem;
    margin-bottom: 2.2rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-align: left;
}
.servicios-modernas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.2rem;
    margin-top: 2rem;
}
.servicio-modern-card {
    background: #151925;
    border-radius: 1.1rem;
    border: 1.5px solid #23273a;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 220px;
    position: relative;
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
    z-index: 1;
    padding: 2.2rem 2rem 1.6rem 2rem;
}
.servicio-modern-card .servicio-icon {
    font-size: 2.8rem;
    color: var(--amarillo-toledo);
    margin-bottom: 1.5rem;
    margin-top: 0.2rem;
    transition: color 0.2s;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.servicio-modern-card span {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: left;
    letter-spacing: 0.7px;
    z-index: 2;
    transition: color 0.2s;
    display: block;
}
.servicio-modern-card .servicio-arrow {
    opacity: 0;
    position: absolute;
    bottom: 1.3rem;
    right: 1.5rem;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s, background 0.2s;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.servicio-modern-card .servicio-arrow span {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.2s;
}
.servicio-modern-card:hover .servicio-arrow {
    opacity: 1;
    background: var(--amarillo-toledo);
}
.servicio-modern-card:hover .servicio-arrow span {
    color: var(--azul-marino);
}
.servicio-modern-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
    pointer-events: none;
}
.servicio-modern-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--servicio-img, none);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
    filter: blur(4px) brightness(1.1);
    pointer-events: none;
}
.servicio-modern-card:hover {
    box-shadow: 0 8px 32px #FFD70033, 0 0 0 4px #FFD70044;
    transform: scale(1.03) translateY(-4px);
    border-color: var(--amarillo-toledo);
}
.servicio-modern-card:hover .servicio-icon {
    color: #fff;
}
.servicio-modern-card:hover span {
    color: var(--amarillo-toledo);
}
.servicio-modern-card:hover::after {
    opacity: 0.85;
    filter: blur(1.5px) brightness(1.08);
}
.servicio-modern-card:hover::before {
    opacity: 0.55;
}
@media (max-width: 900px) {
    .servicios-modernas {
        padding: 2.5rem 0 1.2rem 0;
    }
    .servicios-modernas-grid {
        gap: 1rem;
    }
    .servicio-modern-card {
        min-height: 140px;
        padding: 1.2rem 1rem 1rem 1rem;
    }
    .servicio-modern-card .servicio-icon {
        font-size: 2.1rem;
        margin-bottom: 0.7rem;
        margin-top: 0.7rem;
        width: 32px;
        height: 32px;
    }
}

/* === Portfolio Industrial Moderno (Limpio) === */
.portfolio-section {
    background: #10131a;
    min-height: 70vh;
    padding: 4rem 0 2rem 0;
}
.portfolio-title {
    font-family: var(--font-heading);
    color: var(--azul-marino);
    font-size: 2.2rem;
    margin-bottom: 2.2rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-align: left;
}
#volver-servicios {
    margin-bottom: 2.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
    margin-bottom: 2rem;
}
.portfolio-block {
    background: #181A1B;
    border-radius: 1.1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    height: 260px;
    transition: box-shadow 0.18s, transform 0.18s;
    cursor: pointer;
    border: none;
    padding: 0;
}
.portfolio-block:hover {
    box-shadow: 0 8px 32px #FFD70022, 0 0 0 2px #FFD70033;
    transform: scale(1.025) translateY(-4px);
}
.portfolio-img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: grayscale(0.08) contrast(1.08);
    transition: filter 0.2s, box-shadow 0.2s;
    display: block;
}
.portfolio-block:hover .portfolio-img {
    filter: brightness(1.13) contrast(1.13) drop-shadow(0 0 12px #FFD70033);
}
.portfolio-info {
    padding: 1.3rem 1.1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
}
.portfolio-info h3 {
    font-family: var(--font-heading);
    color: var(--amarillo-toledo);
    font-size: 1.18rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: 0.7px;
}
.portfolio-info p {
    color: var(--blanco);
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.5;
}
@media (max-width: 900px) {
    .portfolio-section {
        padding: 2.5rem 0 1.2rem 0;
    }
    .portfolio-grid {
        gap: 1rem;
    }
    .portfolio-block {
        min-height: 160px;
    }
    .portfolio-img {
        height: 90px;
    }
} 

.contacto-section {
    background: #10131a;
    padding: 4rem 0 2rem 0;
}
.contacto-title {
    font-family: var(--font-heading);
    color: var(--azul-marino);
    font-size: 2.2rem;
    margin-bottom: 2.2rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-align: left;
}
.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    max-width: 480px;
    margin: 0 auto;
    background: #181A1B;
    padding: 2.2rem 2rem 2rem 2rem;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}
.contacto-form label {
    color: var(--amarillo-toledo);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.contacto-form input,
.contacto-form textarea {
    background: #23273a;
    color: var(--blanco);
    border: 1.5px solid #23273a;
    border-radius: 0.6rem;
    padding: 1rem;
    font-size: 1.08rem;
    font-family: var(--font-body);
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}
.contacto-form input:focus,
.contacto-form textarea:focus {
    border: 1.5px solid var(--amarillo-toledo);
    box-shadow: 0 0 0 2px #FFD70033;
}
.contacto-form button {
    margin-top: 1.2rem;
    align-self: flex-end;
}
@media (max-width: 900px) {
    .contacto-section {
        padding: 2.5rem 0 1.2rem 0;
    }
    .contacto-form {
        padding: 1.2rem 1rem 1rem 1rem;
    }
} 
html {
    scroll-behavior: smooth;
} 

/* === MENÚ MÓVIL HAMBURGUESA === */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.hamburger i {
    font-size: 1.5rem;
    color: var(--blanco);
    transition: color 0.3s ease;
}

.hamburger:hover i {
    color: var(--amarillo-toledo);
}

/* Menú móvil activo */
.nav-menu.mobile-active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(16, 19, 26, 0.98);
    z-index: 1001;
    animation: slideInMenu 0.3s ease-out;
}

.nav-menu.mobile-active ul {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 2rem;
}

.nav-menu.mobile-active a {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-menu.mobile-active a:hover {
    border-color: var(--amarillo-toledo);
    background: rgba(255, 215, 0, 0.1);
}

/* Botón cerrar menú */
.menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--amarillo-toledo);
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-close:hover {
    color: var(--blanco);
}

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

/* === RESPONSIVE DESIGN MEJORADO === */

/* Tablet y pantallas medianas */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content .sub {
        font-size: 1.1rem;
    }
    
    .servicios-modernas-title,
    .portfolio-title,
    .contacto-title {
        font-size: 2rem;
    }
    
    .servicios-modernas-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.8rem;
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 900px) {
    .container {
        padding: 0 1.2rem;
    }
    
    /* Header responsive */
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .nav-logo img {
        height: 32px !important;
    }
    
    /* Hero responsive */
    .hero {
        grid-template-columns: 1fr;
        min-height: 70vh;
        padding: 0 0 1.5rem 0;
    }
    
    .hero-content {
        min-width: 0;
        max-width: 100%;
        padding: 2rem 1rem;
        text-align: center;
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
        text-align: center;
    }
    
    .hero-content .sub {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-3d {
        margin: 1.5rem auto;
        min-width: 200px;
        min-height: 240px;
        height: 35vw;
    }
    
    .hero-img {
        min-width: 160px;
        min-height: 160px;
        height: 35vw;
        margin: 1.5rem auto;
    }
    
    .hero-img img {
        max-width: 220px;
    }
    
    /* Servicios responsive */
    .servicios-modernas {
        padding: 3rem 0 2rem 0;
    }
    
    .servicios-modernas-title {
        font-size: 1.8rem;
        margin-bottom: 1.8rem;
        text-align: center;
    }
    
    .servicios-modernas-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .servicio-modern-card {
        min-height: 160px;
        padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    }
    
    .servicio-modern-card .servicio-icon {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .servicio-modern-card span {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* Portfolio responsive */
    .portfolio-section {
        padding: 3rem 0 2rem 0;
    }
    
    .portfolio-title {
        font-size: 1.8rem;
        margin-bottom: 1.8rem;
        text-align: center;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }
    
    .portfolio-block {
        min-height: 200px;
        height: 200px;
    }
    
    .portfolio-img {
        min-height: 200px;
    }
    
    /* Contacto responsive */
    .contacto-section {
        padding: 3rem 0 2rem 0;
    }
    
    .contacto-title {
        font-size: 1.8rem;
        margin-bottom: 1.8rem;
        text-align: center;
    }
    
    .contacto-form {
        padding: 1.8rem 1.5rem 1.5rem 1.5rem;
    }
}

/* Móviles medianos */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Header móvil */
    .nav-menu,
    .header-actions {
        display: none;
    }
    
    .hamburger {
        display: block;
        font-size: 1.5rem;
        color: var(--blanco);
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .nav-logo {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .nav-logo img {
        height: 28px !important;
    }
    
    /* Hero móvil */
    .hero {
        min-height: 60vh;
        padding: 0 0 1rem 0;
    }
    
    .hero-content {
        padding: 1.5rem 0.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-content .sub {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-primary {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
    
    .hero-3d {
        min-width: 180px;
        min-height: 200px;
        height: 30vw;
        margin: 1rem auto;
    }
    
    .hero-img {
        min-width: 140px;
        min-height: 140px;
        height: 30vw;
        margin: 1rem auto;
    }
    
    .hero-img img {
        max-width: 180px;
    }
    
    /* Servicios móvil */
    .servicios-modernas {
        padding: 2.5rem 0 1.5rem 0;
    }
    
    .servicios-modernas-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .servicios-modernas-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .servicio-modern-card {
        min-height: 140px;
        padding: 1.2rem 1rem 1rem 1rem;
    }
    
    .servicio-modern-card .servicio-icon {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        width: 36px;
        height: 36px;
    }
    
    .servicio-modern-card span {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    /* Portfolio móvil */
    .portfolio-section {
        padding: 2.5rem 0 1.5rem 0;
    }
    
    .portfolio-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .portfolio-block {
        min-height: 180px;
        height: 180px;
    }
    
    .portfolio-img {
        min-height: 180px;
    }
    
    /* Contacto móvil */
    .contacto-section {
        padding: 2.5rem 0 1.5rem 0;
    }
    
    .contacto-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .contacto-form {
        padding: 1.5rem 1rem 1rem 1rem;
        gap: 1rem;
    }
    
    .contacto-form label {
        font-size: 1rem;
    }
    
    .contacto-form input,
    .contacto-form textarea {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .contacto-form button {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
    
    /* Header muy pequeño */
    .nav-logo {
        font-size: 0.9rem;
        gap: 0.4rem;
    }
    
    .nav-logo img {
        height: 24px !important;
    }
    
    /* Hero muy pequeño */
    .hero {
        min-height: 50vh;
    }
    
    .hero-content {
        padding: 1rem 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.1;
    }
    
    .hero-content .sub {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
    }
    
    .hero-3d {
        min-width: 150px;
        min-height: 160px;
        height: 25vw;
    }
    
    .hero-img {
        min-width: 120px;
        min-height: 120px;
        height: 25vw;
    }
    
    .hero-img img {
        max-width: 140px;
    }
    
    /* Servicios muy pequeño */
    .servicios-modernas {
        padding: 2rem 0 1rem 0;
    }
    
    .servicios-modernas-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    
    .servicio-modern-card {
        min-height: 120px;
        padding: 1rem 0.8rem 0.8rem 0.8rem;
    }
    
    .servicio-modern-card .servicio-icon {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
        width: 32px;
        height: 32px;
    }
    
    .servicio-modern-card span {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    /* Portfolio muy pequeño */
    .portfolio-section {
        padding: 2rem 0 1rem 0;
    }
    
    .portfolio-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    
    .portfolio-block {
        min-height: 160px;
        height: 160px;
    }
    
    .portfolio-img {
        min-height: 160px;
    }
    
    /* Contacto muy pequeño */
    .contacto-section {
        padding: 2rem 0 1rem 0;
    }
    
    .contacto-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    
    .contacto-form {
        padding: 1.2rem 0.8rem 0.8rem 0.8rem;
    }
    
    .contacto-form label {
        font-size: 0.9rem;
    }
    
    .contacto-form input,
    .contacto-form textarea {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
}

/* Orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content .sub {
        font-size: 0.9rem;
    }
    
    .servicios-modernas-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* Pantallas muy grandes */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content .sub {
        font-size: 1.3rem;
    }
    
    .servicios-modernas-title,
    .portfolio-title,
    .contacto-title {
        font-size: 2.6rem;
    }
    
    .servicios-modernas-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        gap: 2.5rem;
    }
}

/* Mejoras de accesibilidad para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .servicio-modern-card:hover {
        transform: none;
    }
    
    .servicio-modern-card:active {
        transform: scale(0.98);
    }
    
    .portfolio-block:hover {
        transform: none;
    }
    
    .portfolio-block:active {
        transform: scale(0.98);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .btn-primary:active {
        transform: scale(0.95);
    }
}

/* Soporte para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
    :root {
        --gris-oscuro: #0a0a0a;
        --gris-texto: #a0a0a0;
    }
}

/* Mejoras para lectores de pantalla */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
} 

/* === MEJORAS ADICIONALES RESPONSIVE === */

/* Prevenir zoom en inputs en iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .contacto-form input,
    .contacto-form textarea {
        font-size: 16px;
    }
}

/* Mejorar contraste en pantallas pequeñas */
@media (max-width: 480px) {
    .hero-content h1 {
        text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    }
    
    .servicio-modern-card {
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }
    
    .portfolio-block {
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }
}

/* Optimizar para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-img img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Mejorar legibilidad en pantallas pequeñas */
@media (max-width: 768px) {
    .hero-content .sub {
        line-height: 1.6;
    }
    
    .servicio-modern-card span {
        line-height: 1.4;
    }
    
    .contacto-form input,
    .contacto-form textarea {
        line-height: 1.5;
    }
}

/* Ajustes para tablets en modo portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .servicios-modernas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajustes para pantallas ultra anchas */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .servicios-modernas-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mejorar accesibilidad del menú móvil */
@media (max-width: 768px) {
    .nav-menu.mobile-active {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-menu.mobile-active a {
        position: relative;
        overflow: hidden;
    }
    
    .nav-menu.mobile-active a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
        transition: left 0.5s;
    }
    
    .nav-menu.mobile-active a:hover::before {
        left: 100%;
    }
}

/* Optimizar para dispositivos con notch */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }
    
    .nav-menu.mobile-active {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
} 