@font-face {
    font-family: 'Made Tommy';
    src: url('../assets/made_tommy/MADE%20TOMMY%20Regular_PERSONAL%20USE.otf') format('opentype');
    font-weight: 400;
}
@font-face {
    font-family: 'Made Tommy';
    src: url('../assets/made_tommy/MADE%20TOMMY%20Bold_PERSONAL%20USE.otf') format('opentype');
    font-weight: 700;
}
@font-face {
    font-family: 'Made Tommy';
    src: url('../assets/made_tommy/MADE%20TOMMY%20ExtraBold_PERSONAL%20USE.otf') format('opentype');
    font-weight: 800;
}

:root {
    --accent-blue: #0066ff;
    --accent-cyan: #00b0ff;
    --accent-green: #00d28f;
    --text-white: #ffffff;
    --bg-dark: #00040a;
    --glass-bg: rgba(0, 20, 40, 0.4);
    --glass-border: rgba(0, 102, 255, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Made Tommy', sans-serif; scroll-behavior: smooth; }
body { background: var(--bg-dark); color: var(--text-white); overflow-x: hidden; }

/* Global Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; z-index: 1000; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
}
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links li a { color: var(--text-white); text-decoration: none; font-weight: 500; transition: 0.3s; }
.nav-links li a:hover { color: var(--accent-cyan); text-shadow: 0 0 10px var(--accent-cyan); }
.nav-contact { border: 1px solid #00d28f; padding: 8px 20px !important; border-radius: 20px; color: #00d28f !important; transition: 0.3s; }
.nav-contact:hover { background: #00d28f; color: #000 !important; box-shadow: 0 0 15px #00d28f; }

/* Video Backgrounds & Setup */
.scroll-section { position: relative; min-height: 100vh; padding: 80px 5%; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.bg-video { position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.overlay { position: absolute; top:0; left:0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: -1; }
.features-container { position:relative; z-index:2; width:100%; max-width:1300px; margin:0 auto; }

/* Typography */
h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 0 20px rgba(0,0,0,0.8); }
h2 { font-size: 3.5rem; font-weight: 800; margin-bottom: 30px; text-shadow: 0 0 15px rgba(0,0,0,0.8); }
.text-cyan { color: var(--accent-cyan); text-shadow: 0 0 15px var(--accent-cyan); }
.text-blue { color: var(--accent-blue); text-shadow: 0 0 15px var(--accent-blue); }
.text-green { color: var(--accent-green); text-shadow: 0 0 15px var(--accent-green); }

/* Buttons */
.btn-mega {
    font-size: 1.3rem; font-weight: 800; padding: 15px 40px; border-radius: 50px; text-decoration: none;
    display: inline-block; cursor: pointer; border: none; transition: 0.3s ease-out; text-transform: uppercase;
}
.neon-green-btn {
    background: var(--accent-green); color: #000; box-shadow: 0 0 20px var(--accent-green);
}
.neon-green-btn:hover {
    transform: scale(1.05); box-shadow: 0 0 40px var(--accent-green); background: #fff !important;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 20px; padding: 30px; transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.glass-card:hover { 
    border-color: var(--accent-cyan); transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 20px rgba(0,176,255,0.2) inset; 
}

/* Custom Grids & Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Section 3: Pyramid Layout */
.pyramid-layout { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.pyramid-top { display: flex; justify-content: center; gap: 40px; width: 100%; max-width: 900px; }
.pyramid-bottom { display: flex; justify-content: center; width: 100%; max-width: 450px; }

/* Section 4: Beneficios Clave Lines */
.benefit-node { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.benefit-line { width: 40px; height: 3px; background: var(--accent-cyan); margin: 15px 0; box-shadow: 0 0 10px var(--accent-cyan); }

/* Section 5: Vertical Bubbles */
.vertical-bubble {
    background: transparent; border: 1px solid var(--accent-cyan); padding: 15px 30px;
    border-radius: 50px; font-weight: 600; text-align: left; margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0,176,255,0.3) inset; transition: 0.3s;
}
.vertical-bubble:hover {
    background: rgba(0,176,255,0.2); box-shadow: 0 0 20px rgba(0,176,255,0.5) inset;
}

/* Title Badge */
.title-badge {
    display: inline-block; background: var(--accent-blue); padding: 10px 25px; border-radius: 5px;
    font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 20px; box-shadow: 0 0 15px var(--accent-blue);
}

/* Animations */
.section-reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.section-reveal.visible { opacity: 1; transform: translateY(0); }
.stagger-item { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.stagger-item.visible { opacity: 1; transform: translateY(0); }

/* Responsive adjustments */
@media (max-width: 1000px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .pyramid-top { flex-direction: column; align-items: center; }
    .nav-links { display: none; }
}
@media (max-width: 768px) {
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem !important; }
    h3 { font-size: 1.5rem !important; }
    .scroll-section { padding: 80px 5% !important; min-height: auto; }
    .grid-2, .grid-4 { grid-template-columns: 1fr !important; }
    .pyramid-top, .pyramid-bottom { flex-direction: column !important; align-items: center !important; }
    .btn-mega { font-size: 1.1rem !important; padding: 12px 25px !important; }
    .title-badge { font-size: 0.9rem !important; padding: 8px 15px !important; }
    footer div { min-width: 100% !important; }

    /* Specific EVERBRIDGE SIGNAL Fixes */
    #signal-logo-container { flex-direction: row !important; align-items: center !important; gap: 10px !important; margin-bottom: 20px !important; flex-wrap: nowrap !important; }
    #signal-logo-img { max-width: 160px !important; padding: 8px 15px !important; }
    #signal-title { font-size: 1.8rem !important; letter-spacing: 1px !important; }
    #signal-subtitle { font-size: 2.2rem !important; max-width: 100% !important; text-align: left !important; }
    #signal-badge { font-size: 0.85rem !important; width: 100%; text-align: center; }

    .benefit-node { align-items: center !important; text-align: center !important; }
    .benefit-line { margin: 15px auto !important; }
    
    section[style*="justify-content: flex-end"] { padding-bottom: 50px !important; }
    
    /* Scaling huge H2s in Por Qué Signal */
    .grid-2 h2 { font-size: 3rem !important; line-height: 1.1 !important; text-align: center !important; }
    .grid-2 > div { text-align: center !important; }
    .vertical-bubble { border-radius: 15px !important; padding: 15px 20px !important; }
}
