/* ==============================================
   EMP CONSTRUCCIONES — Industrial Premium
   ============================================== */

:root {
    --black: #0D0D0D;
    --black-soft: #141414;
    --black-card: #1A1A1A;
    --white: #FFFFFF;
    --gray-100: #E8E8E8;
    --gray-300: #A0A0A0;
    --gray-500: #666666;
    --gray-700: #2A2A2A;
    --yellow: #F5A623;
    --orange: #F57C00;
    --whatsapp: #25D366;

   --font-display: 'General Sans', sans-serif;
--font-body: 'General Sans', sans-serif;

    --container: 1280px;
    --radius: 4px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==============================================
   TIPOGRAFÍA
   ============================================== */

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.section-header {
    margin-bottom: 72px;
    max-width: 720px;
}

/* ==============================================
   BOTONES
   ============================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all 0.25s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.btn-full {
    width: 100%;
}

/* ==============================================
   HEADER
   ============================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

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

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    transition: all 0.25s ease;
}

.menu-toggle:hover {
    border-color: var(--yellow);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background: var(--yellow);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background: var(--yellow);
}

/* Menú desplegable */
.menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--black-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 24px;
    transform: translateY(-110%);
    transition: transform 0.5s cubic-bezier(0.6, 0.05, 0.15, 1);
    z-index: 99;
}

.menu.active {
    transform: translateY(0);
}

.menu-link {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
}

.menu-link:hover {
    color: var(--yellow);
    padding-left: 24px;
}

.menu-social {
    max-width: var(--container);
    margin: 32px auto 0;
    display: flex;
    gap: 24px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-300);
}

.menu-social a:hover {
    color: var(--yellow);
}

/* ==============================================
   HERO
   ============================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at bottom left, rgba(245, 166, 35, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-tag-line {
    width: 40px;
    height: 1px;
    background: var(--yellow);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 9vw, 120px);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.035em;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-title-accent {
    color: var(--yellow);
    font-weight: 500;
}

.hero-subtitle {
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.5;
    color: var(--gray-100);
    max-width: 600px;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-300);
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--yellow), transparent);
    animation: scrollPulse 2s ease infinite;
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ==============================================
   MÓDULOS
   ============================================== */

.modulos {
    padding: 120px 0;
    background: var(--black);
    position: relative;
}

.modulos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.modulo-card {
    background: var(--black-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.modulo-card:hover {
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateY(-4px);
}

.modulo-card[data-accent="orange"]:hover {
    border-color: rgba(245, 124, 0, 0.4);
}

.modulo-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--black-soft);
}

.modulo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modulo-card:hover .modulo-card-image img {
    transform: scale(1.04);
    filter: grayscale(0);
}

.modulo-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--orange);
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 2px;
}

.modulo-card-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modulo-card-number {
    position: absolute;
    top: 32px;
    right: 32px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 0.05em;
}

.modulo-card-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.modulo-card[data-accent="yellow"] .modulo-card-title {
    color: var(--white);
}

.modulo-card-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-300);
    margin-bottom: 24px;
    flex: 1;
}

.modulo-card-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    width: 100%;
    justify-content: space-between;
    transition: color 0.25s ease;
}

.modulo-card-toggle:hover {
    color: var(--orange);
}

.modulo-card-toggle svg {
    transition: transform 0.3s ease;
}

.modulo-card-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.modulo-card-extended {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modulo-card-extended.open {
    max-height: 500px;
    margin-top: 16px;
}

.modulo-card-extended p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--gray-100);
    margin-bottom: 16px;
}

.modulo-card-extended ul {
    list-style: none;
    padding: 0;
}

.modulo-card-extended li {
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-300);
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
}

.modulo-card-extended li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 1px;
    background: var(--yellow);
}

/* ==============================================
   NOSOTROS
   ============================================== */

.nosotros {
    padding: 120px 0;
    background: var(--black-soft);
    position: relative;
}

.nosotros::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.3), transparent);
}

.nosotros-inner {
    max-width: 900px;
}

.nosotros-description {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.65;
    color: var(--gray-100);
    max-width: 720px;
    margin-bottom: 64px;
}

.nosotros-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    color: var(--yellow);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-300);
}

/* ==============================================
   CONTACTO
   ============================================== */

.contacto {
    padding: 120px 0;
    background: var(--black);
}

.contacto-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contacto-description {
    font-size: 17px;
    line-height: 1.6;
    color: var(--gray-300);
    margin-bottom: 48px;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacto-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contacto-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.contacto-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
    transition: color 0.25s ease;
}

.contacto-value:hover {
    color: var(--yellow);
}

.contacto-social {
    display: flex;
    gap: 24px;
}

.contacto-social a {
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
}

.contacto-social a:hover {
    color: var(--yellow);
}

/* Formulario */
.contacto-form {
    background: var(--black-soft);
    padding: 48px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
    background: var(--black-card);
}

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

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

.footer {
    background: var(--black-soft);
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    padding-bottom: 48px;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--gray-300);
    max-width: 300px;
}

.footer-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 14px;
    color: var(--gray-100);
}

.footer-col a:hover {
    color: var(--yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 24px 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    text-align: center;
}

/* ==============================================
   WHATSAPP FLOTANTE
   ============================================== */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
    z-index: 98;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--whatsapp);
    opacity: 0.4;
    animation: whatsappPulse 2s ease infinite;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .modulos,
    .nosotros,
    .contacto {
        padding: 80px 0;
    }

    .modulos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .modulo-card-body {
        padding: 24px;
    }

    .modulo-card-title {
        font-size: 28px;
    }

    .contacto-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contacto-form {
        padding: 32px 24px;
    }

    .nosotros-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-right {
        gap: 32px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .menu-link {
        font-size: 28px;
        padding: 10px 0;
    }

    .menu-link:hover {
        padding-left: 12px;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 520px) {
    .header-inner {
        height: 120px;
    }

    .logo-img {
        height: 50px;
    }

    .menu {
        top: 70px;
        padding: 32px 20px;
    }

    .hero-scroll {
        display: none;
    }

    .hero-tag {
        font-size: 10px;
    }
}
