/* Pampasat custom styles */
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--brand-dark);
}

/* Color palette */
:root {
  --brand-dark: #050f24;
  --brand-blue: #0670b3;
  --accent-orange: #f69f18;
  --primary-color: var(--brand-blue);
  --secondary-color: var(--brand-dark);
  --light-color: #f8f9fa;
  --whatsapp-green: #25D366;
}

.navbar-brand {
  letter-spacing: 0.5px;
}

/* Brand logo styling */
.navbar-brand img.logo {
  height: 32px;
  width: auto;
}

/* Hide the brand in navbar until page is scrolled. The visibility is controlled via the show-brand class added by JavaScript. */
.navbar-brand {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.navbar-brand.show-brand {
  opacity: 1;
  visibility: visible;
}

/* Icon-only logo: displays only the symbol portion of the SVG. The width limits the visible area
   and overflow hides the rest of the text. */
.logo-icon {
  /* Use the white PNG logo for the standalone icon */
  background-image: url('../images/logo_unico.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  width: 40px;
  height: 40px;
  display: inline-block;
  overflow: hidden;
}

/* Animación de latido para botón CTA */
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.05);
  }
  20%, 40% {
    transform: scale(1);
  }
}

.btn-heartbeat {
  animation: heartbeat 2s ease-in-out infinite;
}

.btn-heartbeat:hover {
  animation: none;
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

/* Gradiente para sección CTA */
.cta-gradient {
  background: linear-gradient(180deg, rgba(5,15,36,0.94) 0%, rgba(6,112,179,0.88) 100%) !important;
}

.btn-primary { 
  background-color:#055a8f; 
  border-color:#055a8f; 
  color:#fff 
}

/* Hover state for primary button */
.btn-primary:hover { 
  background-color:#044a76; 
  border-color:#044a76 
}

/* Hero section */
.hero {
  position: relative;
  min-height: 85vh;
  background-image: url('../images/hero3.png');
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5,15,36,0.62), rgba(5,15,36,0.62)),
    linear-gradient(rgba(6,112,179,0.22), rgba(6,112,179,0.22));
}
.hero .container {
  position: relative;
  z-index: 1;
}

/* Hero branding sizes */
.hero-logo {
  width: 120px;
  height: auto;
}
.hero-brand-text {
  font-size: 3.5rem;
}
@media (max-width: 576px) {
  .hero-logo {
    width: 80px;
  }
  .hero-brand-text {
    font-size: 2.5rem;
  }
}

/* Feature cards */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}
.feature-card i {
  color: var(--primary-color);
}
.feature-card h5,
.feature-card h6 {
  margin-bottom: 0.5rem;
}

/* Table styling */
table {
  background: #fff;
}
thead th {
  background-color: var(--secondary-color);
  color: #fff;
}

/* Contact section */
#contacto {
  background: linear-gradient(180deg, rgba(5,15,36,0.94) 0%, rgba(6,112,179,0.88) 100%);
  color: #fff;
}
#contacto .form-control {
  border-radius: 0;
  padding: 0.75rem;
}
#contacto .form-select {
  border-radius: 0;
  padding: 0.75rem;
}
#contacto .btn {
  border-radius: 0;
}

/* Contact form submit button styling */
#contacto .btn-submit {
  background-color: #fff;
  color: var(--primary-color);
  border: 2px solid #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}
#contacto .btn-submit:hover {
  background-color: #f7f7f7;
}

/* CTA after características section */
.bg-primary.text-white h3 {
  color: #fff;
}
.bg-primary.text-white p {
  color: #f8f9fa;
}
.bg-primary.text-white .btn-light {
  border-color: #fff;
  color: var(--primary-color);
}
.bg-primary.text-white .btn-light:hover {
  background-color: #fff;
  color: var(--secondary-color);
}

/* Accordion styles for FAQ */
.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: rgba(243, 146, 0, 0.1);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}
.accordion-button {
  font-weight: 600;
}
.accordion-item {
  border: none;
  border-bottom: 1px solid #dee2e6;
}

/* Utility class for list items with icons aligned to top */
.check-item {
  display: flex;
  align-items: flex-start;
}
.check-item i {
  margin-top: 0.15rem;
}

/* Contact section branding */
.contact-logo {
  width: 72px;
  height: auto;
}
.contact-brand-text {
  font-size: 2.2rem;
  color: #fff;
}

/* Larger branding at bottom of contact section */
.contact-logo-large {
  width: 90px;
  height: auto;
}
.contact-brand-text-large {
  font-size: 2.5rem;
  color: #fff;
}

/* Highlight invalid form fields */
.form-control:invalid,
.form-select:invalid {
  border-color: #dc3545;
  box-shadow: none;
}

/* Footer */
footer {
  font-size: 0.875rem;
}

/* Adjust scroll position so sections are fully visible below the fixed navbar */
#contacto {
  scroll-margin-top: 100px;
}

/* Form step styles */
.form-step {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* WhatsApp button in contact section */
#contacto .btn-success {
  background-color: var(--whatsapp-green);
  border-color: var(--whatsapp-green);
  font-weight: 600;
  padding: 0.75rem 2rem;
}

#contacto .btn-success:hover {
  background-color: #20bd5a;
  border-color: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Contact section WhatsApp box */
#contacto .bg-opacity-10 {
  background-color: rgba(255, 255, 255, 0.1);
}