/* =========================================================================
   INDETEC L&G SAC - ESTILOS PRINCIPALES (css/estilos.css)
   ========================================================================= */

:root {
    --brand-dark-blue: #071a2e;
    --brand-primary-blue: #0066ff;
    --brand-light-blue: #0a84ff;
    --brand-accent-cyan: #00d2ff;
    --brand-gray-bg: #f4f7fb;
    --brand-text-dark: #1e293b;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--brand-text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Montserrat', sans-serif;
}

/* ----- Navbar ----- */
.navbar-custom {
    background-color: rgba(7, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.navbar-brand-subtitle {
    color: var(--brand-accent-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-link {
    color: #e2e8f0 !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 6px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-accent-cyan) !important;
}

/* ----- Hero Section ----- */
.hero-section {
    background: linear-gradient(135deg, #051324 0%, #0a2540 60%, #003b8e 100%);
    color: white;
    padding: 160px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 210, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Circuit pattern simulation */
.circuit-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: radial-gradient(rgba(0, 102, 255, 0.2) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
}

.hero-badge {
    background: rgba(0, 102, 255, 0.2);
    border: 1px solid rgba(0, 210, 255, 0.4);
    color: var(--brand-accent-cyan);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--brand-accent-cyan);
}

/* Logo Box Styling */
.logo-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* ----- Feature Badges / Trust ----- */
.trust-banner {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-radius: 16px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding: 25px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--brand-primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ----- Services Cards ----- */
.service-card {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--brand-primary-blue), var(--brand-accent-cyan));
    transition: height 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 102, 255, 0.12);
}

.service-card:hover::before {
    height: 6px;
}

.service-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-dark-blue), var(--brand-primary-blue));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 102, 255, 0.25);
}

/* ----- Buttons ----- */
.btn-brand-primary {
    background: linear-gradient(135deg, var(--brand-primary-blue), var(--brand-light-blue));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-brand-primary:hover {
    background: linear-gradient(135deg, #0052cc, #0066ff);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 102, 255, 0.4);
}

.btn-brand-outline {
    border: 2px solid var(--brand-accent-cyan);
    color: var(--brand-accent-cyan);
    background: transparent;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-brand-outline:hover {
    background: var(--brand-accent-cyan);
    color: var(--brand-dark-blue);
}

/* ----- Interactive PCB Showcase, Products & Futuristic Carousel ----- */
.showcase-section {
    background: radial-gradient(circle at 15% 20%, #0b2948 0%, #04101f 65%, #020811 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.showcase-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 210, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.products-section {
    background: linear-gradient(160deg, #04101f 0%, #08203a 55%, #030c18 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 210, 255, 0.18);
    border-bottom: 1px solid rgba(0, 210, 255, 0.18);
}

.products-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 210, 255, 0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.tech-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.88rem;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px;
}

/* Carrusel Futurista HUD */
.cyber-carousel-shell {
    position: relative;
    border-radius: 22px;
    padding: 14px;
    background: linear-gradient(145deg, rgba(0, 102, 255, 0.22), rgba(0, 210, 255, 0.06));
    border: 1px solid rgba(0, 210, 255, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 210, 255, 0.18);
    backdrop-filter: blur(14px);
    z-index: 2;
}

.cyber-hud-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 12px 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--brand-accent-cyan);
}

.hud-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #00ffcc;
    box-shadow: 0 0 10px #00ffcc;
    display: inline-block;
    margin-right: 8px;
    animation: hudPulse 1.6s infinite ease-in-out;
}

@keyframes hudPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

.cyber-viewport {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #020812;
    border: 1px solid rgba(0, 210, 255, 0.25);
}

/* Esquinas estilo visor tecnológico */
.hud-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--brand-accent-cyan);
    border-style: solid;
    z-index: 5;
    pointer-events: none;
}
.hud-tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.hud-tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; border-top-right-radius: 6px; }
.hud-bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; border-bottom-left-radius: 6px; }
.hud-br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }

