/* Reset y variables - Scoped per widget instance */
.cedip-hero-wrapper *{margin:0;padding:0;box-sizing:border-box}
.cedip-hero-wrapper { 
  --primary-color:#FF6B35; 
  --whatsapp-color:#25D366; 
  --text-color:#FFFFFF;
  contain: layout style; /* CSS containment para mejor rendimiento */
}

/* Hero Section */
.cedip-hero-wrapper{ position:relative;width:100%; height:120vh; min-height:700px; overflow:hidden;background:#000; }
.cedip-hero-wrapper .hero-container{position:relative;width:100%;height:100%}
.cedip-hero-wrapper .hero-slider{position:relative;width:100%;height:100%}
.cedip-hero-wrapper .hero-slide{ position:absolute;inset:0; opacity:0;transition:opacity 1s ease-in-out; background-size:cover;background-position:center;background-repeat:no-repeat; will-change:opacity; }
.cedip-hero-wrapper .hero-slide.active{opacity:1;will-change:auto;}
.cedip-hero-wrapper .hero-slide::before{content:'';position:absolute;inset:0;background:rgba(0,0,0,.4);z-index:1}

.cedip-hero-wrapper .hero-content{ position:relative;z-index:2;display:flex;align-items:center;justify-content:flex-start; height:55%;padding:0 5%;max-width:1400px;margin:0 auto;padding-top:8%; }
.cedip-hero-wrapper .hero-text{flex:1;color:var(--text-color);max-width:700px}
.cedip-hero-wrapper .hero-subtitle{ display:inline-block;background:var(--primary-color);color:var(--text-color); padding:.6rem 1.2rem;border-radius:25px;font-size:.95rem;font-weight:700; text-transform:uppercase;margin-bottom:20px; }
.cedip-hero-wrapper .hero-title{ font-size:clamp(2.6rem,4vw,4rem);font-weight:800;line-height:1.2; margin-bottom:30px;text-shadow:2px 2px 4px rgba(0,0,0,.5); }

.cedip-hero-wrapper .hero-buttons{display:flex;gap:15px;flex-wrap:wrap}
.cedip-hero-wrapper .btn-primary,.cedip-hero-wrapper .btn-whatsapp{ display:inline-flex;align-items:center;gap:10px; padding:.95rem 1.8rem;border-radius:50px;text-decoration:none;font-weight:700; transition:all .3s ease;border:none;cursor:pointer;font-size:1rem;letter-spacing:.1px; }
.cedip-hero-wrapper .btn-primary{background:var(--primary-color);color:var(--text-color)}
.cedip-hero-wrapper .btn-primary:hover{background:#e55a2b;transform:translateY(-2px)}
.cedip-hero-wrapper .btn-whatsapp{background:var(--whatsapp-color);color:var(--text-color)}
.cedip-hero-wrapper .btn-whatsapp:hover{background:#1da851;transform:translateY(-2px)}

/* Careers */
.cedip-hero-wrapper .careers-section{position:relative;z-index:2;padding:0 5% 40px;max-width:1600px;margin:0 auto;margin-top:15px}
.cedip-hero-wrapper .careers-title{ color:var(--text-color);font-size:2rem;font-weight:700;text-align:center;margin-bottom:30px; text-shadow:2px 2px 4px rgba(0,0,0,.5); }
.cedip-hero-wrapper .careers-container{position:relative;display:flex;align-items:center;gap:20px}
.cedip-hero-wrapper .careers-slider{ display:flex;gap:20px;overflow-x:auto;scroll-behavior:smooth;padding:10px 0;flex:1; scrollbar-width:none;-ms-overflow-style:none; }
.cedip-hero-wrapper .careers-slider::-webkit-scrollbar{display:none}

.cedip-hero-wrapper .career-card{ flex:0 0 320px;background:rgba(255,255,255,.1);backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.2);border-radius:15px;padding:30px 20px;text-align:center; color:var(--text-color);transition:all .3s ease;cursor:pointer;height:360px;display:flex;flex-direction:column;justify-content:space-between; }
.cedip-hero-wrapper .career-card:hover{transform:translateY(-10px);background:rgba(255,255,255,.15);border-color:var(--primary-color)}
.cedip-hero-wrapper .card-icon{width:155px;height:155px;margin:0 auto 20px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cedip-hero-wrapper .career-img{width:100%;height:100%;object-fit:cover;border-radius:15px}
.cedip-hero-wrapper .card-line{width:60px;height:3px;background:var(--primary-color);margin:0 auto 15px;border-radius:2px}
.cedip-hero-wrapper .card-title{font-size:1.2rem;font-weight:600;line-height:1.4;margin:0;padding:0 5px}

/* Botones de navegación */
.cedip-hero-wrapper .nav-btn, .cedip-hero-wrapper .hero-nav-btn {
    background: rgba(255,255,255,0.2);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.cedip-hero-wrapper .nav-btn:hover, .cedip-hero-wrapper .hero-nav-btn:hover {
    background: var(--primary-color);
}

.cedip-hero-wrapper .hero-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

/* Dots (indicadores de paginación) */
.cedip-hero-wrapper .hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.cedip-hero-wrapper .hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}
.cedip-hero-wrapper .hero-dot:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.1);
}
.cedip-hero-wrapper .hero-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width:1400px) {
    .cedip-hero-wrapper{height:130vh;min-height:780px;}
    .cedip-hero-wrapper .hero-content{padding-top:7%;height:56%;max-width:1280px;}
    .cedip-hero-wrapper .hero-title{font-size:clamp(2.4rem,3.8vw,3.8rem);margin-bottom:28px;}
    .cedip-hero-wrapper .hero-subtitle{font-size:.95rem;padding:.55rem 1.25rem;margin-bottom:18px;}
    .cedip-hero-wrapper .btn-primary,.cedip-hero-wrapper .btn-whatsapp{font-size:1rem;padding:.9rem 1.6rem;gap:10px;}
    .cedip-hero-wrapper .careers-section{padding:0 5% 40px;margin-top:20px}
    .cedip-hero-wrapper .careers-title{font-size:1.9rem;margin-bottom:26px}
    .cedip-hero-wrapper .careers-container{gap:18px}
    .cedip-hero-wrapper .careers-slider{gap:18px}
    .cedip-hero-wrapper .career-card{flex:0 0 300px;height:300px;padding:26px 18px}
    .cedip-hero-wrapper .card-icon{width:170px;height:170px}
    .cedip-hero-wrapper .card-title{font-size:1.1rem}
}

