/* Roma Plugin Central - Base Styles */
:root {
  --roma-primary: #3b82f6;
  --roma-secondary: #8b5cf6;
  --roma-accent: #f43f5e;
  --roma-text-dark: #1f2937;
  --roma-text-light: #f9fafb;
  --roma-bg-light: #ffffff;
  --roma-bg-dark: #111827;
  --roma-glass-bg: rgba(255, 255, 255, 0.1);
  --roma-glass-border: rgba(255, 255, 255, 0.2);
  --roma-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --roma-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --roma-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --roma-radius: 12px;
  --roma-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Hero Slider Styles */
.roma-hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--roma-bg-dark); /* fallback */
}

.roma-hero-slide-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 40px;
  box-sizing: border-box;
}

.roma-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.roma-hero-title {
  margin-bottom: 1rem;
  line-height: 1.2;
  color: white; /* default */
}

.roma-hero-subtitle {
  margin-bottom: 2rem;
  font-size: 1.25rem;
  opacity: 0.9;
  color: white; /* default */
}

.roma-hero-button {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  transition: var(--roma-transition);
  background: var(--roma-primary);
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
}

.roma-hero-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--roma-shadow-lg);
  color: white;
}

/* Swiper overrides */
.roma-hero-slider .swiper-button-next,
.roma-hero-slider .swiper-button-prev {
  color: white;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: var(--roma-transition);
}
.roma-hero-slider .swiper-button-next:hover,
.roma-hero-slider .swiper-button-prev:hover {
  background: rgba(255,255,255,0.3);
}

.roma-hero-slider .swiper-button-next::after,
.roma-hero-slider .swiper-button-prev::after {
  font-size: 20px;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translate3d(0, -30px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale3d(0.9, 0.9, 0.9); }
  to { opacity: 1; transform: scale3d(1, 1, 1); }
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fadeInDown {
  animation-name: fadeInDown;
}

.fadeInUp {
  animation-name: fadeInUp;
}

.zoomIn {
  animation-name: zoomIn;
}

/* Delay for staggered effect */
.swiper-slide-active .animate-title { animation-delay: 0.1s; }
.swiper-slide-active .animate-subtitle { animation-delay: 0.3s; }
.swiper-slide-active .animate-button { animation-delay: 0.5s; }

/* Hide initially before animation triggers */
.swiper-slide:not(.swiper-slide-active) .animate-title,
.swiper-slide:not(.swiper-slide-active) .animate-subtitle,
.swiper-slide:not(.swiper-slide-active) .animate-button {
  opacity: 0;
}

/* Info Cards Styles */
.roma-info-cards-container {
  display: grid;
  gap: 20px;
}

.roma-info-card {
  background-color: var(--roma-bg-light);
  border-radius: var(--roma-radius);
  padding: 24px;
  box-shadow: var(--roma-shadow-sm);
  transition: var(--roma-transition);
  display: flex;
  flex-direction: column;
}

.roma-info-card:hover {
  box-shadow: var(--roma-shadow-md);
  transform: translateY(-2px);
}

.roma-info-card.style-left-border {
  border-left-style: solid;
  border-left-width: 4px; /* overridden by elementor */
}

.roma-info-card.style-top-border {
  border-top-style: solid;
  border-top-width: 4px; /* overridden by elementor */
  align-items: center;
  text-align: center;
}

.roma-card-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #f3f4f6; /* default icon bg */
  margin-bottom: 16px;
  flex-shrink: 0;
}

.roma-card-icon-wrap i {
  font-size: 24px;
  color: var(--roma-text-dark);
}

.roma-card-icon-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: inherit;
}

.roma-info-card.style-left-border .roma-card-icon-wrap {
  margin-bottom: 0;
  margin-right: 16px;
}

.roma-info-card.style-left-border .roma-card-content {
  display: flex;
  flex-direction: column;
}

.roma-info-card.style-left-border {
  flex-direction: row;
  align-items: flex-start;
}

