:root {
  --bg-dark: #0B0C10;
  --bg-card: #151822;
  --widget-bg: #1e293b;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --blue: #3b82f6;
  --blue-hover: #60a5fa;
  --purple: #8b5cf6;
  --purple-hover: #c084fc;
  --border-color: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(168, 85, 247, 0.3);
  --bg-input: #1a1d27;
  --primary-gradient: linear-gradient(to right, var(--blue), var(--purple));
  --font-family: 'Manrope', sans-serif;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

a, button, .wsp-floating-btn{
  -webkit-tap-highlight-color: transparent;
}

/* Ambient Glows */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
}

.glow-blue {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vh;
  background: rgba(37, 99, 235, 0.15);
}

.glow-purple {
  top: 40%;
  right: -10%;
  width: 40vw;
  height: 40vh;
  background: rgba(147, 51, 234, 0.1);
}

/* Typography Utilities */
.text-blue { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-gradient {
  background: linear-gradient(to right, #60a5fa, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1024px;
  background: rgba(21, 24, 34, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ========================= */
/* HAMBURGUESA */
/* ========================= */

.hamburger{
    display:none;
    width:42px;
    height:42px;
    border:none;
    background:none;
    cursor:pointer;
    position:relative;
    z-index:100;
}

.hamburger span{
    position:absolute;
    left:9px;
    width:24px;
    height:2px;
    background:#fff;
    border-radius:5px;
    transition:.35s;
}

.hamburger span:nth-child(1){
    top:13px;
}

.hamburger span:nth-child(2){
    top:20px;
}

.hamburger span:nth-child(3){
    top:27px;
}

/* Cruz */

.hamburger.active span:nth-child(1){
    transform:rotate(45deg);
    top:20px;
}

.hamburger.active span:nth-child(2){
    opacity:0;
}

.hamburger.active span:nth-child(3){
    transform:rotate(-45deg);
    top:20px;
}

.logo img{
  display: flex;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--blue-hover);
}


/* Buttons */
.btn-primary, 
.btn-form {
  background: var(--primary-gradient);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: opacity 0.3s, transform 0.2s;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

.btn-primary:hover,
.btn-form:hover {
  opacity: 0.9;
}


.btn-outline {
  background: transparent;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.3s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Layout Container */
.section-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero {
  padding-top: 12rem;
  padding-bottom: 8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  width: 100%;
  position: relative;
  background:transparent;
  border-radius: 1rem;
  padding: 1px;
  box-shadow: 0 px 50px -12px rgba(59, 130, 246, 0.1);
}

.hero-visual img {
  display: flex;
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

/* Section Header */
.section-header {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 42rem;
}

/* Services Grid */
.services {
  padding: 6rem 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}


.card:hover {
  border-color: var(--border-hover);
}

.card-title {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;

} 

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #c084fc;
  flex-shrink: 0;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-grow: 1;
  margin-top: 1rem;
}

.separator{
    width:100%;
    height:1px;
    background:rgba(255,255,255,.20);
    margin:1rem 0 1rem 0;
    align-items: center;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.card-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.card-features svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--blue);
  flex-shrink: 0;
}

.btn-card {
  width: 100%;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #fff;
  padding: 0.75rem;
  border-radius: 50px;
  font-weight: 500;
  transition: background 0.3s;
}

.card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.card-image img {
  position: absolute;
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

#btnSistema {
  z-index: -10;
}

.card:hover .btn-card {
  background: var(--primary-gradient);
  border-color: transparent;
}

/* Reasons */
.reasons {
  padding: 6rem 1.5rem;
  max-width: 896px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 600;
  color: #d8b4fe;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.badge .dot {
  width: 6px;
  height: 6px;
  background: var(--purple);
  border-radius: 50%;
}

.reasons-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reason-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.reason-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-gradient);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.reason-item:hover::before {
  opacity: 1;
}

.reason-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  flex-shrink: 0;
}

.reason-text h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.reason-text p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.reason-title {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  width: 100%;
  
}
/* Contact */
.contact {
  padding: 6rem 1.5rem;
  max-width: 1024px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.social-links a {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  transition: background 0.3s;
}

.social-links a:hover {
  background: rgba(59, 130, 246, 0.1);
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-card a {
  color: var(--text-muted)
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
}

.contact-card div {
  display: flex;
  flex-direction: column;
}

.contact-card strong {
  font-weight: 500;
}

.contact-card span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.contact-form-wrapper {
  position: relative;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.3));
  padding: 1px;
  border-radius: 1.5rem;
}

.contact-form {
  background: var(--bg-dark);
  padding: 2.5rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn-form {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 50px;
}

/* WIDGET WASAPP*/
        /* Botón Flotante principal */
        .wsp-floating-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background: var(--primary-gradient);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 28px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
            z-index: 9999;
            transition: transform 0.3s ease;
        }

        .wsp-floating-btn:hover {
            transform: scale(1.1);
        }

        /* Globo de notificación */
        .wsp-notification-badge {
            position: absolute;
            top: -2px;
            right: -2px;
            background-color: #ef4444;
            color: white;
            font-size: 10px;
            font-weight: 600;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            border: 2px solid var(--bg-dark);
        }

        /* Contenedor del Widget */
        .wsp-widget-container {
            position: fixed;
            bottom: 95px;
            right: 20px;
            width: 360px;
            background-color: #0b111e;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            display: none;
            flex-direction: column;
            z-index: 9998;
            animation: fadeInUp 0.4s ease forwards;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Header del Widget */
        .wsp-widget-header {
            background: var(--primary-gradient);
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: white;
        }

        .wsp-header-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .wsp-profile-img {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover; /* Evita que la imagen se deforme */
            background-color: rgb(0, 0, 0); /* Ideal si tu logo tiene fondo transparente */
            border: 2px solid rgb(0, 0, 0); /* Le da un bordecito limpio que resalta sobre el degradado */
            object-fit: contain; /* Asegura que la imagen se ajuste sin recortarse */
}

        .wsp-status-text h4 {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
        }

        .wsp-status-text span {
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 6px;
            opacity: 0.9;
        }

        .wsp-status-dot {
            width: 8px;
            height: 8px;
            background-color: #22c55e;
            border-radius: 50%;
            display: inline-block;
        }

        .wsp-close-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background 0.2s;
        }

        /* Cuerpo del chat */
        .wsp-widget-body {
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* Burbuja de mensaje */
        .wsp-chat-bubble {
            background-color: var(--widget-bg);
            color: var(--text-main);
            padding: 16px;
            border-radius: 4px 18px 18px 18px;
            font-size: 14px;
            line-height: 1.6;
            position: relative;
            min-height: 40px;
        }

        .wsp-bubble-meta {
            font-size: 11px;
            color: var(--text-muted);
            margin-bottom: 6px;
        }

        /* Estado "Escribiendo..." */
        .wsp-typing-indicator {
            display: flex;
            align-items: center;
            gap: 4px;
            font-style: italic;
            color: var(--text-muted);
        }

        .wsp-typing-dots {
            display: inline-flex;
            gap: 2px;
        }

        .wsp-typing-dots span {
            width: 4px;
            height: 4px;
            background-color: var(--text-muted);
            border-radius: 50%;
            animation: bounce 1.4s infinite ease-in-out both;
        }

        .wsp-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
        .wsp-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

        @keyframes bounce {
            0%, 80%, 100% { transform: scale(0); }
            40% { transform: scale(1); }
        }

        /* Cursor de tipeado */
        .typing-cursor::after {
            content: '|';
            animation: blink 0.7s infinite;
            font-weight: bold;
            color: #a855f7;
            margin-left: 2px;
        }

        @keyframes blink {
            50% { opacity: 0; }
        }

        /* Botón de acción */
        .wsp-cta-btn {
            background: var(--primary-gradient);
            color: white;
            text-decoration: none;
            padding: 14px;
            border-radius: 14px;
            text-align: center;
            font-weight: 600;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            transition: opacity 0.4s ease, transform 0.3s;
            opacity: 0;
            transform: translateY(10px);
            pointer-events: none;
        }

        .wsp-cta-btn.show {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .wsp-cta-btn:hover {
            filter: brightness(1.1);
        }

        /* --- RESPONSIVIDAD PARA CELULARES --- */
@media (max-width: 420px) {
    .wsp-widget-container {
        /* Toma el 100% del ancho de la pantalla menos 40px (20px de margen de cada lado) */
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 90px;
    }

    .wsp-widget-body {
        /* Reducimos apenas el padding interno para aprovechar mejor el espacio en celulares */
        padding: 15px;
    }

    .wsp-chat-bubble {
        font-size: 13px; /* Achicamos un pelito la fuente para que lea más cómodo */
    }

    .wsp-cta-btn {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    /* Ajuste extra para celulares extremadamente pequeños */
    .wsp-widget-container {
        width: calc(100vw - 20px);
        right: 10px;
    }
    
    .wsp-floating-btn {
        right: 10px;
        bottom: 10px;
    }
}
/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1152px;
  margin: 0 4rem;
  display: flex;
  flex-direction: row;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 24rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-legal h4 {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-navegacion h4 {
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.footer-navegacion ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-navegacion a {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-legal a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-navegacion a:hover {
  color: #fff;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-top {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.footer-bottom {
  max-width: 1152px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.made-with {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-links {
    margin-right: 5rem;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 8rem;
  }
  
  .hero-text {
    margin: 0 auto 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    display: flex;
    justify-content: center;
  }

  .hero-visual img {
    max-width: 70%;
    height: auto;
    margin-top: 4rem;
  }

  .card-image img {
    max-width: 70%;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    gap: 3rem;
  }

  #btnpresupuesto-nav {
    display: none;
  }
}


@media (max-width:768px){

    .navbar{

        width:90%;
        max-width:340px;

        overflow:hidden;

        flex-wrap:wrap;

        transition:
        max-width .45s ease,
        border-radius .35s ease,
        padding .35s ease;
    }

    .navbar.active{

        max-width:500px;

        border-radius:28px;
    }

    .hamburger{

        display:block;
        margin-left:auto;
    }

    .nav-links{
      margin-right:0;

        order:3;

        width:100%;

        display:flex;

        flex-direction:column;

        align-items:center;

        gap:22px;

        max-height:0;

        opacity:0;

        overflow:hidden;

        transition:
        max-height .45s ease,
        opacity .3s ease,
        margin-top .35s ease;
    }

    .navbar.active .nav-links{

        max-height:300px;

        opacity:1;

        margin-top:25px;

        margin-bottom:10px;
    }

    #btnpresupuesto-nav{

        display:none;
    }



  .section-container {
    padding-bottom: 1.25rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-visual {
    display: flex;
    justify-content: center;
  }

  .hero-visual img {
    max-width: 100%;
    height: auto;
    margin-top: 4rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .reason-item {
    flex-direction: column;
  }

  .reason-title {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-image img {
    max-width: 60%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info h3, p {
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
  
  .footer-brand {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .footer-brand p {
    text-align: center;
  }

  .footer-navegacion {
    text-align: center;
  }

  .footer-legal {
    text-align: center;
  }

  .footer-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
  
  
  .footer-bottom {
    display: flex;
    text-align: center;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }
}


@media (max-width:480px) {

    .card-image img {
    max-width: 80%;
  }

  .footer-navegacion li {
    line-height: 1.2rem;
  }

  .footer-navegacion ul {
    gap: 0.5rem;
  }

  .footer-legal ul {
    gap: 0.5rem;
  }
    .footer-legal li {
    line-height: 1.2rem;
  }
  
}

@media (min-width: 768px) {
  #navegacion {
    display: none;
  }
  
}

