/* ============================================================
   styles/index.css — Overrides y estilos custom sobre Bootstrap
   ============================================================ */

:root {
  --rojo:          #c8102e;
  --rojo-oscuro:   #9b0d22;
  --rojo-suave:    #fdf0f2;
  --rojo-borde:    #f5c0c8;
  --azul-osas:     #1a56db;
  --azul-suave:    #eff6ff;
  --azul-borde:    #bfdbfe;
  --verde:         #047857;
  --verde-suave:   #ecfdf5;
  --verde-borde:   #a7f3d0;
  --gris-claro:    #f4f6f9;
  --gris-medio:    #e8ecf0;
  --gris-texto:    #6b7280;
  --gris-borde:    #d1d5db;
  --texto:         #111827;
  --blanco:      #fff;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

/* ── NAVBAR ── */
.navbar-osas {
  background: linear-gradient(135deg, #c8102e 0%, #9b0d22 100%) !important;
  box-shadow: 0 3px 14px rgba(0,0,0,.28);
  min-height: 65px;
  height: auto;
  flex-wrap: nowrap !important;
  gap: 10px;
}
@media (max-width: 400px) {
  .navbar-osas { padding-left: 10px !important; padding-right: 10px !important; }
  .navbar-osas .btn { font-size: 11px; padding: 6px 10px; }
}

/* Logo en navbar del index: redondeado */
.navbar-osas img {
  border-radius: 10px;
  background: #fff;
  padding: 4px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* Links de la barra */
.nav-item {
  position: relative;
  color: var(--blanco);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

/* Efecto de subrayado elegante */
.nav-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--blanco);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-item:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.nav-item:hover::after {
  width: 100%;
}

.btn-login {
  background: var(--blanco);
  color: var(--rojo);
  border: 2px solid var(--blanco);
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  padding: 6px 18px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-login:hover {
  background: var(--rojo-oscuro);
  color: var(--blanco);
  border-color: var(--rojo-oscuro);
}

.btn-register {
  background: transparent;
  color: var(--blanco);
  border: 2px solid var(--blanco);
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  padding: 6px 18px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-register:hover {
  background: var(--blanco);
  color: var(--rojo);
}

/* ── HEADER / LOGO ── */
.logo-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0 16px;
  background: var(--blanco);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-bottom: 1px solid #f0f0f0;
}

.logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  border-radius: 14px;
  padding: 6px 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.09), 0 0 0 1px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.logo-img:hover {
  box-shadow: 0 4px 20px rgba(200,16,46,.15), 0 0 0 1px rgba(200,16,46,.1);
}

/* ── CAROUSEL (FULL WIDTH) ── */
.carousel-wrapper {
  position: relative;
  width: 100%; 
  max-width: 100%; 
  margin: 0; 
  overflow: hidden;
  background: #111;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .slide { min-width: 33.333%; }
}

.slide img {
  width: 100%;
  height: 36vh;
  min-height: 200px;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.70); 
  transition: filter 0.3s;
}

.slide:hover img {
  filter: brightness(0.85);
}

.slide-label {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(204, 0, 0, 0.9);
  color: var(--blanco);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 13px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.slide-logo {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px; 
  padding: 5px 9px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.slide-logo img {
  height: 22px;
  width: auto;
  object-fit: contain;
  filter: none !important;
}

/* ── BOTÓN HERO ANIMADO ── */
.carousel-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  text-align: center;
  pointer-events: none; 
}

.btn-hero {
  pointer-events: auto; 
  background: var(--rojo);
  color: var(--blanco);
  padding: 14px 32px;
  border-radius: 30px; 
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(204, 0, 0, 0.5);
  animation: latido 2s infinite; 
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background: var(--blanco);
  color: var(--rojo);
  animation: none; 
  transform: scale(1.05);
}

@keyframes latido {
  0%   { transform: scale(1); box-shadow: 0 4px 15px rgba(204, 0, 0, 0.5); }
  50%  { transform: scale(1.05); box-shadow: 0 6px 25px rgba(204, 0, 0, 0.7); }
  100% { transform: scale(1); box-shadow: 0 4px 15px rgba(204, 0, 0, 0.5); }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: var(--blanco);
  border: none;
  font-size: 24px;
  width: 45px;
  height: 70px;
  cursor: pointer;
  z-index: 20;
  border-radius: 0; 
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: var(--rojo); }
.carousel-btn.prev  { left: 0; }
.carousel-btn.next  { right: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 15px 0 25px; 
  background: var(--blanco); 
}

.dot {
  width: 10px; height: 10px; 
  border-radius: 0; 
  background: var(--gris-borde);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.dot.active { background: var(--rojo); }

/* ── PLANES (LEVE REDONDEO) ── */
.planes-section {
  padding: 60px 20px 80px; 
  background: #fdfdfd; 
}

.planes-section h2 {
  font-size: 32px; 
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--texto);
  margin-bottom: 5px;
}

.planes-subtitulo {
  color: #555;
  font-size: 1.15rem;
  margin-bottom: 3rem;
}

.planes-mensaje {
  color: #999;
  font-size: 14px;
  font-style: italic;
}

.planes-grid {
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .planes-grid {
    flex-direction: row; 
    flex-wrap: nowrap; 
    justify-content: center;
    align-items: stretch; 
    width: 100%;
    max-width: 1140px; 
    margin-left: auto;
    margin-right: auto;
  }
}

.plan-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px; 
  display: flex;
}

@media (min-width: 992px) {
  .plan-card-wrapper {
    max-width: none; 
    flex: 1 1 0; 
  }
}

.plan-card-new {
  background: var(--blanco);
  border: 1px solid var(--gris-borde); 
  border-radius: 12px; 
  padding: 2.5rem 1.8rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03); 
}

.plan-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(200,16,46,.1); 
  border-color: var(--rojo);
}