.roma-card-title {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--roma-text-dark);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roma-card-desc {
  color: #4b5563; /* slightly lighter text */
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Info Cards - Responsive Improvements */
@media (max-width: 767px) {
  .roma-info-card.style-left-border {
    flex-direction: column;
  }
  .roma-info-card.style-left-border .roma-card-icon-wrap {
    margin-right: 0;
    margin-bottom: 12px;
  }
}

/* ==========================================
   Corporate Logos Widget
   ========================================== */
.roma-logos-grid {
  display: grid;
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.roma-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.roma-logo-item:hover {
  transform: translateY(-3px);
}

.roma-logo-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.roma-logo-item img {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
}

.roma-logo-item:hover img {
  opacity: 1;
}

/* Grayscale style */
.roma-logos-grid.style-grayscale .roma-logo-item img {
  filter: grayscale(100%);
}

.roma-logos-grid.style-grayscale .roma-logo-item:hover img {
  filter: grayscale(0%);
}

@media (max-width: 767px) {
  .roma-logos-grid {
    gap: 16px;
  }
  .roma-logo-item {
    padding: 12px;
  }
}

/* ==========================================
   Team Cards Widget
   ========================================== */
.roma-team-grid {
  display: grid;
  gap: 24px;
}

.roma-team-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.roma-team-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  transform: translateY(-4px);
}

/* Header */
.roma-team-card-header {
  background-color: #a90b11;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.roma-team-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.roma-team-initials img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.roma-team-member-name {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.roma-team-member-position {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

/* Body */
.roma-team-card-body {
  background-color: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.roma-team-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 10px 0;
  color: #a90b11;
}

.roma-team-member-desc {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.roma-team-member-quote {
  color: #6b7280;
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .roma-team-grid {
    gap: 16px;
  }
  .roma-team-card-header {
    padding: 20px;
  }
  .roma-team-card-body {
    padding: 20px;
  }
  .roma-team-initials {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}

/* ==========================================
   Event Cards Widget
   ========================================== */
.roma-event-cards-grid {
  display: grid;
  gap: 24px;
}

.roma-event-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.roma-event-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.roma-event-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.roma-event-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* Edition / Visual Area (shared base) */
.roma-event-edition {
  min-width: 60px;
  margin-right: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Text / Roman Numeral */
.roma-event-edition--text {
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -1px;
  font-family: 'Georgia', 'Times New Roman', serif;
  opacity: 0.85;
  padding-top: 4px;
}

/* Image */
.roma-event-edition--image img {
  width: 80px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

/* Icon */
.roma-event-edition--icon {
  padding-top: 2px;
}

.roma-event-edition--icon i {
  font-size: 40px;
}

.roma-event-edition--icon svg {
  width: 40px;
  height: 40px;
}

/* Content Area */
.roma-event-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

/* Badge */
.roma-event-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #dc2626;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Title */
.roma-event-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #1f2937;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

/* Description */
.roma-event-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0;
}

/* Responsive */
@media (max-width: 767px) {
  .roma-event-card {
    padding: 20px;
  }
  .roma-event-edition {
    min-width: 45px;
    margin-right: 14px;
  }
  .roma-event-edition--text {
    font-size: 36px;
  }
  .roma-event-edition--image img {
    width: 50px;
  }
  .roma-event-edition--icon i {
    font-size: 28px;
  }
  .roma-event-edition--icon svg {
    width: 28px;
    height: 28px;
  }
  .roma-event-title {
    font-size: 0.85rem;
  }
}

/* --- Style 2: Top Border --- */
.roma-evt-topborder {
  border-top: 4px solid #dc2626;
  padding: 24px 28px;
}

.roma-evt-topborder-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.roma-evt-topborder .roma-event-edition {
  min-width: auto;
  margin-right: 0;
}

.roma-evt-topborder .roma-event-edition--text {
  font-size: 36px;
}

.roma-evt-topborder .roma-event-badge {
  margin-bottom: 0;
}

/* --- Style 3: Banner --- */
.roma-evt-banner {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.roma-evt-banner-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.roma-evt-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.roma-evt-banner:hover .roma-evt-banner-img img {
  transform: scale(1.06);
}

.roma-evt-banner-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.roma-evt-banner .roma-event-badge {
  margin-bottom: 12px;
}

/* --- Style 4: Overlay --- */
.roma-evt-overlay {
  position: relative;
  min-height: 260px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.roma-evt-overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.roma-evt-overlay:hover .roma-evt-overlay-bg {
  transform: scale(1.06);
}

.roma-evt-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.05) 100%);
  z-index: 2;
}

.roma-evt-overlay-content {
  position: relative;
  z-index: 3;
  padding: 28px;
  width: 100%;
  box-sizing: border-box;
}

.roma-evt-overlay .roma-event-badge {
  background-color: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.roma-evt-overlay .roma-event-title {
  color: #ffffff;
  font-size: 1.1rem;
}

.roma-evt-overlay .roma-event-desc {
  color: rgba(255, 255, 255, 0.8);
}

/* Overlay responsive */
@media (max-width: 767px) {
  .roma-evt-overlay {
    min-height: 220px;
  }
  .roma-evt-overlay-content {
    padding: 20px;
  }
  .roma-evt-overlay .roma-event-title {
    font-size: 0.95rem;
  }
  .roma-evt-banner-img {
    height: 140px;
  }
}

/* Floating Magazine Styles */
.roma-floating-widget {
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.roma-floating-inner {
  position: relative;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 0 0 1px rgba(59, 130, 246, 0.05);
  padding: 6px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.roma-floating-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.roma-floating-close {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background: rgba(0,0,0,0.6) !important;
  backdrop-filter: blur(4px);
  color: #ffffff !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  z-index: 20 !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

.roma-floating-close:hover {
  background: rgba(0,0,0,0.5);
  transform: scale(1.05);
}

.roma-floating-link-area {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
}

.roma-floating-img-wrap {
  width: 100%;
  /* aspect-ratio removed for auto-adaptation */
  background: #f3f4f6;
  position: relative;
  overflow: hidden;
}


.roma-floating-img-wrap video {
  width: 100%;
  height: auto;
  display: block;
}
.roma-floating-audio-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
}
.roma-floating-audio-btn:hover {
  background: var(--roma-primary, #3b82f6);
  transform: scale(1.1);
}
.roma-floating-audio-btn svg {
  width: 18px;
  height: 18px;
}
.roma-floating-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.roma-floating-link-area:hover 
.roma-floating-img-wrap video {
  width: 100%;
  height: auto;
  display: block;
}
.roma-floating-audio-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
}
.roma-floating-audio-btn:hover {
  background: var(--roma-primary, #3b82f6);
  transform: scale(1.1);
}
.roma-floating-audio-btn svg {
  width: 18px;
  height: 18px;
}
.roma-floating-img-wrap img {
  transform: scale(1.03);
}

.roma-floating-content {
  background-color: var(--roma-primary);
  padding: 16px;
  text-align: center;
}

.roma-floating-subtitle {
  display: block;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
}

/* Mobile responsiveness for floating widget */
@media (max-width: 767px) {
  .roma-floating-widget {
    transform: scale(0.9);
    transform-origin: bottom right;
  }
}

/* Blog Grid Widget */
.roma-blog-grid {
  display: grid;
  width: 100%;
  gap: 24px;
}

.roma-blog-card {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  position: relative;
}

.roma-blog-card:hover {
  transform: translateY(-5px);
}

.roma-blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

/* Base Typographies */
.rbg-title {
  margin: 0 0 10px 0;
  font-weight: 700;
  line-height: 1.3;
}
.rbg-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rbg-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

/* --- Style 1: Horizontal --- */
.roma-blog-card.style-1 {
  display: grid;
  grid-template-columns: 40% 60%;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.roma-blog-card.style-1:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.roma-blog-card.style-1 .rbg-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.roma-blog-card.style-1:hover .rbg-img-wrap img {
  transform: scale(1.05);
}
.roma-blog-card.style-1 .rbg-content-wrap {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.roma-blog-card.style-1 .rbg-category {
  color: #8c8c8c;
  margin-bottom: 12px;
}
.roma-blog-card.style-1 .rbg-title {
  font-size: 1.15rem;
  color: #111827;
  margin-bottom: 24px;
}
.roma-blog-card.style-1 .rbg-meta {
  color: #4b5563;
  font-weight: 500;
}
@media (max-width: 767px) {
  .roma-blog-card.style-1 { grid-template-columns: 1fr; }
  .roma-blog-card.style-1 .rbg-img-wrap { aspect-ratio: 16/9; }
}

/* --- Style 2: Vertical Modern --- */
.roma-blog-card.style-2 {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.roma-blog-card.style-2:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.roma-blog-card.style-2 .rbg-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.roma-blog-card.style-2:hover .rbg-img-wrap img {
  transform: scale(1.05);
}
.roma-blog-card.style-2 .rbg-content-wrap {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.roma-blog-card.style-2 .rbg-category.pill {
  background: #f0f5ff;
  color: #4338ca;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: normal;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 16px;
}
.roma-blog-card.style-2 .rbg-title {
  font-size: 1.4rem;
  color: #111827;
  margin-bottom: 12px;
}
.roma-blog-card.style-2 .rbg-excerpt {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}
.roma-blog-card.style-2 .rbg-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.rbg-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rbg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.rbg-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rbg-author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #111827;
}
.rbg-read-time {
  font-size: 0.8rem;
  color: #9ca3af;
}
.rbg-arrow-icon {
  transition: transform 0.3s;
}
.rbg-arrow-icon svg {
  width: 22px;
  height: 22px;
  stroke: #6b7280;
  stroke-width: 2.5;
}
.roma-blog-card.style-2:hover .rbg-arrow-icon {
  transform: translate(4px, -4px);
}
.roma-blog-card.style-2:hover .rbg-arrow-icon svg {
  stroke: #111827;
}

/* --- Style 3: Overlay Portada --- */
.roma-blog-card.style-3 {
  aspect-ratio: 4/3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.roma-blog-card.style-3:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.roma-blog-card.style-3 .rbg-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
  z-index: 1;
}
.roma-blog-card.style-3:hover .rbg-bg-image {
  transform: scale(1.05);
}
.rbg-top-left, .rbg-top-right, .rbg-bottom-right {
  position: absolute;
  z-index: 2;
}
.rbg-top-left {
  top: 24px; left: 24px;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.rbg-date-pill {
  background: #ffffff;
  color: #111827;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.rbg-cat-pill-hollow {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.4);
}
.rbg-top-right {
  top: 24px; right: 24px;
  max-width: 55%;
}
.rbg-title-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.rbg-title-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}
.rbg-title-card .rbg-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: #111827;
  letter-spacing: -0.5px;
  margin: 0;
}
.rbg-bottom-right {
  bottom: 24px; right: 24px;
}
.rbg-circle-btn {
  width: 48px; height: 48px;
  background: #ffffff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}
.rbg-circle-btn svg {
  width: 20px;
  height: 20px;
  stroke: #111827;
  stroke-width: 2.5;
}
.roma-blog-card.style-3:hover .rbg-circle-btn {
  transform: translate(4px, -4px);
}
@media (max-width: 767px) {
  .roma-blog-grid { grid-template-columns: 1fr !important; }
  .roma-blog-card.style-3 { aspect-ratio: 3/4; }
  .rbg-top-right { top: auto; bottom: 84px; left: 16px; right: 16px; max-width: 100%; }
}

/* --- Style 4: Banner SaaS Premium --- */
.roma-blog-card.style-4 {
  width: 100%;
  min-height: 450px;
  border-radius: 24px;
  overflow: hidden;
  background-color: #111827;
  display: flex;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.roma-blog-card.style-4 .rbg-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
  z-index: 1;
}
.roma-blog-card.style-4:hover .rbg-bg-image {
  transform: scale(1.05);
}
.rbg-saas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
  z-index: 2;
}
.rbg-saas-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Blur only behind the text area at the bottom */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* Use mask to fade out the blur at the top of the content area to blend it smoothly */
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
  /* Since it's absolute at the bottom, we give it some height to cover the text */
  height: 60%;
}
.rbg-saas-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rbg-saas-title {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 600;
  color: #ffffff;
  width: 70%;
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif; /* sans-serif moderna */
}
@media (max-width: 767px) {
  .roma-blog-card.style-4 { min-height: 350px; }
  .rbg-saas-content { padding: 24px; backdrop-filter: blur(8px); }
  .rbg-saas-title { font-size: 32px; width: 100%; }
}

/* --- Style 5: Fitness Premium Organic --- */
.roma-blog-card.style-5 {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 28px;
  overflow: hidden;
  background-color: #f5e6cf;
  display: block;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.roma-blog-card.style-5 .rbg-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 1;
}
.roma-blog-card.style-5:hover .rbg-bg-image {
  transform: scale(1.05);
}
.rbg-organic-fire-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,220,180,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 3;
}
.rbg-organic-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 85%;
  background: #ffffff;
  border-radius: 0 50px 0 0;
  padding: 32px 32px 24px 24px;
  z-index: 3;
}
.rbg-organic-meta {
  font-size: 12px;
  letter-spacing: 0.5px;
  font-weight: 500;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 12px;
}
.rbg-organic-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  font-family: 'Anton', 'Archivo Black', 'Montserrat', sans-serif;
  color: #111111;
  margin: 0;
}
@media (max-width: 767px) {
  .roma-blog-card.style-5 { aspect-ratio: 3/4; }
  .rbg-organic-content { width: 92%; padding: 24px 24px 20px 20px; border-radius: 0 40px 0 0; }
  .rbg-organic-title { font-size: 26px; }
}

/* --- Style 6: Soft UI Minimalista --- */
.roma-blog-card.style-6 {
  display: flex;
  flex-direction: column;
  background: #f8f8f8;
  border-radius: 28px;
  overflow: hidden;
  padding-bottom: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
}
.roma-blog-card.style-6:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}
.roma-blog-card.style-6 .rbg-soft-img-wrap {
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
  margin: 16px 16px 0 16px;
  position: relative;
}
.roma-blog-card.style-6 .rbg-soft-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.roma-blog-card.style-6:hover .rbg-soft-img-wrap img {
  transform: scale(1.04);
}
.roma-blog-card.style-6 .rbg-soft-content-wrap {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.roma-blog-card.style-6 .rbg-soft-category {
  color: #6C63FF;
  background: #f0f0ff;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  align-self: flex-start;
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 500;
}
.roma-blog-card.style-6 .rbg-soft-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #111111;
  margin-bottom: 12px;
  font-family: 'Inter', 'Satoshi', 'Plus Jakarta Sans', sans-serif;
}
.roma-blog-card.style-6 .rbg-soft-excerpt {
  color: #7a7a7a;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}
.roma-blog-card.style-6 .rbg-soft-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
}
.roma-blog-card.style-6 .rbg-soft-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.roma-blog-card.style-6 .rbg-soft-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.roma-blog-card.style-6 .rbg-soft-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.roma-blog-card.style-6 .rbg-soft-author-name {
  font-weight: 600;
  font-size: 14px;
  color: #111111;
}
.roma-blog-card.style-6 .rbg-soft-read-time {
  font-size: 13px;
  color: #9a9a9a;
}
.roma-blog-card.style-6 .rbg-soft-arrow-icon {
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.roma-blog-card.style-6 .rbg-soft-arrow-icon svg {
  width: 22px;
  height: 22px;
  stroke: #111111;
  stroke-width: 2.5;
}
.roma-blog-card.style-6:hover .rbg-soft-arrow-icon {
  opacity: 1;
  transform: translate(3px, -3px);
}
@media (max-width: 767px) {
  .roma-blog-card.style-6 .rbg-soft-title { font-size: 24px; }
  .roma-blog-card.style-6 .rbg-soft-img-wrap { height: 180px; }
}

/* --- Dropdown Button Widget --- */
.roma-dropdown-wrapper {
  position: relative;
  display: inline-block;
  /* El width de la capa superior depende de la alineaciÃƒÂ³n, asÃƒÂ­ que elementor controlarÃƒÂ¡ la alineaciÃƒÂ³n mediante display flex en un contenedor padre si es necesario */
}

/* FIX: Absolute control over any SVG rendered by Elementor inside our widget */
.roma-dropdown-wrapper svg,
.roma-dropdown-wrapper i {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

.roma-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--roma-primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--roma-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--roma-transition);
}

.roma-dropdown-btn-icon-wrapper {
  transition: transform 0.3s ease;
  width: 1.2em;
  height: 1.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.roma-dropdown-btn-icon-wrapper svg,
.roma-dropdown-btn-icon-wrapper i {
  width: 1.2em !important;
  height: 1.2em !important;
  fill: currentColor;
}

.roma-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: var(--roma-bg-light);
  border-radius: var(--roma-radius);
  box-shadow: var(--roma-shadow-md);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--roma-transition);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

/* Hover Interaction */
.roma-dropdown-hover:hover .roma-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.roma-dropdown-hover:hover .roma-dropdown-btn-icon-wrapper {
  transform: rotate(180deg);
}

/* Click Interaction */
.roma-dropdown-click.roma-dropdown-active .roma-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.roma-dropdown-click.roma-dropdown-active .roma-dropdown-btn-icon-wrapper {
  transform: rotate(180deg);
}

.roma-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--roma-text-dark);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.roma-dropdown-item:hover {
  background: #f3f4f6;
}

.roma-dropdown-item-icon {
  display: inline-flex;
  color: var(--roma-primary);
  font-size: 1.1em;
  transition: color 0.2s ease;
  width: 1.2em;
  height: 1.2em;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.roma-dropdown-item-icon svg,
.roma-dropdown-item-icon i {
  width: 1.2em !important;
  height: 1.2em !important;
  fill: currentColor;
}

.roma-dropdown-item-text {
  flex-grow: 1;
  text-align: left;
}

/* Burbuja de Chat - Estilos Frontend V5 (Modelos y Formularios) */

#burbuja-chat-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transform: scale(var(--burbuja-scale, 1));
    transform-origin: bottom right;
}

#burbuja-chat-container.burbuja-pos-left {
    right: auto;
    left: 30px;
    align-items: flex-start;
    transform-origin: bottom left;
}

#burbuja-chat-menu {
    width: 320px;
    max-height: calc(100vh - 120px);
    background: var(--burbuja-menu-bg, #e2e5e4);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    overflow: hidden; /* Importante para el slider */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: bottom right;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}

#burbuja-chat-container.burbuja-pos-left #burbuja-chat-menu { transform-origin: bottom left; }

#burbuja-chat-menu.burbuja-hidden { opacity: 0; pointer-events: none; visibility: hidden; }

/* Utilidad GenÃƒÂ©rica */
.burbuja-d-none { display: none !important; }

/* Animaciones MenÃƒÂº */
.burbuja-anim-bounce #burbuja-chat-menu.burbuja-hidden { transform: scale(0.5); }
.burbuja-anim-slide #burbuja-chat-menu.burbuja-hidden { transform: translateY(50px); }
.burbuja-anim-pulse #burbuja-chat-menu.burbuja-hidden { transform: scale(0.9); opacity: 0; }
.burbuja-anim-wiggle #burbuja-chat-menu.burbuja-hidden { transform: rotate(-5deg) scale(0.9); opacity: 0; }
.burbuja-anim-none #burbuja-chat-menu.burbuja-hidden { transform: scale(1); opacity: 0; }

/* AnimaciÃƒÂ³n Toggle Inicial */
@keyframes burbujaEntrance { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.burbuja-toggle-wrapper { animation: burbujaEntrance 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; position: relative; display: flex; align-items: center; }
#burbuja-chat-container.burbuja-pos-left .burbuja-toggle-wrapper { flex-direction: row-reverse; }

/* TOGGLE MAIN BUTTON */
#burbuja-chat-toggle {
    width: 60px; height: 60px; background: var(--burbuja-main, #624231); color: #ffffff;
    border: none; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); outline: none; padding: 0; position: relative; z-index: 11;
}
.burbuja-shape-round #burbuja-chat-toggle { border-radius: 50%; }
.burbuja-shape-square #burbuja-chat-toggle { border-radius: 12px; }
.burbuja-shape-teardrop #burbuja-chat-toggle { border-radius: 50% 50% 0 50%; }
.burbuja-pos-left.burbuja-shape-teardrop #burbuja-chat-toggle { border-radius: 50% 50% 50% 0; }

#burbuja-chat-toggle:hover { transform: scale(1.08); }

/* Estado Abierto y AnimaciÃƒÂ³n de Iconos */
.burbuja-open-icon, .burbuja-close-icon {
    position: absolute;
    top: 50%; left: 50%;
    margin-top: -14px; margin-left: -14px; /* Centrado perfecto para 28x28 */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}
.burbuja-open-icon { transform: rotate(0) scale(1); opacity: 1; }
.burbuja-close-icon { transform: rotate(-90deg) scale(0); opacity: 0; }

#burbuja-chat-container.burbuja-is-open .burbuja-open-icon { transform: rotate(90deg) scale(0); opacity: 0; }
#burbuja-chat-container.burbuja-is-open .burbuja-close-icon { transform: rotate(0) scale(1); opacity: 1; }

/* BADGE Y TOOLTIP */
.burbuja-badge {
    position: absolute; top: -5px; right: -5px; background: #ff3b30; color: white; font-size: 12px; font-weight: bold;
    border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); border: 2px solid var(--burbuja-menu-bg, #fff); z-index: 2; animation: badgePulse 2s infinite;
}
@keyframes badgePulse { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }

.burbuja-tooltip {
    background: #ffffff; color: #333333; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-right: 15px; position: relative; white-space: nowrap; animation: tooltipFloat 3s ease-in-out infinite;
}
.burbuja-pos-left .burbuja-tooltip { margin-right: 0; margin-left: 15px; }
.burbuja-tooltip::after { content: ''; position: absolute; top: 50%; right: -6px; transform: translateY(-50%); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 6px solid #ffffff; }
.burbuja-pos-left .burbuja-tooltip::after { right: auto; left: -6px; border-left: none; border-right: 6px solid #ffffff; }
@keyframes tooltipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* HEADER */
.burbuja-header {
    background: var(--burbuja-header-bg, #624231); color: var(--burbuja-header-text, #ffffff);
    padding: 20px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 10; position: relative;
}
.burbuja-header-content { display: flex; align-items: center; gap: 12px; }
.burbuja-header-logo { width: 45px; height: 45px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.8); overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; flex-shrink: 0; }
.burbuja-header-logo img { width: 100%; height: 100%; object-fit: cover; }
.burbuja-header-texts { display: flex; flex-direction: column; }
.burbuja-header-title { font-size: 16px; font-weight: 700; line-height: 1.2; margin-bottom: 2px; }
.burbuja-header-subtitle { font-size: 12px; opacity: 0.9; line-height: 1.2; }
#burbuja-close-btn, #burbuja-back-btn { background: none; border: none; color: inherit; cursor: pointer; padding: 0; opacity: 0.8; transition: opacity 0.2s; margin-top: 2px; display:flex; align-items:center; }
#burbuja-close-btn:hover, #burbuja-back-btn:hover { opacity: 1; }
#burbuja-back-btn { margin-right: 5px; }

/* SLIDER (NAVIGATION FORM <-> OPTIONS) */
.burbuja-body-slider { display: flex; align-items: flex-start; width: 200%; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.burbuja-view { width: 50%; flex-shrink: 0; overflow-y: auto; max-height: calc(100vh - 120px); }
.burbuja-view:not(.active) { height: 0; overflow: hidden; }
/* Si form estÃƒÂ¡ activo, mueve el slider a la izquierda */
#burbuja-chat-menu:has(.burbuja-view-form.active) .burbuja-body-slider, 
.burbuja-preview-mode:has(.burbuja-view-form.active) .burbuja-body-slider { transform: translateX(-50%); }

.burbuja-body-padding { padding: 20px; }

.burbuja-greeting {
    background: #ffffff; padding: 15px; border-radius: 12px; font-size: 14px; color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 20px; position: relative;
}
.burbuja-greeting::before { content: ''; position: absolute; top: -8px; left: 15px; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 10px solid #ffffff; }

/* --- MODELOS DE BOTONES (OPCIONES) --- */
.burbuja-options { display: flex; flex-direction: column; gap: 14px; }
.burbuja-option {
    background: var(--burbuja-btn-bg, #ffffff); color: var(--burbuja-btn-text, #00284b) !important;
    text-decoration: none !important; display: flex; align-items: center; justify-content: center;
    padding: 14px 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0,0,0,0.03); border-radius: 14px;
}
.burbuja-icon-wrapper { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0; }
.burbuja-icon-wrapper img { width: 100%; height: 100%; object-fit: contain; }
.burbuja-texts { display: flex; flex-direction: column; flex-grow: 1; }
.burbuja-title { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; line-height:1.3; color: var(--burbuja-btn-text, #00284b); }
.burbuja-desc { font-size: 12px; color: #666; margin-top: 3px; text-transform: none; letter-spacing: normal; line-height:1.3; opacity: 0.85; }

/* Alineaciones */
.burbuja-align-center .burbuja-option { justify-content: center; text-align: center; }
.burbuja-align-center .burbuja-texts { align-items: center; }
.burbuja-align-left .burbuja-option { justify-content: flex-start; text-align: left; }
.burbuja-align-left .burbuja-texts { align-items: flex-start; }
.burbuja-align-right .burbuja-option { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.burbuja-align-right .burbuja-texts { align-items: flex-end; }
.burbuja-align-right .burbuja-icon-wrapper { margin-right: 0; margin-left: 10px; }

/* Modelos Visuales */
/* 1. Pill (Por defecto) */
.burbuja-model-pill .burbuja-option { border-radius: 30px; }
.burbuja-model-pill .burbuja-option:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.06); }
/* 2. Square */
.burbuja-model-square .burbuja-option { border-radius: 8px; }
.burbuja-model-square .burbuja-option:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.06); }
/* 3. Flat (Minimalista) */
.burbuja-model-flat .burbuja-option { background: transparent; box-shadow: none; padding: 12px 5px; border-bottom: 1px solid rgba(0,0,0,0.08); border-top: none; border-left: none; border-right: none; border-radius: 0; }
.burbuja-model-flat .burbuja-option:hover { background: rgba(0,0,0,0.02); transform: none; box-shadow: none; }
/* 4. Outline */
.burbuja-model-outline .burbuja-option { background: transparent; box-shadow: none; border: 2px solid var(--burbuja-main); border-radius: 12px; }
.burbuja-model-outline .burbuja-option:hover { background: var(--burbuja-main); color: #fff !important; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.burbuja-model-outline .burbuja-option:hover .burbuja-desc, .burbuja-model-outline .burbuja-option:hover .burbuja-title { color: #ffffff !important; }
/* 5. Card */
.burbuja-model-card .burbuja-options { flex-direction: row; flex-wrap: wrap; }
.burbuja-model-card .burbuja-option { width: calc(50% - 7px); flex-direction: column; text-align: center; padding: 16px 12px; border-radius: 16px; }
.burbuja-model-card .burbuja-option:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.06); }
.burbuja-model-card .burbuja-icon-wrapper { margin: 0 0 12px 0; width: 36px; height: 36px; }
.burbuja-model-card .burbuja-texts { align-items: center; }

/* --- FORMULARIO (UI) --- */
.burbuja-form-group { margin-bottom: 15px; }
.burbuja-form-group label { display: block; font-size: 13px; font-weight: 700; color: #333; margin-bottom: 8px; }
.burbuja-form-group label .req { color: #ff3b30; }
.burbuja-form-group input[type="text"], .burbuja-form-group input[type="email"], .burbuja-form-group input[type="tel"], .burbuja-form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; font-family: inherit; box-sizing: border-box; background: #fff;
    transition: border-color 0.2s;
}
.burbuja-form-group input:focus, .burbuja-form-group textarea:focus { outline: none; border-color: var(--burbuja-main); box-shadow: 0 0 0 2px rgba(0,0,0,0.05); }
.burbuja-form-group input[type="file"] { font-size: 12px; color: #666; width: 100%; }
.burbuja-form-group small { display: block; font-size: 11px; color: #888; margin-top: 4px; }

.burbuja-btn-submit {
    width: 100%; background: var(--burbuja-main) !important; color: #ffffff !important; border: none; padding: 14px; border-radius: 8px;
    font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit;
    transition: opacity 0.2s;
}
.burbuja-btn-submit:hover { opacity: 0.9; }
.burbuja-btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.burbuja-loader { width: 16px; height: 16px; border: 2px solid #fff; border-bottom-color: transparent; border-radius: 50%; animation: rotation 1s linear infinite; }
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.burbuja-form-success { background: #e6f4ea; color: #1e8e3e; padding: 12px; border-radius: 6px; font-size: 13px; text-align: center; margin-top: 15px; font-weight: 600; }
.burbuja-form-error { background: #fce8e6; color: #d93025; padding: 12px; border-radius: 6px; font-size: 13px; text-align: center; margin-top: 15px; font-weight: 600; }

/* FOOTER */
.burbuja-footer { text-align: center; font-size: 12px; color: #666; padding: 10px 15px 15px; font-weight: 600; }

/* DISPOSITIVOS */
.burbuja-show-desktop { display: flex !important; }
.burbuja-show-mobile { display: none !important; }

/* MODO OSCURO */

/* ==========================================
   Pricing Table Widget
   ========================================== */
.roma-pricing-table {
  --pt-accent: #3b82f6;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.roma-pt-ribbon {
  position: absolute;
  top: 15px;
  right: -35px;
  background: var(--pt-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 40px;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 10;
}

.roma-pt-header {
  padding: 30px 30px 15px;
  text-align: center;
}
.roma-pt-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--roma-text-dark);
}
.roma-pt-desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

.roma-pt-price-wrap {
  padding: 10px 30px 25px;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
}
.roma-pt-currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: super;
  color: var(--roma-text-dark);
}
.roma-pt-price {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--roma-text-dark);
}
.roma-pt-period {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.roma-pt-features {
  padding: 30px;
  flex-grow: 1;
}
.roma-pt-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.roma-pt-features li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.95rem;
}
.roma-pt-features li:last-child {
  margin-bottom: 0;
}
.roma-pt-icon {
  margin-right: 12px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}
.roma-pt-features li.included .roma-pt-icon {
  color: var(--pt-accent);
}
.roma-pt-features li.excluded {
  opacity: 0.5;
}
.roma-pt-features li.excluded .roma-pt-icon {
  color: #9ca3af;
}

.roma-pt-footer {
  padding: 0 30px 30px;
  text-align: center;
}
.roma-pt-btn {
  display: inline-block;
  width: 100%;
  padding: 14px 20px;
  background-color: var(--pt-accent);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.roma-pt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  color: #fff;
}

/* 1. Style: SaaS */
.roma-pricing-table.style-saas {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.roma-pricing-table.style-saas.is-featured {
  border-color: var(--pt-accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: scale(1.03);
}

/* 2. Style: Featured / Pop-out */
.roma-pricing-table.style-featured {
  background: linear-gradient(135deg, var(--pt-accent), #1f2937);
  color: #ffffff;
  border: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.roma-pricing-table.style-featured .roma-pt-title,
.roma-pricing-table.style-featured .roma-pt-currency,
.roma-pricing-table.style-featured .roma-pt-price,
.roma-pricing-table.style-featured .roma-pt-desc,
.roma-pricing-table.style-featured .roma-pt-period {
  color: #ffffff;
}
.roma-pricing-table.style-featured .roma-pt-price-wrap {
  border-bottom-color: rgba(255,255,255,0.1);
}
.roma-pricing-table.style-featured .roma-pt-features li.excluded {
  opacity: 0.6;
}
.roma-pricing-table.style-featured .roma-pt-features li.excluded .roma-pt-icon {
  color: rgba(255,255,255,0.5);
}
.roma-pricing-table.style-featured .roma-pt-features li.included .roma-pt-icon {
  color: #ffffff;
}
.roma-pricing-table.style-featured .roma-pt-btn {
  background-color: #ffffff;
  color: var(--pt-accent);
}
.roma-pricing-table.style-featured .roma-pt-ribbon {
  background-color: #ffffff;
  color: var(--pt-accent);
}

/* 3. Style: Minimal */
.roma-pricing-table.style-minimal {
  background: transparent;
  border: 2px solid transparent;
}
.roma-pricing-table.style-minimal.is-featured {
  border-color: var(--pt-accent);
}
.roma-pricing-table.style-minimal .roma-pt-header {
  padding-bottom: 0;
}
.roma-pricing-table.style-minimal .roma-pt-price-wrap {
  border-bottom: none;
  padding-top: 5px;
}
.roma-pricing-table.style-minimal .roma-pt-btn {
  background: transparent;
  border: 2px solid var(--pt-accent);
  color: var(--pt-accent);
}
.roma-pricing-table.style-minimal .roma-pt-btn:hover {
  background: var(--pt-accent);
  color: #fff;
}

/* 4. Style: Glassmorphism */
.roma-pricing-table.style-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
}
.roma-pricing-table.style-glass.is-featured {
  background: rgba(255, 255, 255, 0.9);
}

/* 5. Style: Horizontal */
.roma-pricing-table.style-horizontal {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  flex-direction: row;
  align-items: stretch;
}
.roma-pricing-table.style-horizontal .roma-pt-ribbon {
  right: auto;
  left: -40px;
  top: 20px;
  transform: rotate(-45deg);
}
.roma-pricing-table.style-horizontal .roma-pt-header {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #f3f4f6;
}
.roma-pricing-table.style-horizontal .roma-pt-price-wrap {
  border-bottom: none;
  border-right: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  min-width: 200px;
}
.roma-pricing-table.style-horizontal .roma-pt-features {
  flex: 2;
  display: flex;
  align-items: center;
}
.roma-pricing-table.style-horizontal .roma-pt-features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.roma-pricing-table.style-horizontal .roma-pt-features li {
  margin-bottom: 0;
  width: calc(50% - 15px);
}
.roma-pricing-table.style-horizontal .roma-pt-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border-left: 1px solid #f3f4f6;
  min-width: 200px;
}
.roma-pricing-table.style-horizontal .roma-pt-btn {
  width: auto;
}

@media (max-width: 992px) {
  .roma-pricing-table.style-horizontal {
    flex-direction: column;
  }
  .roma-pricing-table.style-horizontal .roma-pt-header,
  .roma-pricing-table.style-horizontal .roma-pt-price-wrap,
  .roma-pricing-table.style-horizontal .roma-pt-footer {
    border-right: none;
    border-bottom: 1px solid #f3f4f6;
    border-left: none;
    min-width: auto;
  }
  .roma-pricing-table.style-horizontal .roma-pt-footer {
    border-bottom: none;
  }
  .roma-pricing-table.style-horizontal .roma-pt-features li {
    width: 100%;
  }
  .roma-pricing-table.style-horizontal .roma-pt-btn {
    width: 100%;
  }
  .roma-pricing-table.style-horizontal .roma-pt-ribbon {
    right: -35px;
    left: auto;
    transform: rotate(45deg);
  }
}


/* ==========================================
   Advanced Static Hero Widget
   ========================================== */
.roma-adv-hero {
  --adv-accent: #3b82f6;
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #f9fafb; /* default bg */
}
.roma-adv-hero-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 40px;
}

.roma-adv-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.roma-adv-hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--adv-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}
.roma-adv-hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: #111827;
  margin: 0 0 20px;
}
.roma-adv-hero-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 35px;
  max-width: 600px;
}

.roma-adv-hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.roma-adv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.roma-adv-btn-primary {
  background-color: var(--adv-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.roma-adv-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: #fff;
}
.roma-adv-btn-secondary {
  background-color: transparent;
  color: var(--adv-accent);
  border: 2px solid var(--adv-accent);
}
.roma-adv-btn-secondary:hover {
  background-color: var(--adv-accent);
  color: #fff;
}

.roma-adv-hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.roma-adv-hero-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes advFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* 1. Style: Split Screen */
.roma-adv-hero.style-split .roma-adv-hero-visual img {
  animation: advFloat 6s ease-in-out infinite;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* 2. Style: Centered Minimal */
.roma-adv-hero.style-centered {
  text-align: center;
  background-color: transparent;
}
.roma-adv-hero.style-centered .roma-adv-hero-inner {
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}
.roma-adv-hero.style-centered .roma-adv-hero-content {
  align-items: center;
}
.roma-adv-hero.style-centered .roma-adv-hero-desc {
  margin-left: auto;
  margin-right: auto;
}
.roma-adv-hero.style-centered .roma-adv-hero-title {
  font-size: 4.5rem;
}

/* 3. Style: Neo-Brutalism */
.roma-adv-hero.style-neobrutalism {
  background-color: #fef08a; /* Yellowish base */
}
.roma-adv-hero.style-neobrutalism .roma-adv-hero-visual img {
  border: 4px solid #000;
  border-radius: 0;
  box-shadow: 12px 12px 0px #000;
  transition: all 0.2s ease;
}
.roma-adv-hero.style-neobrutalism .roma-adv-hero-visual img:hover {
  transform: translate(-4px, -4px);
  box-shadow: 16px 16px 0px #000;
}
.roma-adv-hero.style-neobrutalism .roma-adv-btn-primary {
  background-color: var(--adv-accent);
  color: #fff;
  border: 3px solid #000;
  border-radius: 0;
  box-shadow: 6px 6px 0px #000;
}
.roma-adv-hero.style-neobrutalism .roma-adv-btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0px #000;
}
.roma-adv-hero.style-neobrutalism .roma-adv-btn-secondary {
  background-color: #fff;
  color: #000;
  border: 3px solid #000;
  border-radius: 0;
  box-shadow: 6px 6px 0px #000;
}
.roma-adv-hero.style-neobrutalism .roma-adv-btn-secondary:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0px #000;
  background-color: #e5e7eb;
}
.roma-adv-hero.style-neobrutalism .roma-adv-hero-title {
  color: #000;
}

/* 4. Style: Creative Blob */
.roma-adv-hero.style-blob .roma-adv-hero-visual img {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blobMorph 8s ease-in-out infinite alternate;
  box-shadow: none;
}
@keyframes blobMorph {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* 5. Style: Glassmorphism Overlay */
.roma-adv-hero.style-glass {
  background: url('https://source.unsplash.com/random/1920x1080/?abstract,dark') center/cover no-repeat;
  /* El usuario deberÃ­a poder sobreescribir este fondo desde Elementor */
}
.roma-adv-hero.style-glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}
.roma-adv-hero.style-glass .roma-adv-hero-inner {
  justify-content: center;
}
.roma-adv-hero.style-glass .roma-adv-hero-content {
  flex: none;
  width: 100%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  text-align: center;
  align-items: center;
}
.roma-adv-hero.style-glass .roma-adv-hero-title {
  color: #fff;
}
.roma-adv-hero.style-glass .roma-adv-hero-desc {
  color: rgba(255, 255, 255, 0.9);
}
.roma-adv-hero.style-glass .roma-adv-hero-eyebrow {
  color: var(--adv-accent);
  background: rgba(255,255,255,0.1);
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
}

/* Responsive */
@media (max-width: 992px) {
  .roma-adv-hero-inner {
    flex-direction: column;
    padding: 60px 20px;
    text-align: center;
  }
  .roma-adv-hero-content {
    align-items: center;
  }
  .roma-adv-hero-actions {
    justify-content: center;
  }
  .roma-adv-hero-title {
    font-size: 2.5rem;
  }
  .roma-adv-hero.style-glass .roma-adv-hero-content {
    padding: 30px 20px;
  }
}


/* ==========================================
   Modern Events Widget
   ========================================== */
.roma-modern-events-wrapper {
  --rme-accent: #2563eb;
  width: 100%;
}

.roma-modern-events-grid {
  display: grid;
  gap: 30px;
}

.rme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
}
.rme-card-link {
  position: absolute;
  inset: 0;
  z-index: 10;
}
.rme-media {
  position: relative;
  overflow: hidden;
}
.rme-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.rme-card:hover .rme-media img {
  transform: scale(1.05);
}
.rme-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.rme-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--rme-accent);
  color: #fff;
  margin-bottom: 12px;
}
.rme-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px 0;
  line-height: 1.4;
}
.rme-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.rme-meta-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #6b7280;
}
.rme-meta-item svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
  color: var(--rme-accent);
}
.rme-action {
  margin-top: 20px;
}
.rme-btn {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rme-accent);
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}
.rme-card:hover .rme-btn {
  transform: translateX(5px);
}

/* Responsive: Native Mobile Carousel (Scroll Snap) */
@media (max-width: 767px) {
  .roma-modern-events-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .roma-modern-events-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  .rme-card {
    min-width: 85%;
    flex-shrink: 0;
    scroll-snap-align: center;
  }
  /* Agrega padding al primer y ÃƒÂºltimo elemento para que queden centrados */
  .rme-card:first-child {
    margin-left: 7.5%;
  }
  .rme-card:last-child {
    margin-right: 7.5%;
  }
}

/* ==================
   STYLE 1: Corporate Clean
   ================== */
.style-corporate .rme-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.style-corporate .rme-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
  border-color: transparent;
}
.style-corporate .rme-media img {
  height: 180px;
}

/* ==================
   STYLE 2: Tech SaaS Glow
   ================== */
.style-saas .rme-card {
  border-radius: 12px;
  background: #1f2937;
  border: 1px solid #374151;
}
.style-saas .rme-title { color: #f9fafb; }
.style-saas .rme-meta-item { color: #9ca3af; }
.style-saas .rme-card:hover {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  border-color: var(--rme-accent);
}
.style-saas .rme-badge {
  background: transparent;
  border: 1px solid var(--rme-accent);
  color: var(--rme-accent);
}

/* ==================
   STYLE 3: Minimal Outline
   ================== */
.style-minimal .rme-card {
  background: transparent;
  border: 2px solid #e5e7eb;
  border-radius: 0;
}
.style-minimal .rme-card:hover {
  border-color: #111827;
}
.style-minimal .rme-media img {
  filter: grayscale(100%);
}
.style-minimal .rme-card:hover .rme-media img {
  filter: grayscale(0%);
}
.style-minimal .rme-badge {
  background: #111827;
  border-radius: 0;
}

/* ==================
   STYLE 4: Glassmorphism
   ================== */
.style-glass {
  padding: 20px;
}
.style-glass .rme-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}
.style-glass .rme-card:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* ==================
   STYLE 5: Magazine Cover
   ================== */
.style-magazine .rme-card {
  border-radius: 12px;
}
.style-magazine .rme-media img {
  height: 350px;
}
.style-magazine .rme-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  padding: 40px 24px 24px 24px;
  justify-content: flex-end;
}
.style-magazine .rme-title, 
.style-magazine .rme-meta-item {
  color: #fff;
}
.style-magazine .rme-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  margin: 0;
}

