/* ========================= */
/* VARIABLES */
/* ========================= */

:root {
  --bg: #0b0b0b;
  --card: #111;
  --primary: #22c55e;
  --primary-hover: #16a34a;
  --text: #ffffff;
  --text-secondary: #a0a0a0;
}

/* ========================= */
/* BASE */
/* ========================= */

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #1a1a1a, #0b0b0b 60%);
  color: var(--text);
}

/* textura suave */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://www.transparenttextures.com/patterns/noise.png');
  opacity: 0.03;
  pointer-events: none;
}

/* ========================= */
/* TEXTO */
/* ========================= */

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========================= */
/* BOTONES */
/* ========================= */

.btn-primary {
  background: var(--primary);
  color: black;
  padding: 12px 24px;
  border-radius: 16px;
  transition: 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.btn-secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 16px;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: var(--primary);
  color: black;
}

/* ========================= */
/* NAVBAR */
/* ========================= */

.nav-link {
  color: var(--text-secondary);
  transition: 0.3s;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary);
}

/* ========================= */
/* CARDS */
/* ========================= */

.card {
  position: relative;
  background: var(--card);
  color: var(--text);
  padding: 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #1f1f1f;
  transition: 0.4s;
}

/* efecto neon */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: 0.4s;
}

.card:hover::before {
  opacity: 0.15;
}

.card:hover {
  border: 1px solid var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

/* texto cards */
.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
}

.card p {
  color: #b3b3b3;
}

/* ========================= */
/* SECCIONES */
/* ========================= */

.section-divider {
  border-top: 1px solid #1f1f1f;
}

/* ========================= */
/* PORTFOLIO */
/* ========================= */

.portfolio-pro {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.portfolio-pro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.portfolio-pro .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: 0.4s;
}

.portfolio-pro h3 {
  color: white;
  font-size: 20px;
  font-weight: 600;
}

.portfolio-pro p {
  color: #ccc;
  font-size: 14px;
}

.portfolio-pro:hover img {
  transform: scale(1.08);
}

.portfolio-pro:hover .overlay {
  opacity: 1;
}

/* ========================= */
/* CONTACTO */
/* ========================= */

.contact-card {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  padding: 32px;
  transition: 0.3s;
}

.contact-card:hover {
  border: 1px solid var(--primary);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.08);
}

/* títulos */
.contact-card h2 {
  font-size: 32px;
}

.contact-card h3 {
  font-size: 20px;
  color: white;
  font-weight: 600;
  margin-bottom: 5px;
}

/* texto */
.contact-card p,
.contact-card a {
  font-size: 18px;
  color: #d1d5db;
}

/* inputs */
.contact-input {
  width: 100%;
  background: #0b0b0b;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 14px 16px;
  color: white;
  outline: none;
  transition: 0.3s;
}

.contact-input:focus {
  border: 1px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}

.contact-input::placeholder {
  color: #777;
}

/* ========================= */
/* MODAL LOGIN */
/* ========================= */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
}

.modal-content input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* CLIENTE */

.dashboard-link {
  color: var(--text-secondary);
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s;
}

.dashboard-link:hover {
  background: rgba(34, 197, 94, 0.08);
  color: var(--primary);
}

.active-link {
  background: rgba(34, 197, 94, 0.12);
  color: var(--primary);
}

.status-badge {
  background: rgba(34, 197, 94, 0.12);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #1a1a1a;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  border-radius: 999px;
}

.activity-item {
  padding-bottom: 16px;
  border-bottom: 1px solid #1f1f1f;
}

.activity-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.admin-modal {
  background: #111;
  color: white;
  width: 100%;
  max-width: 520px;
  border: 1px solid #1f1f1f;
}

input[type="range"] {
  accent-color: #22c55e;
}

.split-section {
  position: relative;
}

header nav a.nav-link {
  font-size: 18px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

header nav a.nav-link:hover {
  color: var(--primary) !important;
}

@media (min-width: 768px) {
  .split-section::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #1f1f1f;
    transform: translateX(-50%);
  }
}

.plan-card {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 18px;
  padding: 32px 24px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: 0.3s;
}

.plan-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.12);
}

.plan-icon {
  font-size: 36px;
}

.plan-card h3 {
  color: white;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.plan-card p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.5;
}

.plan-card p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  max-width: 260px;
}

.price-card {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 20px;
  padding: 36px;
  transition: 0.3s;
}

.price-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.12);
  transform: translateY(-5px);
}