.plan-destacado .plan-card-new {
  border-color: var(--rojo);
  border-width: 2px;
  box-shadow: 0 10px 30px rgba(204, 0, 0, 0.12);
  transform: scale(1.02); 
  z-index: 2;
}

.plan-destacado .plan-card-new:hover {
  transform: scale(1.02) translateY(-5px);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rojo);
  color: var(--blanco);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 12px; 
  z-index: 3;
  letter-spacing: 1px;
}

.plan-card-header {
  border-bottom: 2px dashed #f0f0f0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.8rem;
}

.plan-nombre-new {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.plan-precio-new {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem; 
  font-weight: 900;
  color: var(--rojo);
  line-height: 1;
}

.plan-precio-signo {
  font-size: 1.4rem;
  vertical-align: super;
  color: #888;
}

.plan-precio-per {
  font-size: 0.9rem;
  color: #888;
  font-weight: 600;
}

.plan-beneficios-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem; 
  margin-bottom: 2.5rem;
  text-align: left;
}

.plan-beneficio-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-beneficio-check {
  color: #2e7d32;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.2;
}

.plan-beneficio-nombre {
  font-size: 0.95rem;
  font-weight: 700;
  color: #444;
}

.plan-sin-beneficios {
  color: #999;
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  margin: 1rem 0;
}

.btn-contratar-new {
  display: block;
  width: 100%;
  padding: 14px 0; 
  border: 2px solid var(--rojo);
  background: transparent;
  color: var(--rojo);
  font-weight: 700;
  border-radius: 6px; 
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.btn-contratar-new:hover {
  background: var(--rojo);
  color: var(--blanco);
}

.btn-contratar-destacado {
  background: var(--rojo);
  color: var(--blanco);
}

.btn-contratar-destacado:hover {
  background: var(--rojo-oscuro);
  border-color: var(--rojo-oscuro);
}

/* ── CONTACTO ── */
.contacto-section {
  padding: 60px 20px 80px;
  background: #fff;
  border-top: 1px solid var(--gris-borde);
}

.contacto-section h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--texto);
  margin-bottom: 10px;
}

.contacto-form .form-control {
  border: 1.5px solid var(--gris-borde);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.contacto-form .form-control:focus {
  border-color: var(--rojo);
  box-shadow: 0 0 0 0.2rem rgba(204,0,0,0.1);
  outline: none;
}

.btn-enviar-contacto {
  background: var(--texto); 
  color: var(--blanco);
  border: none;
  padding: 14px;
  width: 100%;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s ease;
  cursor: pointer;
}

.btn-enviar-contacto:hover {
  background: #000;
}

/* ── FOOTER ── */
.footer-osas {
  background: linear-gradient(135deg, #c8102e 0%, #9b0d22 100%);
  color: var(--blanco);
  text-align: center;
  padding: 25px 16px; 
  font-size: 13px;
  letter-spacing: 0.3px;
  line-height: 1.7;
}

/* ── BOTÓN FLOTANTE "SUBIR" ── */
.btn-flotante-subir {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--rojo);
  color: var(--blanco);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(204, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-flotante-subir.mostrar {
  opacity: 1;
  visibility: visible;
}

.btn-flotante-subir:hover {
  background-color: var(--rojo-oscuro);
  transform: translateY(-5px); /* Se levanta un poquito al pasar el mouse */
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.6);
}

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 768px) {
  .nav-menu-links {
    display: none !important; 
  }
}

@media (max-width: 480px) {
  .slide img { height: 30vh; min-height: 160px; }
  .logo-img  { height: 60px; }

  .btn-hero { font-size: 0.95rem; padding: 12px 24px; }

  .planes-section h2, .contacto-section h2 {
    font-size: 24px;
    letter-spacing: 1px;
  }
  .planes-subtitulo {
    font-size: 1rem;
  }

  .btn-login,
  .btn-register {
    font-size: 11px;
    padding: 5px 10px;
  }

  .footer-osas { font-size: 11px; }

  /* Botón subir un poco más chico en celus */
  .btn-flotante-subir {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}