/* ==================
   STYLE 6: Creative Offset
   ================== */
.style-offset {
  padding-top: 30px;
}
.style-offset .rme-card {
  overflow: visible;
  background: transparent;
}
.style-offset .rme-media {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}
.style-offset .rme-content {
  background: #fff;
  margin-top: -30px;
  margin-left: 20px;
  margin-right: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  position: relative;
  z-index: 3;
}

/* ==================
   STYLE 7: Conference Ticket
   ================== */
.style-ticket .rme-card {
  background: #fff;
  border-radius: 16px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08));
  overflow: visible;
  position: relative;
  border: 1px dashed #d1d5db;
}
.style-ticket .rme-card::before,
.style-ticket .rme-card::after {
  content: '';
  position: absolute;
  top: 150px; /* SeparaciÃƒÂ³n entre media y content */
  width: 30px;
  height: 30px;
  background: #f9fafb; /* Color del body general, el usuario podrÃƒÂ­a querer ajustarlo */
  border-radius: 50%;
  z-index: 5;
}
.style-ticket .rme-card::before {
  left: -15px;
}
.style-ticket .rme-card::after {
  right: -15px;
}
.style-ticket .rme-media img {
  height: 150px;
  border-radius: 16px 16px 0 0;
}
.style-ticket .rme-content {
  border-top: 2px dashed #e5e7eb;
}