/* Efecto de escaneo sutil */
.cyber-scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 210, 255, 0.09) 50%,
        transparent 100%
    );
    height: 35%;
    width: 100%;
    z-index: 4;
    pointer-events: none;
    animation: scanMove 4.5s linear infinite;
}

@keyframes scanMove {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(320%); }
}

.cyber-carousel .carousel-item {
    height: 410px;
    overflow: hidden;
    background-color: #030b16;
}

.cyber-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 6s ease-out, filter 0.6s ease;
    filter: contrast(1.06) saturate(1.1);
}

.cyber-carousel .carousel-item.active img {
    transform: scale(1.07);
}

.cyber-caption-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 36px 24px 20px 24px;
    background: linear-gradient(to top, rgba(3, 11, 22, 0.95) 10%, rgba(3, 11, 22, 0.55) 65%, transparent 100%);
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.cyber-caption-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--brand-accent-cyan);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.cyber-caption-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.cyber-nav-btn {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(7, 26, 46, 0.78);
    border: 1px solid rgba(0, 210, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    opacity: 0.9;
    transition: all 0.25s ease;
    z-index: 6;
}

.cyber-nav-btn.carousel-control-prev { left: 16px; }
.cyber-nav-btn.carousel-control-next { right: 16px; }

.cyber-nav-btn:hover {
    background: var(--brand-accent-cyan);
    color: var(--brand-dark-blue);
    box-shadow: 0 0 18px rgba(0, 210, 255, 0.7);
    opacity: 1;
}

/* Barra de progreso inferior */
.cyber-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.cyber-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary-blue), var(--brand-accent-cyan));
    box-shadow: 0 0 10px var(--brand-accent-cyan);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Miniaturas interactivas */
.cyber-thumbs {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.cyber-thumbs-6 {
    grid-template-columns: repeat(6, 1fr);
}

.cyber-thumbs-7 {
    grid-template-columns: repeat(7, 1fr);
}

.cyber-thumb-btn {
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    overflow: hidden;
    height: 52px;
    background: #04101f;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    opacity: 0.58;
}

.cyber-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cyber-thumb-btn:hover {
    opacity: 0.9;
    border-color: rgba(0, 210, 255, 0.6);
}

.cyber-thumb-btn.active {
    opacity: 1;
    border-color: var(--brand-accent-cyan);
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.55);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .cyber-carousel .carousel-item {
        height: 270px;
    }
    .cyber-thumb-btn {
        height: 38px;
    }
}

/* ----- Contact Form Section ----- */
.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.form-control, .form-select {
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.15);
}

/* ----- Map & Footer ----- */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 380px;
}

footer {
    background-color: #030b14;
    color: #94a3b8;
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--brand-accent-cyan);
}

/* Quick Floating WhatsApp + Selector de Opciones Predeterminadas */
.wa-floating-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.wa-menu-panel {
    width: 310px;
    background: rgba(7, 26, 46, 0.97);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 210, 255, 0.16);
    overflow: hidden;
    display: none;
    animation: waFadeUp 0.22s ease-out;
}

.wa-menu-panel.show {
    display: block;
}

@keyframes waFadeUp {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-menu-header {
    background: linear-gradient(135deg, #0b2948, #003b8e);
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 210, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
}

.wa-option-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 15px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.86rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.wa-option-item:last-child {
    border-bottom: none;
}

.wa-option-item:hover {
    background: rgba(0, 210, 255, 0.14);
    color: var(--brand-accent-cyan);
    padding-left: 19px;
}

.wa-option-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(37, 211, 102, 0.16);
    color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.float-whatsapp {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border: none;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.float-whatsapp:hover {
    transform: scale(1.08);
    color: #FFF;
    box-shadow: 0px 6px 22px rgba(37, 211, 102, 0.5);
}

/* Honeypot antispam invisible para usuarios reales */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
