/*
 * Cloud VPS Page — New Vesperr v5 Design Layer
 * Applies new component styles on top of Bootstrap 4 + mayavirtual/style.css
 */

/* ---- CSS Variables ---- */
:root {
  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #222222;
  --accent-color: #3498db;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

/* ---- Background Presets ---- */
.light-background {
  background-color: #f4fafd;
}

.dark-background {
  background-color: #0d1b2a;
}

.dark-background,
.dark-background h1,
.dark-background h2,
.dark-background h3,
.dark-background h4,
.dark-background h5,
.dark-background h6,
.dark-background p {
  color: #ffffff;
}

/* ---- Section Spacing ---- */
.cloud-section {
  padding: 80px 0;
}

/* ---- Section Titles — override old uppercase style ---- */
.cloud-section .section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.cloud-section .section-title h2 {
  font-size: 32px;
  font-weight: 700;
  position: relative;
  text-transform: none;
  color: var(--heading-color);
}

.cloud-section .section-title h2::before,
.cloud-section .section-title h2::after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--accent-color);
  display: inline-block;
}

.cloud-section .section-title h2::before { margin: 0 15px 10px 0; }
.cloud-section .section-title h2::after  { margin: 0 0 10px 15px; }

.cloud-section .section-title p {
  margin-bottom: 0;
  color: #888;
  font-size: 16px;
}

.dark-background .section-title h2 { color: #ffffff; }
.dark-background .section-title h2::before,
.dark-background .section-title h2::after { background: rgba(255,255,255,0.45); }
.dark-background .section-title p { color: rgba(255,255,255,0.65); }

/* ---- About / Intro ---- */
.about .content h3 {
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.about .content p {
  margin-bottom: 20px;
  color: var(--default-color);
  line-height: 1.7;
}

.about .content .about-btn {
  padding: 8px 30px 9px 30px;
  color: var(--accent-color);
  border-radius: 50px;
  transition: 0.3s;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--accent-color);
  text-decoration: none;
}

.about .content .about-btn:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  text-decoration: none;
}

.about .icon-box {
  padding: 24px;
  border: 1px solid rgba(52,152,219,0.12);
  border-radius: 6px;
  transition: 0.3s;
  height: 100%;
}

.about .icon-box i {
  font-size: 38px;
  color: var(--accent-color);
  margin-bottom: 12px;
  display: block;
}

.about .icon-box h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--heading-color);
}

.about .icon-box p {
  font-size: 14px;
  color: #777;
  margin-bottom: 0;
  line-height: 1.6;
}

.about .icon-box:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 20px rgba(52,152,219,0.12);
  transform: translateY(-3px);
}

.about .icon-box:hover h4 { color: var(--accent-color); }

/* ---- Services — VPS Tier Cards ---- */
.services .service-item {
  background-color: var(--surface-color);
  box-shadow: 0 0 30px rgba(0,0,0,0.08);
  padding: 50px 30px 40px;
  transition: all 0.4s ease-in-out;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  border-radius: 6px;
}

.services .service-item::before {
  content: "";
  position: absolute;
  background: rgba(52,152,219,0.04);
  right: -80px; top: -80px;
  width: 150px; height: 150px;
  border-radius: 50%;
  transition: all 0.4s;
  z-index: -1;
}

.services .service-item::after {
  content: "";
  position: absolute;
  background: rgba(52,152,219,0.03);
  right: -140px; top: -140px;
  width: 250px; height: 250px;
  border-radius: 50%;
  transition: all 0.4s;
  z-index: -1;
}

.services .service-item .svc-icon {
  background: var(--accent-color);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  transition: 0.3s;
  flex-shrink: 0;
}

.services .service-item h4 {
  font-weight: 700;
  margin: 18px 0 6px;
  font-size: 22px;
  color: var(--heading-color);
  transition: 0.3s;
}

.services .service-item .svc-tagline {
  font-size: 14px;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: 0.3s;
}

.services .service-item p {
  font-size: 14px;
  line-height: 1.65;
  color: #666;
  margin-bottom: 0;
  transition: 0.3s;
}

.services .service-item .svc-specs {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  transition: border-color 0.3s;
}

.services .service-item .svc-specs span {
  display: inline-block;
  font-size: 12px;
  color: #888;
  background: #f4f8fc;
  border-radius: 20px;
  padding: 3px 10px;
  margin: 3px 3px 3px 0;
  transition: 0.3s;
}

/* Hover: flood accent color */
.services .service-item:hover::before,
.services .service-item:hover::after {
  background: var(--accent-color);
  right: 0; top: 0;
  width: 100%; height: 100%;
  border-radius: 0;
}

.services .service-item:hover h4,
.services .service-item:hover p { color: #ffffff; }

.services .service-item:hover .svc-tagline { color: rgba(255,255,255,0.8); }

.services .service-item:hover .svc-icon {
  background: #ffffff;
  color: var(--accent-color);
}

.services .service-item:hover .svc-specs { border-top-color: rgba(255,255,255,0.25); }

.services .service-item:hover .svc-specs span {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
}

/* ---- Features Grid ---- */
.features .features-item {
  background: var(--surface-color);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border: 1px solid rgba(68,68,68,0.1);
  border-radius: 6px;
  transition: 0.3s;
  height: 100%;
}

.features .features-item i {
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
}

.features .features-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--heading-color);
  line-height: 1.3;
}