/* ==========================================
   Feature Cards Widget (Servicios)
   ========================================== */
.roma-feature-cards-wrapper {
  width: 100%;
}

.roma-feature-cards-grid {
  display: grid;
  gap: 20px;
}

.rfc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  height: 100%;
}
.rfc-card-link {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* ==================
   STYLE 1: Split Classic (Screenshot Match)
   ================== */
.style-classic .rfc-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
}
.style-classic .rfc-header {
  background-color: var(--rfc-color);
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.style-classic .rfc-icon-wrap {
  margin-bottom: 15px;
}
.style-classic .rfc-icon-wrap i,
.style-classic .rfc-icon-wrap svg {
  font-size: 28px;
  width: 28px;
  height: 28px;
  color: #ffffff;
}
.style-classic .rfc-deco-circle {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  pointer-events: none;
}
.style-classic .rfc-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 2;
}
.style-classic .rfc-body {
  padding: 24px;
  background: #ffffff;
  flex-grow: 1;
}
.style-classic .rfc-desc {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
.style-classic .rfc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ==================
   STYLE 2: Gradient Float
   ================== */
.style-gradient .rfc-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden;
}
.style-gradient .rfc-header {
  background: linear-gradient(135deg, var(--rfc-color) 0%, rgba(255,255,255,0.2) 200%);
  background-color: var(--rfc-color);
  padding: 30px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.style-gradient .rfc-icon-wrap i,
.style-gradient .rfc-icon-wrap svg {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: #ffffff;
}
.style-gradient .rfc-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.style-gradient .rfc-deco-circle {
  display: none;
}
.style-gradient .rfc-body {
  padding: 24px;
}
.style-gradient .rfc-desc {
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}
.style-gradient .rfc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ==================
   STYLE 3: Minimal Outline
   ================== */
.style-minimal .rfc-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--rfc-color);
}
.style-minimal .rfc-header {
  padding: 24px 24px 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.style-minimal .rfc-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.style-minimal .rfc-icon-wrap i,
.style-minimal .rfc-icon-wrap svg {
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: var(--rfc-color);
}
.style-minimal .rfc-deco-circle { display: none; }
.style-minimal .rfc-title {
  color: #111827;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  padding-top: 10px;
}
.style-minimal .rfc-body {
  padding: 20px 24px 24px 24px;
}
.style-minimal .rfc-desc {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}
.style-minimal .rfc-card:hover {
  border-color: #d1d5db;
  border-top-color: var(--rfc-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* ==================
   STYLE 4: Dark Neo
   ================== */
.style-dark .rfc-card {
  background: #1f2937;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #374151;
}
.style-dark .rfc-header {
  background: var(--rfc-color);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}
.style-dark .rfc-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 50%;
  background: linear-gradient(to bottom, rgba(31,41,55,0) 0%, rgba(31,41,55,1) 100%);
}
.style-dark .rfc-icon-wrap, .style-dark .rfc-title {
  position: relative;
  z-index: 2;
}
.style-dark .rfc-icon-wrap i,
.style-dark .rfc-icon-wrap svg {
  font-size: 24px;
  width: 24px; height: 24px;
  color: #ffffff;
}
.style-dark .rfc-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}
.style-dark .rfc-deco-circle { display: none; }
.style-dark .rfc-body {
  padding: 20px 24px 24px 24px;
}
.style-dark .rfc-desc {
  color: #9ca3af;
  line-height: 1.5;
  margin: 0;
}
.style-dark .rfc-card:hover {
  border-color: var(--rfc-color);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* ==================
   STYLE 5: Overlap Glass
   ================== */
.style-overlap .rfc-card {
  background: transparent;
  padding-bottom: 20px;
}
.style-overlap .rfc-header {
  background: var(--rfc-color);
  border-radius: 16px;
  padding: 24px 24px 60px 24px; /* extra bottom padding */
  display: flex;
  flex-direction: column;
  position: relative;
}
.style-overlap .rfc-icon-wrap {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 15px;
  backdrop-filter: blur(4px);
}
.style-overlap .rfc-icon-wrap i,
.style-overlap .rfc-icon-wrap svg {
  font-size: 18px; width: 18px; height: 18px; color: #fff;
}
.style-overlap .rfc-deco-circle { display: none; }
.style-overlap .rfc-title {
  color: #fff;
  font-size: 1.25rem; font-weight: 700; margin: 0;
}
.style-overlap .rfc-body {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  margin: -40px 15px 0 15px; /* Overlap */
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.5);
  flex-grow: 1;
}
.style-overlap .rfc-desc {
  color: #4b5563;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.style-overlap .rfc-card:hover .rfc-body {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* Responsive */
@media (max-width: 767px) {
  .roma-feature-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-color-scheme: dark) {


  /* Modern Events Dark Mode */
  .roma-auto-dark-mode.roma-modern-events-wrapper .rme-card:not(.style-saas):not(.style-magazine):not(.style-glass) {
    background: #1f2937 !important;
    border-color: #374151 !important;
  }
  .roma-auto-dark-mode.roma-modern-events-wrapper .rme-title:not(.style-magazine) {
    color: #f9fafb !important;
  }
  .roma-auto-dark-mode.roma-modern-events-wrapper .rme-meta-item:not(.style-magazine) {
    color: #9ca3af !important;
  }
  .roma-auto-dark-mode.roma-modern-events-wrapper.style-offset .rme-content {
    background: #1f2937 !important;
  }
  .roma-auto-dark-mode.roma-modern-events-wrapper.style-ticket .rme-card {
    background: #1f2937 !important;
  }
  .roma-auto-dark-mode.roma-modern-events-wrapper.style-ticket .rme-card::before,
  .roma-auto-dark-mode.roma-modern-events-wrapper.style-ticket .rme-card::after {
    background: #111827 !important; /* asumiendo fondo dark */
  }


  /* Advanced Hero */
  .roma-auto-dark-mode.roma-adv-hero:not(.style-neobrutalism):not(.style-glass) {
    background-color: #111827 !important;
  }
  .roma-auto-dark-mode.roma-adv-hero:not(.style-neobrutalism):not(.style-glass) .roma-adv-hero-title {
    color: #f9fafb !important;
  }
  .roma-auto-dark-mode.roma-adv-hero:not(.style-neobrutalism):not(.style-glass) .roma-adv-hero-desc {
    color: #9ca3af !important;
  }
  .roma-auto-dark-mode.roma-adv-hero:not(.style-neobrutalism):not(.style-glass) .roma-adv-btn-secondary {
    color: #f9fafb !important;
    border-color: #4b5563 !important;
  }
  .roma-auto-dark-mode.roma-adv-hero:not(.style-neobrutalism):not(.style-glass) .roma-adv-btn-secondary:hover {
    background-color: #374151 !important;
    border-color: #374151 !important;
  }


  /* Pricing Table */
  .roma-auto-dark-mode.roma-pricing-table:not(.style-featured):not(.style-minimal) {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
  }
  .roma-auto-dark-mode.roma-pricing-table .roma-pt-title,
  .roma-auto-dark-mode.roma-pricing-table .roma-pt-currency,
  .roma-auto-dark-mode.roma-pricing-table .roma-pt-price {
    color: #f3f4f6 !important;
  }
  .roma-auto-dark-mode.roma-pricing-table .roma-pt-desc,
  .roma-auto-dark-mode.roma-pricing-table .roma-pt-period,
  .roma-auto-dark-mode.roma-pricing-table .roma-pt-text {
    color: #d1d5db !important;
  }
  .roma-auto-dark-mode.roma-pricing-table .roma-pt-price-wrap {
    border-bottom-color: #374151 !important;
  }
  .roma-auto-dark-mode.roma-pricing-table.style-horizontal .roma-pt-header,
  .roma-auto-dark-mode.roma-pricing-table.style-horizontal .roma-pt-price-wrap,
  .roma-auto-dark-mode.roma-pricing-table.style-horizontal .roma-pt-footer {
    border-color: #374151 !important;
  }
  .roma-auto-dark-mode.roma-pricing-table.style-glass {
    background: rgba(31, 41, 55, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

    .burbuja-auto-dark #burbuja-chat-menu { background: #1e1e1e !important; box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; }
    .burbuja-auto-dark .burbuja-greeting { background: #2d2d2d !important; color: #fff !important; }
    .burbuja-auto-dark .burbuja-greeting::before { border-bottom-color: #2d2d2d !important; }
    .burbuja-auto-dark .burbuja-option { background: #333 !important; color: #fff !important; border-color: transparent; }
    .burbuja-auto-dark .burbuja-model-outline .burbuja-option { background: transparent !important; border-color: var(--burbuja-main) !important; color: #fff !important;}
    .burbuja-auto-dark .burbuja-desc { color: #aaa !important; }
    .burbuja-auto-dark .burbuja-form-group label { color: #fff; }
    .burbuja-auto-dark .burbuja-form-group input, .burbuja-auto-dark .burbuja-form-group textarea { background: #2d2d2d; color: #fff; border-color: #444; }
}

/* RESPONSIVIDAD Y MÃƒâ€œVIL TIPO APP (Bottom Sheet) */
@media (max-width: 768px) {
    .burbuja-show-desktop { display: none !important; }
    .burbuja-show-mobile { display: flex !important; }
}
@media (max-width: 480px) {
    #burbuja-chat-container { bottom: 0 !important; right: 0 !important; left: 0 !important; width: 100%; align-items: center; justify-content: flex-end; }
    #burbuja-chat-menu { 
        width: 100vw; 
        max-height: 85vh; 
        margin-bottom: 0; 
        border-radius: 24px 24px 0 0; 
        box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    }
    
    .burbuja-toggle-wrapper {
        position: absolute;
        bottom: 20px;
        right: 20px;
        z-index: 10;
    }
    
    #burbuja-chat-container.burbuja-pos-left .burbuja-toggle-wrapper { right: auto; left: 20px; }
    
    /* Ocultar el botÃƒÂ³n flotante en mÃƒÂ³vil cuando el menÃƒÂº estÃƒÂ¡ abierto */
    #burbuja-chat-container.burbuja-is-open .burbuja-toggle-wrapper {
        display: none !important;
    }
    
    .burbuja-tooltip { display: none; }
}

/* ==========================================
   Modern Blog Entries Widget
   ========================================== */

/* Base Grid */
.roma-modern-blog-grid {
  display: grid;
  gap: 30px;
}
.roma-modern-blog-list-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Base Item Properties */
.roma-mb-item {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.roma-mb-title {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
.roma-mb-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}
.roma-mb-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.roma-mb-excerpt {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}
.roma-mb-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.3s ease;
}
.roma-mb-read-more:hover {
  color: #2563eb;
}

/* Style 1: App Card */
.roma-mb-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}
.roma-mb-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.roma-mb-card-img {
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  overflow: hidden;
}
.roma-mb-card-img a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.roma-mb-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.roma-mb-card:hover .roma-mb-card-img img {
  transform: scale(1.05);
}
.roma-mb-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Style 2: List */
.roma-mb-list-item {
  display: flex;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.roma-mb-list-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
.roma-mb-list-img {
  width: 30%;
  min-width: 200px;
  position: relative;
  overflow: hidden;
}
.roma-mb-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
}
.roma-mb-list-content {
  padding: 24px;
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 768px) {
  .roma-mb-list-item {
    flex-direction: column;
  }
  .roma-mb-list-img {
    width: 100%;
    padding-top: 56.25%;
  }
  .roma-mb-list-content {
    width: 100%;
  }
}

/* Style 3: Overlay */
.roma-modern-blog-overlay-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.roma-mb-overlay-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
}
.roma-mb-bg-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: 1;
}
.roma-mb-overlay-item:hover .roma-mb-bg-img {
  transform: scale(1.08);
}
.roma-mb-overlay-gradient {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  z-index: 2;
}
.roma-mb-overlay-content {
  position: relative;
  z-index: 3;
  padding: 30px;
  width: 100%;
}
.roma-mb-overlay-item .roma-mb-title, 
.roma-mb-overlay-item .roma-mb-title a {
  color: #ffffff;
}
.roma-mb-overlay-item .roma-mb-meta {
  color: rgba(255, 255, 255, 0.8);
}
.roma-mb-overlay-item .roma-mb-excerpt {
  color: rgba(255, 255, 255, 0.9);
}
.roma-mb-full-link {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 10;
}

/* Style 4: Minimal */
.roma-mb-minimal-item {
  background: transparent;
}
.roma-mb-minimal-img {
  width: 100%;
  padding-top: 60%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.roma-mb-minimal-img img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.roma-mb-minimal-item:hover .roma-mb-minimal-img img {
  transform: scale(1.03);
}
.roma-mb-minimal-content {
  padding: 0;
}
.roma-mb-minimal-item .roma-mb-title {
  font-size: 1.5rem;
}

/* Style 5: Magazine */
.roma-modern-blog-magazine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.roma-mb-mag-featured {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}
.roma-mb-mag-featured .roma-mb-bg-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: 1;
}
.roma-mb-mag-featured:hover .roma-mb-bg-img {
  transform: scale(1.05);
}
.roma-mb-mag-featured .roma-mb-mag-content {
  position: relative;
  z-index: 3;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  width: 100%;
}
.roma-mb-mag-featured .roma-mb-title,
.roma-mb-mag-featured .roma-mb-title a,
.roma-mb-mag-featured .roma-mb-meta {
  color: #fff;
}
.roma-mb-mag-featured .roma-mb-title {
  font-size: 1.8rem;
}

.roma-mb-mag-small {
  display: flex;
  gap: 15px;
}
.roma-mb-mag-small .roma-mb-mag-img {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.roma-mb-mag-small .roma-mb-mag-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.roma-mb-mag-small .roma-mb-title {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .roma-modern-blog-magazine {
    grid-template-columns: 1fr;
  }
  .roma-mb-mag-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}


/* ==========================================
   Bottom Nav Widget
   ========================================== */
.roma-auto-dark-mode.roma-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9999;
  padding-bottom: env(safe-area-inset-bottom);
}
.roma-auto-dark-mode.roma-bottom-nav-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 60px;
}
.roma-auto-dark-mode.roma-auto-dark-mode .roma-bottom-nav-item {
  flex: 1;
  text-align: center;
  color: #6b7280;
}
.roma-auto-dark-mode.roma-auto-dark-mode .roma-bottom-nav-item.active {
  color: #3b82f6;
}
.roma-auto-dark-mode.roma-bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  font-size: 0.75rem;
  height: 100%;
}
.roma-auto-dark-mode.roma-bottom-nav-icon {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.roma-auto-dark-mode.roma-bottom-nav-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
@media (min-width: 769px) {
  .roma-auto-dark-mode.roma-bottom-nav {
    display: none;
  }
}

/* ==========================================
   Masonry Gallery Widget
   ========================================== */
.roma-masonry-wrapper {
  width: 100%;
}
.roma-masonry-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.roma-filter-btn {
  background: transparent;
  border: 2px solid #e5e7eb;
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #4b5563;
}
.roma-filter-btn:hover, .roma-filter-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
.roma-masonry-grid {
  /* Requires JS Isotope for precise positioning, but provide flex fallback */
  display: flex;
  flex-wrap: wrap;
}
.roma-masonry-sizer {
  width: 33.33%; /* Default, overwritten by Elementor CSS */
}
.roma-masonry-item {
  box-sizing: border-box;
}
.roma-masonry-inner {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 0; /* Padding is added to item */
}
.roma-masonry-inner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.roma-masonry-inner:hover img {
  transform: scale(1.05);
}
.roma-masonry-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.roma-masonry-inner:hover .roma-masonry-overlay {
  opacity: 1;
}
.roma-masonry-overlay h4 {
  color: #fff;
  margin: 0;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.roma-masonry-inner:hover .roma-masonry-overlay h4 {
  transform: translateY(0);
}

/* ==========================================
   Custom Cursor
   ========================================== */
#roma-custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 99999;
}
.roma-cursor-dot {
  position: absolute;
  top: 0; left: 0;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  background-color: #f43f5e;
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.1s;
}
.roma-cursor-outline {
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 2px solid #f43f5e;
  border-radius: 50%;
  pointer-events: none;
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease;
}
#roma-custom-cursor.roma-cursor-hover .roma-cursor-outline {
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  background-color: rgba(244, 63, 94, 0.1);
  border-color: transparent;
}

/* ==========================================
   Dark Mode Auto-Switch (prefers-color-scheme)
   ========================================== */










/* Category Badge */
.roma-mb-img-top, .roma-mb-card-img, .roma-mb-list-img {
    position: relative;
}
.roma-mb-cat-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4c4c;
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Style 4: Neumorphism */
.roma-mb-neumorphism {
    background: #e0e5ec;
    border-radius: 20px;
    box-shadow: 9px 9px 16px rgb(163,177,198,0.6), -9px -9px 16px rgba(255,255,255, 0.5);
    transition: all 0.3s ease;
    overflow: hidden;
}
.roma-mb-neumorphism:hover {
    box-shadow: inset 6px 6px 10px 0 rgba(163,177,198, 0.5), inset -6px -6px 10px 0 rgba(255,255,255, 0.5);
}
.roma-mb-neumorphism .roma-mb-img-top img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Style 5: Glassmorphism */
.roma-mb-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    overflow: hidden;
}
.roma-mb-glass .roma-mb-img-top img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.roma-auto-dark-mode .roma-mb-glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Style 6: Elegant */
.roma-mb-elegant {
    background: #fff;
    border-radius: 12px;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}
.roma-mb-elegant:hover {
    border-bottom-color: #ff4c4c;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.roma-mb-elegant .roma-mb-img-top img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.roma-auto-dark-mode .roma-mb-elegant {
    background: #1a1a1a;
}

/* Style 7: Floating 3D */
.roma-mb-floating {
    background: #fff;
    border-radius: 24px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}
.roma-mb-floating:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}
.roma-mb-floating .roma-mb-img-top img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.roma-mb-floating:hover .roma-mb-img-top img {
    transform: scale(1.05);
}
.roma-auto-dark-mode .roma-mb-floating {
    background: #111;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Content spacing for new styles */
.roma-mb-neumorphism .roma-mb-content-wrap,
.roma-mb-glass .roma-mb-content-wrap,
.roma-mb-elegant .roma-mb-content-wrap,
.roma-mb-floating .roma-mb-content-wrap {
    padding: 25px;
}
/* ==========================================================================
   WIDGET: SOCIAL SHARE
   ========================================================================== */
.roma-social-share-wrap {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}
.roma-social-share-title {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}
.roma-social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.roma-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    color: #fff;
}
.roma-share-btn i {
    pointer-events: none;
}

/* Brand Colors */
.roma-share-fb { background-color: #1877F2; color: #fff; }
.roma-share-tw { background-color: #000000; color: #fff; }
.roma-share-in { background-color: #0A66C2; color: #fff; }
.roma-share-wa { background-color: #25D366; color: #fff; }
.roma-share-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; }
.roma-share-tk { background-color: #000000; color: #fff; }
.roma-share-yt { background-color: #FF0000; color: #fff; }
.roma-native-share-btn { background-color: #6c757d; color: #fff; }

/* STYLE 1: Minimal Line */
.roma-ss-style-minimal-line .roma-share-btn {
    background: transparent !important;
    border: 1px solid #ddd;
    color: #555 !important;
}
.roma-ss-style-minimal-line .roma-share-fb:hover { border-color: #1877F2; color: #1877F2 !important; }
.roma-ss-style-minimal-line .roma-share-tw:hover { border-color: #000; color: #000 !important; }
.roma-ss-style-minimal-line .roma-share-in:hover { border-color: #0A66C2; color: #0A66C2 !important; }
.roma-ss-style-minimal-line .roma-share-wa:hover { border-color: #25D366; color: #25D366 !important; }
.roma-ss-style-minimal-line .roma-share-ig:hover { border-color: #dc2743; color: #dc2743 !important; }
.roma-ss-style-minimal-line .roma-share-tk:hover { border-color: #000; color: #000 !important; }
.roma-ss-style-minimal-line .roma-share-yt:hover { border-color: #FF0000; color: #FF0000 !important; }
.roma-ss-style-minimal-line .roma-native-share-btn:hover { border-color: #6c757d; color: #6c757d !important; }

/* STYLE 2: Solid Brand */
.roma-ss-style-solid-brand .roma-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* STYLE 3: Neumorphism */
.roma-ss-style-neumorphism .roma-share-btn {
    background: #e0e5ec !important;
    color: #a3b1c6 !important;
    box-shadow: 9px 9px 16px rgb(163,177,198,0.6), -9px -9px 16px rgba(255,255,255, 0.5);
}
.roma-ss-style-neumorphism .roma-share-btn:hover {
    box-shadow: inset 6px 6px 10px 0 rgba(163,177,198, 0.6), inset -6px -6px 10px 0 rgba(255,255,255, 0.5);
}
.roma-ss-style-neumorphism .roma-share-fb:hover { color: #1877F2 !important; }
.roma-ss-style-neumorphism .roma-share-tw:hover { color: #000 !important; }
.roma-ss-style-neumorphism .roma-share-in:hover { color: #0A66C2 !important; }
.roma-ss-style-neumorphism .roma-share-wa:hover { color: #25D366 !important; }
.roma-ss-style-neumorphism .roma-share-ig:hover { color: #dc2743 !important; }
.roma-ss-style-neumorphism .roma-share-tk:hover { color: #000 !important; }
.roma-ss-style-neumorphism .roma-share-yt:hover { color: #FF0000 !important; }

/* STYLE 4: Glassmorphism */
.roma-ss-style-glassmorphism {
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* STYLE 5: Floating Action */
.roma-ss-floating {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    z-index: 999;
}
.roma-ss-floating .roma-social-share-title {
    display: none;
}
.roma-ss-floating .roma-social-share-buttons {
    flex-direction: column;
}
.roma-ss-floating .roma-share-btn {
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* STYLE 6: Dark Hover */
.roma-ss-style-dark-hover .roma-share-btn {
    background: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #eaeaea;
}
.roma-ss-style-dark-hover .roma-share-btn:hover {
    background: #222 !important;
    color: #fff !important;
    border-color: #222;
    transform: translateY(-2px);
}

/* STYLE 7: Gradient Glow */
.roma-ss-style-gradient-glow .roma-share-fb { box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4); }
.roma-ss-style-gradient-glow .roma-share-tw { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); }
.roma-ss-style-gradient-glow .roma-share-in { box-shadow: 0 4px 15px rgba(10, 102, 194, 0.4); }
}
/* ==========================================================================
   WIDGET: SOCIAL SHARE
   ========================================================================== */
.roma-social-share-wrap {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}
.roma-social-share-title {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}
.roma-social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.roma-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    color: #fff;
}
.roma-share-btn i {
    pointer-events: none;
}

/* Brand Colors */
.roma-share-fb { background-color: #1877F2; color: #fff; }
.roma-share-tw { background-color: #000000; color: #fff; }
.roma-share-in { background-color: #0A66C2; color: #fff; }
.roma-share-wa { background-color: #25D366; color: #fff; }
.roma-share-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; }
.roma-share-tk { background-color: #000000; color: #fff; }
.roma-share-yt { background-color: #FF0000; color: #fff; }
.roma-native-share-btn { background-color: #6c757d; color: #fff; }

/* STYLE 1: Minimal Line */
.roma-ss-style-minimal-line .roma-share-btn {
    background: transparent !important;
    border: 1px solid #ddd;
    color: #555 !important;
}
.roma-ss-style-minimal-line .roma-share-fb:hover { border-color: #1877F2; color: #1877F2 !important; }
.roma-ss-style-minimal-line .roma-share-tw:hover { border-color: #000; color: #000 !important; }
.roma-ss-style-minimal-line .roma-share-in:hover { border-color: #0A66C2; color: #0A66C2 !important; }
.roma-ss-style-minimal-line .roma-share-wa:hover { border-color: #25D366; color: #25D366 !important; }
.roma-ss-style-minimal-line .roma-share-ig:hover { border-color: #dc2743; color: #dc2743 !important; }
.roma-ss-style-minimal-line .roma-share-tk:hover { border-color: #000; color: #000 !important; }
.roma-ss-style-minimal-line .roma-share-yt:hover { border-color: #FF0000; color: #FF0000 !important; }
.roma-ss-style-minimal-line .roma-native-share-btn:hover { border-color: #6c757d; color: #6c757d !important; }

/* STYLE 2: Solid Brand */
.roma-ss-style-solid-brand .roma-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* STYLE 3: Neumorphism */
.roma-ss-style-neumorphism .roma-share-btn {
    background: #e0e5ec !important;
    color: #a3b1c6 !important;
    box-shadow: 9px 9px 16px rgb(163,177,198,0.6), -9px -9px 16px rgba(255,255,255, 0.5);
}
.roma-ss-style-neumorphism .roma-share-btn:hover {
    box-shadow: inset 6px 6px 10px 0 rgba(163,177,198, 0.6), inset -6px -6px 10px 0 rgba(255,255,255, 0.5);
}
.roma-ss-style-neumorphism .roma-share-fb:hover { color: #1877F2 !important; }
.roma-ss-style-neumorphism .roma-share-tw:hover { color: #000 !important; }
.roma-ss-style-neumorphism .roma-share-in:hover { color: #0A66C2 !important; }
.roma-ss-style-neumorphism .roma-share-wa:hover { color: #25D366 !important; }
.roma-ss-style-neumorphism .roma-share-ig:hover { color: #dc2743 !important; }
.roma-ss-style-neumorphism .roma-share-tk:hover { color: #000 !important; }
.roma-ss-style-neumorphism .roma-share-yt:hover { color: #FF0000 !important; }

/* STYLE 4: Glassmorphism */
.roma-ss-style-glassmorphism {
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* STYLE 5: Floating Action */
.roma-ss-floating {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    z-index: 999;
}
.roma-ss-floating .roma-social-share-title {
    display: none;
}
.roma-ss-floating .roma-social-share-buttons {
    flex-direction: column;
}
.roma-ss-floating .roma-share-btn {
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* STYLE 6: Dark Hover */
.roma-ss-style-dark-hover .roma-share-btn {
    background: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #eaeaea;
}
.roma-ss-style-dark-hover .roma-share-btn:hover {
    background: #222 !important;
    color: #fff !important;
    border-color: #222;
    transform: translateY(-2px);
}

/* STYLE 7: Gradient Glow */
.roma-ss-style-gradient-glow .roma-share-fb { box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4); }
.roma-ss-style-gradient-glow .roma-share-tw { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); }
.roma-ss-style-gradient-glow .roma-share-in { box-shadow: 0 4px 15px rgba(10, 102, 194, 0.4); }
.roma-ss-style-gradient-glow .roma-share-wa { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
.roma-ss-style-gradient-glow .roma-share-ig { box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4); }
.roma-ss-style-gradient-glow .roma-share-tk { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); }
.roma-ss-style-gradient-glow .roma-share-yt { box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4); }
.roma-ss-style-gradient-glow .roma-native-share-btn { box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4); }
.roma-ss-style-gradient-glow .roma-share-btn:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   WIDGET: PERFIL EN CARD (PROFILE CARD)
   ========================================================================== */

.roma-profile-card-wrapper {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	position: relative;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
}

/* ---- MAIN CARD BASE ---- */
.roma-pc-main {
	background: #ffffff;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	position: relative;
	transition: all 0.3s ease;
}

/* Dark Theme Main Card */
.roma-profile-card-wrapper.theme-dark .roma-pc-main {
	background: #1e1e1e;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	color: #ffffff;
}

/* Auto Theme Main Card (prefers-color-scheme) */
@media (prefers-color-scheme: dark) {
	.roma-profile-card-wrapper.theme-auto .roma-pc-main {
		background: #1e1e1e;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
		color: #ffffff;
	}
}

/* ---- LAYOUT 1: CLASSIC (Img 1) ---- */
.roma-profile-card-wrapper.style-classic .roma-pc-header {
	height: 140px;
	background-size: cover;
	background-position: center;
	position: relative;
}

.roma-profile-card-wrapper.style-classic .roma-pc-avatar-wrap {
	margin-top: -50px;
	margin-left: 24px;
	position: relative;
	z-index: 2;
}

.roma-profile-card-wrapper.style-classic .roma-pc-avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	border: 4px solid #ffffff;
	object-fit: cover;
	background: #fff;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.theme-dark .roma-profile-card-wrapper.style-classic .roma-pc-avatar { border-color: #1e1e1e; }
@media (prefers-color-scheme: dark) {
	.theme-auto .roma-profile-card-wrapper.style-classic .roma-pc-avatar { border-color: #1e1e1e; }
}

.roma-profile-card-wrapper.style-classic .roma-pc-body {
	padding: 16px 0 0 0;
}

.roma-profile-card-wrapper.style-classic .roma-pc-info {
	padding: 0 24px 20px;
}

.roma-profile-card-wrapper.style-classic .roma-pc-stats {
	display: flex;
	border-top: 1px solid #f3f4f6;
	border-bottom: 1px solid #f3f4f6;
}

.theme-dark .roma-profile-card-wrapper.style-classic .roma-pc-stats { border-color: #333; }
@media (prefers-color-scheme: dark) { .theme-auto .roma-profile-card-wrapper.style-classic .roma-pc-stats { border-color: #333; } }

.roma-profile-card-wrapper.style-classic .roma-pc-stat-item {
	flex: 1;
	text-align: center;
	padding: 16px;
	border-right: 1px solid #f3f4f6;
}

.theme-dark .roma-profile-card-wrapper.style-classic .roma-pc-stat-item { border-right-color: #333; }
@media (prefers-color-scheme: dark) { .theme-auto .roma-profile-card-wrapper.style-classic .roma-pc-stat-item { border-right-color: #333; } }

.roma-profile-card-wrapper.style-classic .roma-pc-stat-item:last-child { border-right: none; }

.roma-profile-card-wrapper.style-classic .roma-pc-actions {
	padding: 16px 24px;
	display: flex;
	justify-content: space-around;
	align-items: center;
}

/* ---- LAYOUT 2: PORTRAIT (Img 2 & 3) ---- */
.roma-profile-card-wrapper.style-portrait .roma-pc-main {
	padding: 8px;
}

.roma-profile-card-wrapper.style-portrait .roma-pc-cover-portrait {
	width: 100%;
	height: 300px;
	border-radius: 18px;
	overflow: hidden;
	position: relative;
}

.roma-profile-card-wrapper.style-portrait .roma-pc-cover-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.roma-profile-card-wrapper.style-portrait .roma-pc-body {
	padding: 20px 16px 12px;
}

.roma-profile-card-wrapper.style-portrait .roma-pc-info {
	margin-bottom: 20px;
}

.roma-profile-card-wrapper.style-portrait .roma-pc-stats {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.roma-profile-card-wrapper.style-portrait .roma-pc-stat-item {
	flex: 1;
	text-align: center;
	border-right: 1px solid #e5e7eb;
}

.theme-dark .roma-profile-card-wrapper.style-portrait .roma-pc-stat-item { border-right-color: #444; }
@media (prefers-color-scheme: dark) { .theme-auto .roma-profile-card-wrapper.style-portrait .roma-pc-stat-item { border-right-color: #444; } }

.roma-profile-card-wrapper.style-portrait .roma-pc-stat-item:last-child { border-right: none; }

/* ---- TYPOGRAPHY & ELEMENTS ---- */
.roma-pc-name {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #111827;
	display: flex;
	align-items: center;
	gap: 6px;
	letter-spacing: -0.5px;
}

.theme-dark .roma-pc-name { color: #ffffff; }
@media (prefers-color-scheme: dark) { .theme-auto .roma-pc-name { color: #ffffff; } }

.roma-pc-verified {
	color: #3b82f6;
	display: inline-flex;
}

.roma-pc-verified .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	background: #3b82f6;
	color: #fff;
	border-radius: 50%;
	padding: 2px;
}

.roma-pc-bio {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
}

.theme-dark .roma-pc-bio { color: #9ca3af; }
@media (prefers-color-scheme: dark) { .theme-auto .roma-pc-bio { color: #9ca3af; } }

.roma-pc-stat-val {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #111827;
}

.theme-dark .roma-pc-stat-val { color: #ffffff; }
@media (prefers-color-scheme: dark) { .theme-auto .roma-pc-stat-val { color: #ffffff; } }

.roma-pc-stat-lbl {
	display: block;
	font-size: 12px;
	color: #6b7280;
	margin-top: 4px;
}

.theme-dark .roma-pc-stat-lbl { color: #9ca3af; }
@media (prefers-color-scheme: dark) { .theme-auto .roma-pc-stat-lbl { color: #9ca3af; } }

/* ---- BUTTONS ---- */
.roma-pc-top-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: none;
	border-radius: 20px;
	cursor: pointer;
	color: #111827;
	font-weight: 600;
	font-size: 13px;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.roma-pc-btn-follow {
	padding: 8px 16px;
	gap: 4px;
}

.roma-pc-btn-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
}

.roma-pc-top-btn:hover {
	transform: scale(1.05);
	background: #fff;
}
.roma-pc-btn-icon:hover { background: rgba(0,0,0,0.6); color: #fff; }

.roma-pc-btn-main {
	width: 100%;
	padding: 14px;
	background: #111827;
	color: #ffffff;
	border: none;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background 0.2s, transform 0.2s;
}

.roma-pc-btn-main:hover {
	background: #000000;
	transform: translateY(-2px);
}

.theme-dark .roma-pc-btn-main { background: #ffffff; color: #111827; }
.theme-dark .roma-pc-btn-main:hover { background: #f3f4f6; }
@media (prefers-color-scheme: dark) {
	.theme-auto .roma-pc-btn-main { background: #ffffff; color: #111827; }
	.theme-auto .roma-pc-btn-main:hover { background: #f3f4f6; }
}

.roma-pc-social-row {
	display: flex;
	gap: 12px;
	justify-content: center;
	width: 100%;
}

.roma-pc-icon-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: #374151;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
}

.roma-pc-icon-btn:hover {
	transform: scale(1.1);
	color: #111827;
}

.theme-dark .roma-pc-icon-btn { color: #d1d5db; }
.theme-dark .roma-pc-icon-btn:hover { color: #fff; }
@media (prefers-color-scheme: dark) {
	.theme-auto .roma-pc-icon-btn { color: #d1d5db; }
	.theme-auto .roma-pc-icon-btn:hover { color: #fff; }
}

/* ---- QR OVERLAY ---- */
.roma-pc-qr-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,0.95);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	border-radius: inherit;
}

.theme-dark .roma-pc-qr-overlay { background: rgba(30,30,30,0.95); }
@media (prefers-color-scheme: dark) { .theme-auto .roma-pc-qr-overlay { background: rgba(30,30,30,0.95); } }

.roma-pc-qr-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.roma-pc-qr-content {
	text-align: center;
	position: relative;
	padding: 20px;
}

.roma-pc-qr-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #6b7280;
	cursor: pointer;
	padding: 4px;
}

.roma-pc-qr-content h4 {
	margin: 0 0 16px;
	font-size: 16px;
	color: #111827;
}

.theme-dark .roma-pc-qr-content h4 { color: #fff; }
@media (prefers-color-scheme: dark) { .theme-auto .roma-pc-qr-content h4 { color: #fff; } }

.roma-pc-qr-img {
	width: 150px;
	height: 150px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	background: #fff;
	padding: 8px;
}

/* ==========================================================================
   ACCORDION / MORE INFO (Inline Expandable)
   ========================================================================== */
.roma-pc-expandable-content {
	border-top: 1px solid #f3f4f6;
	background: #fafafa;
}

.theme-dark .roma-pc-expandable-content { border-top-color: #333; background: #1a1a1a; }
@media (prefers-color-scheme: dark) {
	.theme-auto .roma-pc-expandable-content { border-top-color: #333; background: #1a1a1a; }
}

.roma-pc-expandable-inner {
	padding: 24px;
}

.roma-pc-quote {
	font-size: 15px;
	line-height: 1.5;
	font-style: italic;
	color: #4b5563;
	margin-bottom: 24px;
	text-align: center;
}

.theme-dark .roma-pc-quote { color: #9ca3af; }
@media (prefers-color-scheme: dark) { .theme-auto .roma-pc-quote { color: #9ca3af; } }

.roma-pc-extra-stats {
	display: flex;
	gap: 16px;
	margin-bottom: 24px;
	justify-content: center;
}

.roma-pc-extra-stats .roma-pc-stat-item {
	text-align: center;
	border: none;
	padding: 0;
}

.roma-pc-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
	justify-content: center;
}

.roma-pc-tag {
	background: #e5e7eb;
	color: #374151;
	padding: 4px 12px;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 600;
}

.theme-dark .roma-pc-tag { background: #374151; color: #d1d5db; }
@media (prefers-color-scheme: dark) { .theme-auto .roma-pc-tag { background: #374151; color: #d1d5db; } }

.roma-pc-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 24px;
}

.roma-pc-gallery-grid .roma-pc-gallery-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	background-size: cover;
	background-position: center;
	border-radius: 8px;
}

.roma-pc-review {
	display: flex;
	gap: 12px;
	background: #fff;
	padding: 16px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.theme-dark .roma-pc-review { background: #222; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
@media (prefers-color-scheme: dark) { .theme-auto .roma-pc-review { background: #222; box-shadow: 0 2px 8px rgba(0,0,0,0.2); } }

.roma-pc-review-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.roma-pc-review-content p {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.4;
	color: #4b5563;
}

.theme-dark .roma-pc-review-content p { color: #d1d5db; }
@media (prefers-color-scheme: dark) { .theme-auto .roma-pc-review-content p { color: #d1d5db; } }

.roma-pc-review-content strong {
	display: block;
	font-size: 13px;
	color: #111827;
}

.theme-dark .roma-pc-review-content strong { color: #fff; }
@media (prefers-color-scheme: dark) { .theme-auto .roma-pc-review-content strong { color: #fff; } }

/* ==========================================================================
   PROJECTS SHOWCASE WIDGET
   ========================================================================== */
.roma-projects-showcase {
	position: relative;
	width: 100%;
}
.roma-projects-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
	justify-content: center;
}
.roma-filter-btn {
	background: transparent;
	border: 1px solid #e5e7eb;
	padding: 8px 16px;
	border-radius: 20px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s;
}
.roma-filter-btn.active, .roma-filter-btn:hover {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

.roma-projects-swiper {
	width: 100%;
	overflow: hidden;
	position: relative;
	padding-bottom: 50px;
}
.roma-projects-swiper .swiper-pagination {
	bottom: 0;
}
.roma-projects-swiper .swiper-button-next,
.roma-projects-swiper .swiper-button-prev {
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
}
.roma-project-card.swiper-slide {
	height: auto;
	display: flex;
}

.roma-projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

/* Card General */
.roma-project-card {
	position: relative;
	transition: all 0.4s ease;
}
.roma-project-card.roma-hidden {
	display: none;
}
.roma-pc-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.roma-pc-media {
	position: relative;
	aspect-ratio: 4/3;
	overflow: hidden;
}
.roma-pc-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}
.roma-project-card:hover .roma-pc-img {
	transform: scale(1.05);
}
.roma-pc-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.3s;
	z-index: 2;
}
.roma-project-card:hover .roma-pc-video {
	opacity: 1;
}

/* Mini Gallery inside card */
.roma-pc-mini-gallery {
	width: 100%;
	height: 100%;
}
.roma-pc-mini-gallery .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Badge */
.roma-pc-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	background: #3b82f6;
	color: #fff;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	z-index: 3;
}

/* Overlay & Quick View */
.roma-pc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s;
	z-index: 4;
}
.roma-project-card:hover .roma-pc-overlay {
	opacity: 1;
}
.roma-pc-quick-view {
	background: #fff;
	color: #111827;
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transform: translateY(20px);
	transition: all 0.3s;
}
.roma-project-card:hover .roma-pc-quick-view {
	transform: translateY(0);
}

/* Content */
.roma-pc-content {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.roma-pc-category {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.roma-pc-title {
	font-size: 20px;
	margin: 0 0 10px;
	color: #111827;
}
.roma-pc-title a {
	color: inherit;
	text-decoration: none;
}
.roma-pc-desc {
	font-size: 15px;
	color: #4b5563;
	margin: 0;
	line-height: 1.5;
}

/* Staggered Reveal */
.roma-staggered-reveal .roma-project-item {
	animation: romaFadeUp 0.6s ease forwards;
	opacity: 0;
	transform: translateY(30px);
}
@keyframes romaFadeUp {
	to { opacity: 1; transform: translateY(0); }
}

/* Modal */
.roma-project-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}
.roma-project-modal.active {
	opacity: 1;
	pointer-events: auto;
}
.roma-pm-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.8);
	backdrop-filter: blur(5px);
}
.roma-pm-content {
	position: relative;
	background: #fff;
	border-radius: 20px;
	width: 90%;
	max-width: 800px;
	display: flex;
	overflow: hidden;
	z-index: 2;
	transform: scale(0.95);
	transition: transform 0.3s;
}
.roma-project-modal.active .roma-pm-content {
	transform: scale(1);
}
.roma-pm-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: #f3f4f6;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}
.roma-pm-body {
	display: flex;
	width: 100%;
}
.roma-pm-img {
	width: 50%;
	object-fit: cover;
}
.roma-pm-info {
	width: 50%;
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.roma-pm-cat {
	color: #3b82f6;
	font-weight: 700;
	margin-bottom: 10px;
}
.roma-pm-title {
	font-size: 28px;
	margin: 0 0 20px;
}

@media (max-width: 768px) {
	.roma-pm-body { flex-direction: column; }
	.roma-pm-img, .roma-pm-info { width: 100%; }
	.roma-pm-img { height: 250px; }
}

/* 5 Styles Customizations */
/* Style 2: Glassmorphism */
.roma-projects-showcase.style-2 .roma-pc-inner {
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.5);
}

/* Style 3: Overlay */
.roma-projects-showcase.style-3 .roma-pc-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
	color: #fff;
	z-index: 3;
}
.roma-projects-showcase.style-3 .roma-pc-title, 
.roma-projects-showcase.style-3 .roma-pc-category, 
.roma-projects-showcase.style-3 .roma-pc-desc {
	color: #fff;
}
.roma-projects-showcase.style-3 .roma-pc-media { aspect-ratio: 3/4; }

/* Style 4: App Card */
.roma-projects-showcase.style-4 .roma-pc-inner {
	border-radius: 24px;
	padding: 10px;
	background: #f9fafb;
}
.roma-projects-showcase.style-4 .roma-pc-media { border-radius: 16px; }

/* Style 5: Neo Brutalism */
.roma-projects-showcase.style-5 .roma-pc-inner {
	border: 3px solid #000;
	box-shadow: 6px 6px 0px #000;
	border-radius: 0;
}
.roma-projects-showcase.style-5 .roma-pc-media { border-bottom: 3px solid #000; }
.roma-projects-showcase.style-5 .roma-pc-badge {
	border: 2px solid #000;
	border-radius: 0;
	background: #fff;
	color: #000;
	box-shadow: 2px 2px 0px #000;
}
