@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;800;900&display=swap');

:root {
    --brand-orange: #FAAB52;
    --brand-black: #1a1a1a;
    --brand-grey: #f0f2f5;
    --brand-soft: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--brand-grey);
    color: var(--brand-black);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }

/* Header */
header {
    position: sticky; top: 0; z-index: 50;
    display: flex; height: 110px;
    align-items: center; justify-content: space-between;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    padding: 0 24px;
}

.header-keywords {
    font-weight: 800;
    font-size: 16px;
    color: var(--brand-orange);
    text-transform: uppercase;
    transition: opacity 0.5s ease;
    width: 140px;
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.logo-container img { height: 95px; width: auto; transition: transform 0.3s ease; }
.logo-container:hover img { transform: scale(1.05); }

.menu-trigger {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: flex-end;
    background: none; border: none; cursor: pointer; position: relative;
}
.menu-state {
    position: absolute; right: 0;
    opacity: 0; transition: opacity 0.5s ease;
    pointer-events: none; display: flex; align-items: center; justify-content: flex-end;
}
.menu-state.active { opacity: 1; pointer-events: auto; }
#menu-lines { flex-direction: column; gap: 6px; width: 100%; top: 50%; transform: translateY(-50%); }
#menu-lines div { height: 3px; background-color: var(--brand-black); border-radius: 3px; transition: 0.3s; }
.line-1 { width: 32px; }
.line-2 { width: 24px; }
.line-3 { width: 32px; }
.menu-trigger:hover .line-2 { width: 32px; }

#menu-icon { width: 32px; height: 32px; object-fit: contain; top: 50%; transform: translateY(-50%); }
#menu-text { font-weight: 900; font-size: 14px; text-transform: uppercase; color: var(--brand-black); top: 50%; transform: translateY(-50%); }

/* Navigation Overlay */
#nav-overlay {
    position: fixed; inset: 0; background: var(--brand-black);
    z-index: 100; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
#nav-overlay.open { transform: translateY(0); }
.close-menu {
    position: absolute; top: 30px; right: 30px;
    background: none; border: none; color: white; cursor: pointer;
    transition: transform 0.3s;
}
.close-menu:hover { transform: rotate(90deg); }
#nav-overlay nav { display: flex; flex-direction: column; gap: 30px; text-align: center; }
#nav-overlay nav button {
    background: none; border: none; color: white;
    font-size: 28px; font-weight: 900; font-family: var(--font-main);
    text-transform: uppercase; cursor: pointer; transition: color 0.3s;
}
#nav-overlay nav button:hover { color: var(--brand-orange); }

/* Hero */
.hero {
    position: relative; height: 75vh;
    background-color: var(--brand-black);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-align: center;
}
.hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
}
.blur-video {
    width: 100%; height: 100%; object-fit: cover;
    filter: blur(20px) brightness(0.4);
    transform: scale(1.1);
}
.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
    display: flex; align-items: center; justify-content: center;
}
.main-video {
    width: 100%; height: 100%; object-fit: contain;
}
.video-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.35); z-index: 3; pointer-events: none;
}
.hero-content { position: relative; z-index: 10; padding: 0 40px; max-width: 900px; }

