html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: Helvetica, Arial, sans-serif;
}

/* Section Titles */
h2.display-5,
h2.display-5.fw-bold {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  color: #20284C;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  border-radius: 0 0 2rem 2rem;
}

.hero-section-with-image {
  background-image: url('/images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section-with-image .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.7) 0%, rgba(10, 88, 202, 0.7) 100%);
  z-index: 1;
}

.hero-banner {
  width: 100%;
  display: block;
  padding-top: 90px !important;
  margin-top: 0 !important;
  position: relative;
}

@media (max-width: 991px) {
  .hero-banner {
    padding-top: 85px !important;
  }
}

@media (max-width: 576px) {
  .hero-banner {
    padding-top: 80px !important;
  }
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Banner de Registro */
.registro-banner {
  width: 100%;
  display: block;
  padding-top: 72px !important;
  margin-top: 0 !important;
  position: relative;
}

@media (max-width: 991px) {
  .registro-banner {
    padding-top: 72px !important;
  }
}

@media (max-width: 576px) {
  .registro-banner {
    padding-top: 75px !important;
  }
}

.registro-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-cta-section {
  background-color: #20284C;
  color: white;
}

.hero-logo {
  max-height: 300px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.min-vh-50 {
  min-height: 50vh;
}

.hero-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.hero-info i {
  font-size: 1.5rem;
}

/* Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Location and Contact Cards - No hover effect */
.location-card,
.contact-card {
  transition: none;
}

.location-card:hover,
.contact-card:hover {
  transform: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.expositor-card {
  transition: all 0.3s ease;
}

.expositor-card:hover {
  transform: translateY(-8px);
}

.expositor-logo {
  max-height: 100px;
  object-fit: contain;
}

/* Feature Icons */
.feature-icon {
  color: #20284C;
}

.feature-icon i {
  color: #20284C !important;
}

/* Event Dates */
.date-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
}

.date-item:last-child {
  border-bottom: none;
}

/* Location Info */
.location-info p {
  margin-bottom: 0.5rem;
}

.location-info i {
  margin-right: 0.5rem;
  color: #0d6efd;
}

/* Form Styles */
.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Navbar */
.navbar {
  background-color: #20284C !important; /* Azul oscuro */
}

.navbar.fixed-top {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

body {
  padding-top: 0;
}

main {
  padding-top: 0 !important;
}

/* Header Section - Secciones que empiezan después del menú fijo */
section.text-white[style*="background-color: #20284C"],
.page-header-section {
  margin-top: 0 !important;
  padding-top: 90px !important;
}

@media (max-width: 991px) {
  section.text-white[style*="background-color: #20284C"],
  .page-header-section {
    padding-top: 90px !important;
  }
}

@media (max-width: 768px) {
  section.text-white[style*="background-color: #20284C"],
  .page-header-section {
    padding-top: 85px !important;
  }
}

@media (max-width: 576px) {
  section.text-white[style*="background-color: #20284C"],
  .page-header-section {
    padding-top: 95px !important;
  }
}


.navbar-brand {
  font-size: 1.5rem;
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-brand img {
    max-height: 30px;
  }
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Footer */
footer a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

/* Statistics */
.stat-item {
  padding: 1.5rem 0;
}

.stat-number {
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Category Cards */
.category-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Industries Cards - Grid de tarjetas pequeñas */
.industry-card {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.industry-card:hover {
  background-color: #20284C;
  transform: scale(1.05);
  box-shadow: 0 0.5rem 1rem rgba(32, 40, 76, 0.3) !important;
  border-color: #20284C;
}

.industry-card:hover p {
  color: white;
}

.industry-card p {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #20284C;
  margin: 0;
  transition: color 0.3s ease;
}

/* Tarjeta especial "Y más sectores" */
.industry-card-more {
  border: 2px dashed #20284C;
  background-color: #f8f9fa;
}

.industry-card-more:hover {
  background-color: #20284C;
  border-style: solid;
}

/* Gallery Images */
.gallery-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gallery-image:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Feature Cards */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

/* Statistics Images */
.stat-image {
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-image:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

/* Package Cards */
.package-card {
  transition: transform 0.3s ease;
}

.package-card:hover {
  transform: translateY(-5px);
}

.package-card .card-header {
  border-radius: 0;
}

.package-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.package-card ul li:last-child {
  border-bottom: none;
}

/* Expositor Section Cards */
.expositor-section-card {
  background-color: white;
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
}

.expositor-section-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

.expositor-header {
  background-color: #e9ecef;
  padding: 1.5rem;
}

.expositor-header h4 {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  color: #20284C;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.expositor-content {
  padding: 2rem 1.5rem;
}

.expositor-text {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #20284C;
  margin-bottom: 1.5rem;
}

.expositor-divider {
  border: none;
  border-top: 2px solid #20284C;
  margin: 1.5rem auto;
  width: 80%;
}

.expositor-link {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #20284C;
  text-decoration: underline;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.expositor-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Call to Action Final */
.cta-final-section {
  background-color: #20284C;
  background-image: url('/images/BANNER SECUNDARIO HOME.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-final-section h2.display-5 {
  color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section,
  .hero-section-with-image {
    border-radius: 0;
    min-height: auto;
    padding: 3rem 0;
  }
  
  .display-2 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .hero-logo {
    max-height: 200px;
    margin-top: 2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.5s ease-out;
}

/* Formulario de Registro */
.registro-card {
  font-family: Helvetica, Arial, sans-serif;
}

.registro-header {
  background-color: #20284C !important;
  font-family: Helvetica, Arial, sans-serif;
}

.registro-header h2 {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
}

.registro-body {
  background-color: #EDECF0;
  font-family: Helvetica, Arial, sans-serif;
}

.registro-body .form-label {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: #20284C;
}

.registro-body .form-control,
.registro-body .form-select {
  font-family: Helvetica, Arial, sans-serif;
  border-color: #dee2e6;
}

.registro-body .form-control:focus,
.registro-body .form-select:focus {
  border-color: #20284C;
  box-shadow: 0 0 0 0.25rem rgba(32, 40, 76, 0.25);
}

/* Acordeón personalizado */
.accordion-button {
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: #20284C !important;
  color: white !important;
}

.accordion-button.collapsed {
  background-color: #20284C !important;
  color: white !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-item {
  border: none !important;
}

/* Imágenes de "Por qué asistir" sin efecto hover */
.porque-asistir-image-wrapper {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}

.porque-asistir-image-wrapper img {
  display: block;
}

.registro-submit-btn {
  background-color: #20284C;
  border-color: #20284C;
  color: white;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 500;
}

.registro-submit-btn:hover {
  background-color: #1a1f3d;
  border-color: #1a1f3d;
  color: white;
}

.registro-cancel-btn {
  border-color: #20284C;
  color: #20284C;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 500;
}

.registro-cancel-btn:hover {
  background-color: #20284C;
  border-color: #20284C;
  color: white;
}

.registro-body .alert {
  font-family: Helvetica, Arial, sans-serif;
}

/* Botón flotante WhatsApp (esquina inferior derecha, siempre visible) */
/* Sin hover: fondo azul, líneas blancas */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #20284C;
  color: white;
  border: 2px solid #20284C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float,
.whatsapp-float:link,
.whatsapp-float:visited {
  background-color: #20284C;
  color: white;
  border-color: #20284C;
}

.whatsapp-float:hover {
  background-color: white;
  color: #20284C;
  border-color: #20284C;
  box-shadow: 0 4px 12px rgba(32, 40, 76, 0.3);
}