.features .features-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 3px 16px rgba(52,152,219,0.1);
  transform: translateY(-2px);
}

/* ---- Pricing — new pricing-item (replaces old .box) ---- */
.pricing .pricing-item {
  background: var(--surface-color);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  border-top: 4px solid #e0e0e0;
  padding: 50px 36px 40px;
  border-radius: 6px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateY(-4px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing .pricing-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.13), 0 4px 12px rgba(0,0,0,0.07);
}

.pricing .pricing-item.featured {
  border-top-color: var(--accent-color);
}

.pricing .pricing-item h3 {
  font-weight: 700;
  font-size: 22px;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.pricing .pricing-item .price-tagline {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.pricing .pricing-item .price-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 16px;
}

.planes-slide .pricing-item .price-desc {
  min-height: calc(13px * 1.6 * 5);
}

.pricing .pricing-item .price-usd {
  font-size: 14px;
  color: #999;
  margin-bottom: 4px;
}

.pricing .pricing-item h4 {
  color: var(--accent-color);
  font-size: 46px;
  font-weight: 400;
  margin-bottom: 0;
  line-height: 1;
}

.pricing .pricing-item h4 sup {
  font-size: 26px;
  vertical-align: baseline;
  position: relative;
  top: -10px;
  display: inline-block;
}

.pricing .pricing-item h4 span {
  font-size: 17px;
  color: #999;
}

.pricing .pricing-item ul {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  color: #666;
}

.pricing .pricing-item ul li {
  padding: 9px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.pricing .pricing-item ul li:last-child { border-bottom: none; }

.pricing .pricing-item ul li i {
  color: #059652;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.pricing .buy-btn {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 36px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: 0.3s;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  text-decoration: none;
}

.pricing .buy-btn:hover {
  background: var(--accent-color);
  color: #ffffff;
  text-decoration: none;
}

.pricing .pricing-item.featured .buy-btn {
  background: var(--accent-color);
  color: #ffffff;
}

.pricing .pricing-item.featured .buy-btn:hover {
  background: #2980b9;
  border-color: #2980b9;
}

/* ---- Planes Slider ---- */
.planes-slider-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.planes-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 12px 4px 20px;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.planes-track::-webkit-scrollbar { display: none; }

.planes-slide {
  flex: 0 0 calc(33.333% - 40px);
  min-width: 260px;
  scroll-snap-align: start;
  display: flex;
}

.planes-slide .pricing-item {
  width: 100%;
}

@media (max-width: 991px) {
  .planes-slide { flex: 0 0 calc(50% - 36px); }
}

@media (max-width: 575px) {
  .planes-slide { flex: 0 0 calc(82%); }
}

.planes-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  background: #fff;
  color: var(--accent-color);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  line-height: 1;
  padding: 0;
}

.planes-arrow:hover:not(:disabled) {
  background: var(--accent-color);
  color: #fff;
}

.planes-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ---- Datacenter Map Section ---- */
.section-datacenters {
  padding: 70px 0 60px;
}

.section-datacenters .dc-map-wrap {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.section-datacenters .dc-map-wrap img {
  width: 100%;
  display: block;
}

/* ---- Stats ---- */
.stats .stats-item {
  padding: 20px;
  text-align: center;
}

.stats .stats-item i {
  font-size: 42px;
  color: var(--accent-color);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.stats .stats-item .stat-number {
  display: block;
  font-size: 38px;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1;
  margin-bottom: 6px;
}

.stats .stats-item p {
  color: #888;
  font-size: 15px;
  margin: 0;
  font-weight: 500;
}

/* ---- Monitoring / About Row ---- */
.monitoring-section .monitor-text h3 {
  font-size: 30px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.monitoring-section .monitor-text h4 {
  font-size: 18px;
  color: #555;
  margin-bottom: 18px;
}

.monitoring-section .monitor-text p {
  line-height: 1.75;
  color: var(--default-color);
  margin-bottom: 14px;
}

.monitoring-section .monitor-features {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

.monitoring-section .monitor-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--default-color);
  border-bottom: 1px solid #f0f0f0;
}

.monitoring-section .monitor-features li:last-child { border: none; }

.monitoring-section .monitor-features li i {
  color: var(--accent-color);
  font-size: 18px;
}

/* ---- Row vertical gap for Bootstrap 4 ---- */
.row-vgap > [class*="col-"] {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* ---- Cloud Hero Override ---- */
#cloud-hero {
  background: url("/assets/img/itcc2-min.png") top center / cover no-repeat;
  background-attachment: fixed;
  min-height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cloud-hero::before {
  content: "";
  background: rgba(5, 18, 35, 0.62);
  position: absolute;
  inset: 0;
}

#cloud-hero .hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  color: #fff;
}

#cloud-hero h1 {
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

#cloud-hero h3 {
  font-size: 22px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  font-weight: 400;
}

#cloud-hero .btn-hero {
  display: inline-block;
  padding: 12px 40px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: 0.3s;
}

#cloud-hero .btn-hero:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  #cloud-hero h1 { font-size: 30px; }
  #cloud-hero h3 { font-size: 17px; }
}