.typewriter-text {
    font-size: 42px; font-weight: 900; color: white;
    text-transform: uppercase; line-height: 1.3;
    min-height: 120px;
}
.typewriter-text::after { content: '|'; animation: blink 1s infinite; font-weight: 300; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Cotizador */
.cotizador-section { padding: 100px 20px; background: #faf8f5; }
.section-title-box { text-align: center; margin-bottom: 60px; }
.section-tag {
    position: relative; font-size: 36px; display: inline-block; padding: 5px 20px;
    color: var(--brand-black);
}
.section-tag::after {
    content: ''; position: absolute; bottom: 8px; left: 0; width: 100%; height: 12px;
    background: var(--brand-orange); z-index: -1; opacity: 0.4;
}
.section-subtitle { max-width: 600px; margin: 20px auto 0; font-size: 16px; color: #666; line-height: 1.6; }

.calculator-card {
    background: white; padding: 40px; border-radius: 24px;
    box-shadow: 0 20px 60px rgba(250, 171, 82, 0.15); width: 100%; max-width: 600px; margin: 0 auto;
    border: 2px solid var(--brand-orange);
}
.input-group { margin-bottom: 24px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: #555; text-transform: uppercase; }
.input-group input {
    width: 100%; padding: 16px 20px; border: 2px solid #eaeaea;
    border-radius: 12px; font-size: 16px; outline: none; transition: all 0.3s;
    font-family: var(--font-main); background: #f9f9f9;
}
.input-group input:focus { border-color: var(--brand-orange); background: white; box-shadow: 0 0 0 4px rgba(250,171,82,0.15); }

.modern-btn {
    width: 100%; padding: 18px; background-color: var(--brand-orange);
    color: white; border: none; border-radius: 12px;
    font-size: 16px; font-weight: 800; cursor: pointer;
    text-transform: uppercase; transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(250, 171, 82, 0.4); font-family: var(--font-main);
}
.modern-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(250, 171, 82, 0.5); }
.modern-btn:active { transform: translateY(0); }

.result-box {
    margin-top: 40px; padding: 30px; background-color: #fffaf5;
    border-radius: 16px; border: 2px solid rgba(250, 171, 82, 0.3); display: none; text-align: left;
}
.result-section { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px dashed #ddd; }
.result-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.section-title { font-size: 14px; font-weight: 900; color: var(--brand-orange); text-transform: uppercase; margin-bottom: 12px; display: block; }
.result-line { margin-bottom: 8px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; color: #444; }
.highlight { color: var(--brand-black); font-weight: 800; font-size: 18px; }
.unit { font-size: 14px; color: #888; margin-left: 4px; font-weight: 400; }

/* Catalog */
.catalog { padding: 100px 20px; background-color: var(--brand-grey); text-align: center; }
.cat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px; max-width: 1100px; margin: 0 auto;
}
.cat-card {
    position: relative; aspect-ratio: 1; border-radius: 24px;
    overflow: hidden; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.cat-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cat-card:hover img { transform: scale(1.1); }
.cat-card-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
    display: flex; align-items: center; justify-content: center; padding: 30px; text-align: center;
}
.cat-card-title { color: white; font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: -0.05em; }

/* Services */
.services-box {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; max-width: 900px; margin: 80px auto 0;
}
.service-item {
    background-color: white; border-radius: 24px; padding: 50px 30px;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); transition: transform 0.3s;
}
.service-item:hover { transform: translateY(-5px); }
.service-item svg { color: var(--brand-orange); }
.service-item h3 { font-size: 20px; color: var(--brand-black); }
.service-item p { color: #666; font-size: 15px; line-height: 1.6; }

/* Modal */
#product-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 1000;
    display: none; align-items: center; justify-content: center; backdrop-filter: blur(8px);
}
#product-modal.open { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    background: var(--brand-grey); width: 90%; max-width: 900px;
    border-radius: 24px; padding: 60px 30px; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.close-modal {
    position: absolute; top: 20px; right: 20px; background: white; border: none;
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: 0.3s; color: var(--brand-black);
}
.close-modal:hover { transform: scale(1.1) rotate(90deg); }
.modal-title { font-size: 28px; margin-bottom: 30px; text-align: center; color: var(--brand-black); }
.gallery-scroll {
    display: flex; overflow-x: auto; gap: 20px; padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}
.gallery-scroll::-webkit-scrollbar { height: 8px; }
.gallery-scroll::-webkit-scrollbar-track { background: #e1e1e1; border-radius: 4px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--brand-orange); border-radius: 4px; }

.product-item {
    flex: 0 0 280px; scroll-snap-align: start; background: white;
    padding: 24px; border-radius: 20px; text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.product-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.product-item h4 { font-size: 18px; margin-bottom: 10px; }
.product-item p { color: #666; font-size: 14px; margin-bottom: 20px; line-height: 1.5; }

/* Map */
.map-section { position: relative; height: 500px; }
.map-container { width: 100%; height: 100%; position: relative; }
.map-overlay {
    position: absolute; top: 40px; left: 40px; z-index: 10;
    background: white; padding: 30px; border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); max-width: 300px;
}
.map-overlay h3 { font-size: 18px; margin-bottom: 10px; color: var(--brand-orange); }
.map-overlay p { color: #555; font-size: 14px; line-height: 1.5; }

/* Footer */
footer { padding: 100px 20px; background: var(--brand-black); color: white; text-align: center; }
.footer-logo { height: 120px; margin-bottom: 20px; opacity: 0.9; }
.footer-address { margin-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #aaa; }
.footer-address svg { color: var(--brand-orange); }
.contact-links { display: flex; flex-direction: column; gap: 20px; align-items: center; margin-bottom: 50px; }
.contact-card {
    background-color: #22c55e; color: white !important;
    padding: 20px 40px; border-radius: 99px;
    display: flex; align-items: center; justify-content: center; gap: 15px;
    width: 100%; max-width: 400px; text-decoration: none;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3); transition: transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4); }
.contact-card span { font-size: 24px; font-weight: 900; }

.social-links { display: flex; justify-content: center; gap: 20px; }
.social-icon { display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.social-icon:hover { transform: scale(1.2) rotate(5deg); }

/* Floating WhatsApp */
.floating-wa {
    position: fixed; bottom: 30px; right: 30px; z-index: 200;
    background-color: #25D366; color: white;
    width: 65px; height: 65px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.floating-wa:hover { transform: scale(1.15) rotate(10deg); box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    header { height: 90px; padding: 0 16px; }
    .logo-container img { height: 70px; }
    .header-keywords { font-size: 13px; font-weight: 400; width: 100px; }
    .typewriter-text { font-size: 28px; min-height: 100px; }
    .hero { height: 75vh; }
    .hero-bg { display: none !important; } /* Heavy GPU blur causes video stutter on mobile */
    .main-video { object-fit: cover; max-width: 100%; }
    .map-overlay { top: auto; bottom: 20px; left: 20px; right: 20px; max-width: none; }
    .section-tag { font-size: 28px; }
    .floating-wa { width: 55px; height: 55px; bottom: 20px; right: 20px; }
    .floating-wa svg { width: 28px; height: 28px; }
}
