/* style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: white;
  color: #333;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

:root {
  --primary: #6a2d9c;
  --secondary: #e6347b;
  --white: #ffffff;
  --light-gray: #f0f0f0;
}

/* Cookie Bar */
.cookie-bar {
  background: var(--primary);
  color: white;
  padding: 10px;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.cookie-bar button {
  background: white;
  color: var(--primary);
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
}

/* Logo Flotante */
.logo-floating {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 100;
  width: 80px;
  height: auto;
}

.logo-floating img {
  width: 100%;
  height: auto;
  display: block;
  background: none;
  border: none;
}

/* Contenido Principal */
.main-content {
  margin: 0;
  padding: 70px 20px 20px;
  flex: 1;
  width: 100%;
}

/* Carrusel */
.carousel-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  color: white;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Contenido del slide */
.slide-content {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  color: white;
}

.slide-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.slide-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
  align-self: flex-start;
}

.btn-primary:hover {
  background: #5a2080;
}

/* Imagen del carrusel - Cubre todo el fondo */
.slide-image {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.indicator {
  width: 15px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: white;
}

/* Flechas */
.nav-arrows {
  position: absolute;
  bottom: 30px;
  right: 50px;
  display: flex;
  gap: 10px;
}

.arrow-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--primary);
  transition: background 0.3s;
}

.arrow-btn:hover {
  background: white;
}

/* Contrata en Línea */
.online-section {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.online-section h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

.card-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  width: 300px;
  background: var(--light-gray);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.card p {
  font-size: 0.9rem;
  color: #666;
}

/* Sección Promocional */
.promo-section {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 40px 0;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Contenedor promocional con fondo */
.promo-item {
  flex: 1;
  position: relative;
  height: 300px; /* Altura fija para ambos elementos */
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s;
}

.promo-item:hover {
  transform: scale(1.02);
}

/* Contenido sobre el fondo */
.promo-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  padding: 20px;
}

.promo-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #6a2d9c;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.promo-content p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.promo-content img {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.promo-content .btn-primary {
  background: white;
  color: #6a2d9c;
  border: 1px solid #6a2d9c;
  padding: 10px 20px;
  font-size: 1rem;
  transition: background 0.3s;
  margin-top: 10px;
}

.promo-content .btn-primary:hover {
  background: #6a2d9c;
  color: white;
}

/* Fondos específicos */
.world-map-bg {
  background-image: url('img/world-map-bg.png');
  background-size: cover;
  background-position: center;
}

.banking-bg {
  background-image: url('img/banking.jpg');
  background-size: cover;
  background-position: center;
}

/* Footer */
.footer {
  background: var(--primary);
  color: white;
  padding: 20px 0;
  text-align: right;
  font-size: 0.9rem;
  margin-top: auto;
  width: 100%;
  position: relative;
}

.footer-logo {
  float: left;
  margin-right: 20px;
}

.footer-logo img {
  width: 60px;
  height: auto;
}

.footer-text {
  margin: 0;
  font-weight: 600;
}

.footer-text strong {
  display: block;
  font-size: 1.2rem;
}