.price-card h2 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.price {
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.price-card ul {
  margin-bottom: 24px;
  color: #d1d5db;
  line-height: 1.8;
  padding-left: 20px;
  list-style: disc;
}

.payment {
  color: #9ca3af;
  margin-bottom: 24px;
  line-height: 1.6;
}

.active-nav {
  color: var(--primary) !important;
}

.logo-luce {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: white;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 8px;
}

.logo-luce {
  display: flex;
  align-items: center;
  gap: 4px;

  text-decoration: none;
  color: white;

  font-size: 18px;
  font-weight: 600;
  letter-spacing: 6px;
  line-height: 1;
}

.logo-e {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.logo-e span {
  width: 14px;
  height: 2px;

  background: var(--primary);
  border-radius: 999px;
}

.logo-e span:nth-child(2) {
  width: 10px;
}

.logo-e span {
  display: block;

  width: 18px;
  height: 3px;

  background: var(--primary);
  border-radius: 999px;
}

.logo-e span:nth-child(2) {
  width: 14px;
}

/* ========================= */
/* PORTFOLIO */
/* ========================= */

.portfolio-pro {
  position: relative;
  overflow: hidden;

  border-radius: 24px;
  border: 1px solid #1f1f1f;

  background: #111;

  min-height: 500px;

  display: block;

  transition: 0.4s;
}

.portfolio-pro img {
  width: 100%;
  height: 500px;
  object-fit: cover;

  transition: 0.5s;
}

.portfolio-pro:hover img {
  transform: scale(1.06);
}

.portfolio-pro .overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.9),
      rgba(0,0,0,0.2),
      transparent
    );

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 32px;

  opacity: 0;

  transition: 0.4s;
}

.portfolio-pro:hover .overlay {
  opacity: 1;
}

.portfolio-pro h3 {
  color: white;
  font-size: 32px;
  font-weight: 700;

  margin-bottom: 12px;
}

.portfolio-pro p {
  color: #d1d5db;
  line-height: 1.6;
}

.portfolio-tag {
  display: inline-block;

  width: fit-content;

  padding: 8px 14px;

  border-radius: 999px;

  background: rgba(34, 197, 94, 0.12);

  color: #22c55e;

  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  margin-bottom: 16px;
}

.portfolio-showcase {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.08);
}

.portfolio-showcase img {
  width: 100%;
  height: auto;

  object-fit: contain;

  border-radius: 20px;
}

.portfolio-visual {
  width: 280px;

  background: #f5efe7;

  border-radius: 24px;

  padding: 16px;

  overflow: hidden;

  transition: 0.4s;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.15);
}

.portfolio-visual:hover {
  transform: translateY(-6px);
}

.portfolio-visual img {
  width: 100%;

  border-radius: 18px;

  display: block;
}

.cece-visual {
  width: 360px;

  background: #f5efe7;

  border-radius: 24px;

  padding: 14px;

  overflow: hidden;

  transition: 0.4s;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.15);
}

.cece-visual:hover {
  transform: translateY(-6px);
}

.cece-visual img {
  width: 100%;

  height: 220px;

  object-fit: cover;

  border-radius: 18px;

  display: block;
}

.cece-showcase {
  background: #ffffff;
  border-radius: 32px;
  padding: 18px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  overflow: hidden;
}

.cece-showcase img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.service-btn {
  display: inline-flex;

  margin-top: 24px;

  padding: 12px 20px;

  border-radius: 14px;

  border: 1px solid #00cc6a;

  color: #00cc6a;

  font-weight: 600;

  transition: 0.3s;
}

.service-btn:hover {
  background: #00cc6a;
  color: #000;

  box-shadow:
    0 0 20px rgba(0,204,106,0.35);
}

.service-card {
  position: relative;
  background: var(--card);
  color: var(--text);
  padding: 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #1f1f1f;
  transition: 0.4s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: 0.4s;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 0.15;
}

