/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --brand-main: #1e293b;
    --brand-accent: #f97316;
    --brand-blue: #3b82f6;
    --brand-green: #10b981;
    
    --text-main: #334155;
    --text-muted: #64748b;

    --gradient-accent: linear-gradient(135deg, #ea580c, #f97316);
    --gradient-dark-overlay: linear-gradient(to bottom, rgba(30, 41, 59, 0.6), rgba(30, 41, 59, 0.9));

    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-primary); color: var(--text-main); font-family: var(--font-body); line-height: 1.6; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--brand-main); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.text-accent { color: var(--brand-accent); }
.bg-light { background-color: #f1f5f9; }

/* =========================================
   2. BOTONES
   ========================================= */
.btn {
    display: inline-block; padding: 12px 30px; border-radius: 6px; font-weight: 600;
    text-transform: uppercase; font-size: 0.9rem; cursor: pointer; border: 2px solid transparent;
    transition: var(--transition); text-align: center; font-family: var(--font-display);
}
.btn-primary { background: var(--brand-accent); color: white; box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3); }
.btn-primary:hover { background: #ea580c; transform: translateY(-2px); }
.btn-outline { border-color: var(--brand-accent); color: var(--brand-accent); background: transparent; }
.btn-outline:hover { background: var(--brand-accent); color: white; }
.btn-block { display: block; width: 100%; }

/* =========================================
   3. HEADER Y SEPARACIÓN DE BORDES
   ========================================= */
.main-header {
    position: fixed; top: 0; width: 100%; height: var(--header-height);
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0; z-index: 1000; display: flex; align-items: center; padding: 0 5%; 
}

.header-content { 
    display: flex; align-items: center; justify-content: space-between; 
    width: 100%; max-width: 1400px; margin: 0 auto;
}

.logo-wrapper { flex: 1; display: flex; justify-content: flex-start; }
.main-nav { flex: 2; display: flex; justify-content: center; }
.header-actions { flex: 1; display: flex; justify-content: flex-end; margin-left: 0; }

.nav-list { display: flex; gap: 40px; }
.nav-link { font-size: 0.9rem; font-weight: 600; color: var(--text-main); text-transform: uppercase; }
.nav-link:hover { color: var(--brand-accent); }
.mobile-menu-btn { display: none; }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
    background-color: var(--brand-main); background-size: cover; background-position: center; padding-top: var(--header-height);
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%); margin-bottom: -5vh; 
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--gradient-dark-overlay); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; padding-bottom: 120px; }
.hero-subtitle { color: #cbd5e1; font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.hero-title { font-size: 4rem; color: white; margin-bottom: 20px; }
.hero-description { font-size: 1.1rem; color: #f8fafc; margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* =========================================
   5. SECCIONES COMUNES
   ========================================= */
.section { padding: 100px 0 80px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 10px; }
.separator-accent { width: 60px; height: 4px; background: var(--brand-accent); margin: 15px auto 30px; border-radius: 2px; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 50px; }
.text-center { text-align: center; }

/* =========================================
   6. GRID DE SERVICIOS
   ========================================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-link { display: block; text-decoration: none; color: inherit; border-radius: var(--border-radius); outline: none; }

.service-card {
    background: var(--bg-secondary); padding: 40px 30px; border-radius: var(--border-radius);
    text-align: center; box-shadow: var(--shadow-soft); border: 1px solid #e2e8f0;
    transition: var(--transition); border-top: 4px solid transparent; position: relative; overflow: hidden; height: 100%;
}
.service-icon { font-size: 3.5rem; margin-bottom: 20px; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.service-card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================
   7. EVENTOS/PROMOCIONES GRID
   ========================================= */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.event-card {
    background: var(--bg-secondary); border: 1px solid #e2e8f0; border-radius: var(--border-radius);
    overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; height: 100%;
}
.event-card:hover { transform: translateY(-5px); border-color: var(--brand-accent); }
.card-image-wrapper { position: relative; height: 250px; overflow: hidden; }
.flyer-placeholder { width: 100%; height: 100%; background-size: cover; background-position: center; }
.card-overlay { position: absolute; top: 15px; right: 15px; }
.event-status { background: var(--brand-accent); color: white; padding: 5px 12px; border-radius: 4px; font-weight: 700; font-size: 0.8rem; }
.card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; text-align: center; }
.event-title { font-size: 1.3rem; margin-bottom: 5px; color: var(--brand-main); }
.event-subtitle { color: var(--brand-accent); font-weight: 700; font-size: 1.1rem; margin-bottom: 15px; }
.event-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.card-footer { margin-top: auto; }

/* =========================================
   8. FORMULARIO DE PRESUPUESTO
   ========================================= */
.centuryon-form-wrapper {
    background-color: var(--bg-secondary); border: 1px solid #e2e8f0; border-radius: var(--border-radius);
    padding: 40px; max-width: 800px; margin: 0 auto; box-shadow: var(--shadow-soft); color: var(--brand-main);
}
.centuryon-form-wrapper h2 { text-align: center; margin-bottom: 10px; font-size: 2rem; }
.centuryon-form-wrapper .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 30px; }
.centuryon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.centuryon-input-group { display: flex; flex-direction: column; }
.centuryon-input-group.full-width { grid-column: 1 / -1; }
.centuryon-input-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.centuryon-input-group input, .centuryon-input-group textarea, .custom-select {
    background-color: #f8fafc; border: 1px solid #cbd5e1; border-radius: 6px;
    padding: 12px; font-family: var(--font-body); font-size: 0.95rem; color: var(--text-main); transition: var(--transition);
}
.centuryon-input-group input:focus, .centuryon-input-group textarea:focus, .custom-select:focus {
    outline: none; border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.centuryon-input-group textarea { resize: vertical; min-height: 120px; }
.centuryon-btn {
    grid-column: 1 / -1; margin-top: 10px; background: var(--brand-accent);
    border: none; border-radius: 6px; padding: 15px; color: white; font-weight: 700;
    text-transform: uppercase; cursor: pointer; font-size: 1rem; transition: var(--transition);
}
.centuryon-btn:hover { background: #ea580c; }

/* =========================================
   9. FOOTER Y LOGO INFERIOR
   ========================================= */
.site-footer { background: var(--brand-main); color: #cbd5e1; padding: 60px 0 20px; border-top: 5px solid var(--brand-accent); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }

.footer-logo {
    max-width: 200px; height: auto; margin-bottom: 15px; background-color: white; 
    padding: 10px; border-radius: 8px;
}

.contact-list li { display: flex; gap: 15px; margin-bottom: 15px; }
.contact-list i { color: var(--brand-accent); margin-top: 5px; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }

/* =========================================
   10. EFECTOS LLAMATIVOS Y DINAMISMO
   ========================================= */
.icon-montajes { background: linear-gradient(135deg, #f97316, #ea580c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.icon-soluciones { background: linear-gradient(135deg, #3b82f6, #1d4ed8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.icon-motor { background: linear-gradient(135deg, #10b981, #047857); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }

.service-link:hover .service-card { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-top: 4px solid var(--brand-accent); }
.service-link:nth-child(2):hover .service-card { border-top-color: var(--brand-blue); }
.service-link:nth-child(3):hover .service-card { border-top-color: var(--brand-green); }
.service-link:hover .service-icon { transform: scale(1.2) rotate(5deg); }

.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    font-size: 35px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.15) rotate(-5deg); background-color: #1ebe57; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }

.scroll-indicator { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); opacity: 0.8; z-index: 10; }
.mouse { width: 30px; height: 50px; border: 2px solid #ffffff; border-radius: 20px; position: relative; }
.wheel { width: 4px; height: 8px; background: var(--brand-accent); position: absolute; top: 10px; left: 50%; transform: translateX(-50%); border-radius: 2px; animation: scroll 2s infinite; }
@keyframes scroll { 0% { top: 10px; opacity: 1; } 100% { top: 30px; opacity: 0; } }


/* =========================================
   11. TARJETAS DE PRECIOS 
   ========================================= */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; text-align: left;}

.pricing-item {
    background: #f8fafc; padding: 25px 20px; border-radius: var(--border-radius); text-align: center; 
    border: 1px solid #e2e8f0; transition: var(--transition); border-top: 4px solid transparent; 
    display: flex; flex-direction: column; justify-content: space-between; height: 100%;
}
.pricing-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-top-color: var(--brand-accent); }
.pricing-item:has(.price-soluciones):hover { border-top-color: var(--brand-blue); }
.pricing-item:has(.price-motor):hover { border-top-color: var(--brand-green); }

.pricing-info h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--brand-main); }
.pricing-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; line-height: 1.4; }

.pricing-price { font-size: 1.4rem; font-weight: 800; color: var(--brand-accent); margin-top: auto; padding-top: 15px; border-top: 1px dashed #cbd5e1; }
.price-soluciones { color: var(--brand-blue); }
.price-motor { color: var(--brand-green); }

/* =========================================
   12. RESPONSIVE Y MÓVILES
   ========================================= */
@media (max-width: 768px) {
    .main-nav { display: none; } 
    .header-content { padding: 0 15px; }
    .hero-title { font-size: 2.5rem; }
    .centuryon-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* =========================================
   13. VENTANAS MODALES (NUEVO)
   ========================================= */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Fondo oscuro transparente */
    backdrop-filter: blur(5px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}

.modal.active {
    opacity: 1; visibility: visible;
}

.modal-content {
    background: var(--bg-secondary); width: 90%; max-width: 900px;
    max-height: 90vh; overflow-y: auto; border-radius: 12px;
    padding: 40px; position: relative;
    transform: translateY(-50px); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute; top: 15px; right: 25px; font-size: 2.5rem;
    color: var(--text-muted); cursor: pointer; line-height: 1;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--brand-accent);
}

/* Scrollbar bonito para la modal */
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.modal-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: #94a3b8; }