/* ==========================================================================
   NUGAS TECH - STYLESHEET
   ========================================================================== */

/* Base & Typography */
body {
  background-color: #1F003B;
  color: #F3E8FF;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* CTA Buttons */
.cta-neon {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 1rem;
  background: linear-gradient(90deg, #8A2BE2 0%, #00FFFF 100%);
  color: #1F003B;
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-neon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 255, 1), 0 0 40px rgba(138, 43, 226, 1);
}

/* Social Hover */
.social-hover {
  display: inline-flex;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 9999px;
}

.social-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 255, 1), 0 0 40px rgba(138, 43, 226, 1);
}

/* Cards */
.value-card {
  background: #2A004F;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* Logo */
.logo-optimized {
  width: 10rem;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  filter: brightness(1.05) contrast(1.1);
}

/* Header */
header .header-subtitle {
  text-align: justify;
  text-align-last: left;
}

/* Misión Section */
#mision .mision-content {
  text-align: justify;
  text-align-last: left;
}

#mision .mision-content p {
  font-size: 1.25rem;
  color: rgba(243, 232, 255, 0.9);
  margin-bottom: 1rem;
}

#mision .mision-tagline {
  text-align: center;
  font-weight: 600;
  font-style: italic;
  color: #00FFFF;
}

/* Valores Section */
#valores .valores-content {
  text-align: justify;
  text-align-last: left;
}

#valores .valores-content p {
  font-size: 1.25rem;
  color: rgba(243, 232, 255, 0.85);
  margin-bottom: 1rem;
}

/* Servicios Section */
#servicios h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

#servicios .value-card h4 {
  font-size: 1.25rem;
  line-height: 1.25;
}

/* FAQ Accordions */
details {
  background: transparent;
}

details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details summary::-webkit-details-marker {
  display: none;
}

#faq details summary {
  font-size: 1rem !important;
  font-weight: 600;
}

details p {
  margin-bottom: 0;
}

.details-content {
  white-space: pre-wrap;
}

.faq-toggle {
  display: inline-block;
  transition: transform 0.25s ease;
}

details[open] .faq-toggle {
  transform: rotate(45deg);
}

/* Lead Capture Form */
.lead-capture {
  container-type: inline-size;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lead-form__group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.lead-form__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #F3E8FF;
  margin-bottom: 0.5rem;
}

.lead-form__input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background-color: rgba(31, 0, 59, 0.85);
  color: #FFFFFF;
  border: 1px solid rgba(138, 43, 226, 0.5);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.lead-form__input::placeholder {
  color: rgba(243, 232, 255, 0.45);
}

.lead-form__input:focus {
  outline: none;
  border-color: #00FFFF;
  background-color: rgba(42, 0, 79, 0.95);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.35);
}

.lead-form__input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.lead-form__input.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Interest Selection Tabs */
.interest-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.interest-tab {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #F3E8FF;
  background-color: rgba(31, 0, 59, 0.8);
  border: 1px solid rgba(138, 43, 226, 0.5);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.interest-tab:hover {
  border-color: #00FFFF;
  background-color: rgba(42, 0, 79, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.25);
}

.interest-tab.active {
  color: #1F003B;
  background: linear-gradient(90deg, #8A2BE2 0%, #00FFFF 100%);
  border-color: #00FFFF;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.45);
  font-weight: 700;
}

/* Lead Form Channel Buttons */
.channel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  user-select: none;
}

.channel-btn--whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.35);
}

.channel-btn--whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.65);
  background: linear-gradient(135deg, #2cfc7a 0%, #17a999 100%);
}

.channel-btn--email {
  background: linear-gradient(135deg, #8A2BE2 0%, #00FFFF 100%);
  color: #1F003B;
  border-color: #00FFFF;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.35);
}

.channel-btn--email:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.65), 0 0 35px rgba(138, 43, 226, 0.5);
}

.channel-btn:active {
  transform: translateY(0) scale(0.98);
}

.feedback-success {
  display: block !important;
  background: rgba(0, 255, 255, 0.12);
  color: #00FFFF;
  border: 1px solid rgba(0, 255, 255, 0.35);
}

.feedback-error {
  display: block !important;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

@container (max-width: 480px) {
  .lead-form__button {
    width: 100%;
  }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  header h2 {
    font-size: 1.2rem;
  }
  .cta-neon {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  .logo-optimized {
    width: 7rem;
  }
}

@media (max-width: 640px) {
  #mision .mision-content p,
  #valores .valores-content p {
    font-size: 1.125rem;
    text-align: left;
  }
  header .header-subtitle {
    text-align: left;
  }
  #servicios h3,
  #servicios .value-card h4 {
    font-size: 1.125rem;
  }
}