@media (min-width:768px) and (max-width:1023px) {
    .cedip-hero-wrapper{height:120vh;min-height:640px;}
    .cedip-hero-wrapper .hero-content{flex-direction:column;text-align:center;height:auto;padding-top:5%;justify-content:center}
    .cedip-hero-wrapper .hero-text{max-width:600px}
    .cedip-hero-wrapper .hero-title{font-size:2.8rem;margin-bottom:25px}
    .cedip-hero-wrapper .hero-subtitle{font-size:.9rem;padding:.55rem 1.1rem;margin-bottom:18px}
    .cedip-hero-wrapper .hero-buttons{justify-content:center;gap:12px;margin-bottom:20px}
    .cedip-hero-wrapper .btn-primary,.cedip-hero-wrapper .btn-whatsapp{font-size:.95rem;padding:.85rem 1.5rem}
    .cedip-hero-wrapper .careers-section{margin-top:15px;padding:0 4% 30px}
    .cedip-hero-wrapper .careers-title{font-size:1.7rem;margin-bottom:20px}
    .cedip-hero-wrapper .careers-container{gap:15px}
    .cedip-hero-wrapper .careers-slider{gap:15px}
    .cedip-hero-wrapper .career-card{flex:0 0 260px;height:320px;padding:22px 16px}
    .cedip-hero-wrapper .card-icon{width:125px;height:125px;margin-bottom:15px}
    .cedip-hero-wrapper .card-title{font-size:1.05rem}
}