.service-card:hover {
  border: 1px solid var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.service-card h3,
.service-card p,
.service-card a {
  position: relative;
  z-index: 2;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
}

.service-card p {
  color: #b3b3b3;
}

.hero-location {
  position: absolute;

  top: 140px;
  left: 80px;

  display: flex;
  align-items: center;
  gap: 16px;

  padding: 18px 24px;

  background: rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 22px;

  backdrop-filter: blur(12px);

  transition: 0.3s;

  z-index: 10;
}

.hero-location:hover {
  border-color: rgba(0,204,106,0.4);

  box-shadow:
    0 0 30px rgba(0,204,106,0.12);
}

.hero-location img {
  width: 28px;
  height: 28px;
}

.hero-location p {
  color: white;

  font-size: 18px;

  font-weight: 700;

  margin: 0;
}

.hero-location span {
  display: block;

  color: #9ca3af;

  font-size: 14px;

  margin-top: 4px;
}

.chat-widget {
  position: fixed;

  bottom: 30px;
  right: 30px;

  width: 340px;
  height: 500px;

  background: #0b0b0b;

  border: 1px solid #1f1f1f;

  border-radius: 24px;

  overflow: hidden;

  z-index: 9999;

  box-shadow:
    0 0 40px rgba(0,0,0,0.4);
}

.chat-header {
  padding: 18px;

  background: #111;

  color: white;

  font-weight: 700;

  border-bottom: 1px solid #1f1f1f;
}

.chat-messages {
  height: 370px;

  overflow-y: auto;

  padding: 18px;

  display: flex;
  flex-direction: column;

  gap: 12px;
}

.bot-message {
  background: #111;

  padding: 14px;

  border-radius: 14px;

  color: white;

  max-width: 85%;
}

.user-message {
  background: #00cc6a;

  color: black;

  padding: 14px;

  border-radius: 14px;

  align-self: flex-end;

  max-width: 85%;

  font-weight: 500;
}

.chat-input-area {
  display: flex;

  padding: 14px;

  gap: 10px;

  border-top: 1px solid #1f1f1f;
}

.chat-input-area input {
  flex: 1;

  background: #111;

  border: 1px solid #1f1f1f;

  border-radius: 12px;

  padding: 12px;

  color: white;
}

.chat-input-area button {
  width: 50px;

  border-radius: 12px;

  border: none;

  background: #00cc6a;

  color: black;

  font-weight: bold;

  cursor: pointer;
}

/* BOTON FLOTANTE */

.chat-toggle {
  position: fixed;

  bottom: 30px;
  right: 30px;

  width: 65px;
  height: 65px;

  border-radius: 50%;

  border: 1px solid #1f1f1f;

  background: #000;

  cursor: pointer;

  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 0 25px rgba(0, 204, 106, 0.25);

  transition: 0.3s;
}

.chat-toggle:hover {
  transform: scale(1.08);

  box-shadow:
    0 0 30px rgba(0, 204, 106, 0.4);
}

/* CHAT */

.chat-widget {
  position: fixed;

  bottom: 110px;
  right: 30px;

  width: 340px;
  height: 500px;

  background: #0b0b0b;

  border: 1px solid #1f1f1f;

  border-radius: 24px;

  overflow: hidden;

  z-index: 9999;

  box-shadow:
    0 0 40px rgba(0,0,0,0.4);

  transition: 0.3s;
}

/* OCULTO */

.hidden-chat {
  opacity: 0;

  visibility: hidden;

  transform: translateY(20px);
}

/* HEADER */

.chat-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 18px;

  background: #111;

  color: white;

  font-weight: 700;

  border-bottom: 1px solid #1f1f1f;
}

.close-chat {
  background: transparent;

  border: none;

  color: white;

  font-size: 18px;

  cursor: pointer;
}

.chat-toggle {
  padding: 0;
  overflow: hidden;
}

.chat-toggle img {
  width: 34px;
  height: 34px;

  object-fit: contain;

  display: block;
}

/* ========================= */
/* MOBILE NAV */
/* ========================= */

.mobile-nav-wrapper {

  position: relative;

  display: none;

  margin-left: auto;

  z-index: 9999;

}

/* BOTÓN */

.mobile-menu-btn {

  width: 54px;

  height: 54px;

  border-radius: 16px;

  border: 1px solid #1f1f1f;

  background: #0b0b0b;

  color: white;

  font-size: 28px;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

}

/* DROPDOWN */

.mobile-menu {

  position: absolute;

  top: 70px;

  right: 0;

  width: 220px;

  background: #0b0b0b;

  border: 1px solid #1f1f1f;

  border-radius: 18px;

  padding: 18px;

  display: none;

  flex-direction: column;

  gap: 18px;

  box-shadow: 0 0 30px rgba(0,0,0,0.45);

  z-index: 9999;

}

/* LINKS */

.mobile-menu a {

  color: white;

  font-size: 16px;

  font-weight: 500;

  transition: 0.3s;

}

.mobile-menu a:hover {

  color: var(--primary);

}

/* ACTIVO */

.mobile-menu.active {

  display: flex;

}

/* MOBILE */

@media (max-width: 768px) {

  .mobile-nav-wrapper {

    display: flex;

    align-items: center;

    margin-left: auto;

  }

  .nav-links {

    display: none;

  }

}

@media (max-width: 768px) {

  .mobile-nav-wrapper {

    margin-left: auto;

    padding-left: 16px;

  }

}