/* ---- Consola de Gestión — Intro ---- */
.console-intro {
  position: relative;
  background-color: #0c1222;
  overflow: hidden;
}

.console-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.console-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: perspective(1000px) rotateY(12deg) scale(0.85) translateX(8%);
  transform-origin: center center;
  animation: consoleBgFade 16s infinite;
}

.console-bg-slide:nth-child(1) { animation-delay: 0s; }
.console-bg-slide:nth-child(2) { animation-delay: 4s; }
.console-bg-slide:nth-child(3) { animation-delay: 8s; }
.console-bg-slide:nth-child(4) { animation-delay: 12s; }

@keyframes consoleBgFade {
  0%        { opacity: 0; }
  6%        { opacity: 1; }
  25%       { opacity: 1; }
  31%       { opacity: 0; }
  100%      { opacity: 0; }
}

.console-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 30, 0.55);
  z-index: 0;
}

.console-intro .container {
  position: relative;
  z-index: 1;
}

.console-text-panel {
  background: rgba(5, 15, 30, 0.75);
  border-left: 3px solid #3498db;
  border-radius: 10px;
  padding: 40px 44px;
}

.console-intro .console-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #3498db;
  color: #ffffff !important;
  border-radius: 50px;
  padding: 6px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(52, 152, 219, 0.4);
}

.console-intro .console-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.85;
}

.console-intro h2 {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.25;
  margin-bottom: 18px;
}

.console-intro h2 strong {
  color: #5db8f0 !important;
}

.console-intro .console-lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.75;
  margin-bottom: 24px;
}

.console-intro .console-highlights {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.console-intro .console-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.console-intro .console-highlights li:last-child { border: none; }

.console-intro .console-highlights li i {
  color: #4cd98a !important;
  font-size: 19px;
  flex-shrink: 0;
}

/* ---- OS Carousel (features section) ---- */
.os-carousel-wrap {
  border-top: 1px solid #e8e8e8;
  padding-top: 36px;
}

.os-carousel-label {
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #aaa;
  margin-bottom: 28px;
  font-weight: 600;
}

.os-marquee {
  overflow: hidden;
  position: relative;
}

.os-marquee::before,
.os-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.os-marquee::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.os-marquee::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.os-marquee-track {
  display: flex;
  width: max-content;
  animation: os-marquee-scroll 30s linear infinite;
}


@keyframes os-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.os-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  gap: 10px;
  transition: transform 0.2s;
}

.os-item:hover {
  transform: translateY(-4px);
}

.os-item img {
  height: 44px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  transition: transform 0.3s;
}

.os-item:hover img {
  transform: scale(1.1);
}

.os-item span {
  font-size: 11px;
  color: #999;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ====== Tarjeta de oferta plan XS (hover) ====== */
.pricing .pricing-item.has-offer {
  position: relative;
}

.vps-offer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 28px;
  border-radius: 6px;
  background: linear-gradient(150deg, #2c7fb8 0%, #3498db 55%, #1f6396 100%);
  color: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.94);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  pointer-events: none;
}

.pricing .pricing-item.has-offer.offer-visible .vps-offer {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.vps-offer-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 213, 79, 0.55);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 22px;
  font-weight: 700;
  line-height: 1;
}

.vps-offer-counter .bi {
  color: #ffd54f;
  font-size: 13px;
  align-self: center;
}

.vps-offer-counter-num {
  color: #ffd54f;
  font-size: 18px;
  font-weight: 900;
}

.vps-offer-counter-total {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.85;
}

.vps-offer-counter-label {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.9;
  align-self: center;
  margin-left: 2px;
}

.vps-offer-badge {
  display: inline-block;
  background: #ffd54f;
  color: #6b4e00;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.vps-offer-title {
  font-weight: 800;
  line-height: 1;
  margin: 0 0 4px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vps-offer-mes {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff !important;
  opacity: 1;
}

.vps-offer-title strong {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffd54f;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.vps-offer-sub {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 18px;
}

.vps-offer-points {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
}

.vps-offer-points li {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.vps-offer-points li i {
  color: #8be000;
  font-size: 17px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.vps-offer-contratar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.vps-offer-contratar-txt {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.vps-offer-contratar-txt::after {
  content: " \2192";
  font-weight: 700;
}

.vps-offer-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.vps-offer-close:hover {
  background: #fff;
  color: #1f6396;
  transform: rotate(90deg);
}

.vps-offer-btn {
  display: inline-block;
  background: #fff;
  color: #1f6396;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vps-offer-btn:hover {
  color: #1f6396;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