@media (min-width:481px) and (max-width:767px) {
    body.admin-bar .cedip-hero-wrapper{padding-top:46px;}
    .cedip-hero-wrapper{height:110vh;min-height:620px;padding-top:max(env(safe-area-inset-top,0px),12px)}
    .cedip-hero-wrapper .hero-content{flex-direction:column;text-align:center;height:auto;padding-top:clamp(64px,9vh,110px)!important;padding-left:6%;padding-right:6%}
    .cedip-hero-wrapper .hero-text{max-width:100%}
    .cedip-hero-wrapper .hero-title{font-size:2.3rem;margin-bottom:20px}
    .cedip-hero-wrapper .hero-subtitle{font-size:.85rem;padding:.5rem 1rem;margin-bottom:16px}
    .cedip-hero-wrapper .hero-buttons{justify-content:center;gap:10px;margin-bottom:15px;flex-direction:column;align-items:center}
    .cedip-hero-wrapper .btn-primary,.cedip-hero-wrapper .btn-whatsapp{padding:.85rem 1.4rem;font-size:.95rem;width:100%;max-width:280px;justify-content:center}
    .cedip-hero-wrapper .careers-section{margin-top:12px;padding:0 4% 22px}
    .cedip-hero-wrapper .careers-title{font-size:1.5rem;margin-bottom:18px}
    .cedip-hero-wrapper .careers-container{gap:10px}
    .cedip-hero-wrapper .careers-slider{gap:14px}
    .cedip-hero-wrapper .career-card{flex:0 0 210px;height:270px;padding:18px 14px}
    .cedip-hero-wrapper .card-icon{width:100px;height:100px;margin-bottom:10px}
    .cedip-hero-wrapper .card-line{width:44px;height:2px;margin-bottom:8px}
    .cedip-hero-wrapper .card-title{font-size:.98rem;line-height:1.25}
}

@media (max-width:480px) {
    body.admin-bar .cedip-hero-wrapper{padding-top:46px;}
    .cedip-hero-wrapper{height:110vh;min-height:600px;padding-top:max(env(safe-area-inset-top,0px),12px)}
    .cedip-hero-wrapper .hero-content{flex-direction:column;text-align:center;height:auto;padding-top:clamp(64px,9vh,110px)!important;padding-left:5%;padding-right:5%}
    .cedip-hero-wrapper .hero-text{max-width:100%}
    .cedip-hero-wrapper .hero-title{font-size:1.95rem;margin-bottom:18px;line-height:1.1}
    .cedip-hero-wrapper .hero-subtitle{font-size:.8rem;padding:.45rem .9rem;margin-bottom:14px}
    .cedip-hero-wrapper .hero-buttons{justify-content:center;gap:8px;margin-bottom:12px;flex-direction:column;align-items:center}
    .cedip-hero-wrapper .btn-primary,.cedip-hero-wrapper .btn-whatsapp{padding:.8rem 1.2rem;font-size:.95rem;width:100%;max-width:240px;justify-content:center}
    .cedip-hero-wrapper .careers-section{margin-top:10px;padding:0 3% 18px}
    .cedip-hero-wrapper .careers-title{font-size:1.35rem;margin-bottom:15px}
    .cedip-hero-wrapper .careers-container{gap:8px}
    .cedip-hero-wrapper .careers-slider{gap:12px}
    .cedip-hero-wrapper .career-card{flex:0 0 190px;height:250px;padding:16px 12px}
    .cedip-hero-wrapper .card-icon{width:90px;height:90px;margin-bottom:8px}
    .cedip-hero-wrapper .card-line{width:38px;height:2px;margin-bottom:6px}
    .cedip-hero-wrapper .card-title{font-size:.92rem;line-height:1.22;padding:0 2px}
}