/* ===== Hosting, Data Center, and Device Animations ===== */

/* --- Server Rack Widget (dashboard-style) --- */
.server-rack {
  background: rgba(30, 35, 45, 0.9);
  border-radius: 1rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(76, 86, 106, 0.6);
  position: relative;
}

.server-rack:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.4);
}

.server-rack:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(76, 86, 106, 0.2) 0%, rgba(30, 35, 45, 0) 100%);
  pointer-events: none;
}

.server-rack-header {
  background: rgba(25, 30, 40, 0.7);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(76, 86, 106, 0.4);
  position: relative;
  z-index: 1;
}

.server-rack-title { color: #fff; font-size: 1.1rem; font-weight: 600; }
.server-status { font-size: 0.9rem; color: #ddd; }
.status-online { color: #16A34A; font-weight: 600; position: relative; padding-left: 15px; }
.status-online:before {
  content: '';
  position: absolute;
  width: 8px; height: 8px; background: #16A34A; border-radius: 50%; left: 0; top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.6);
  animation: pulse 1.5s infinite;
}

.server-rack-body { padding: 1.5rem; color: #ddd; }
.server-unit {
  background: rgba(40, 45, 55, 0.7);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(76, 86, 106, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.server-unit:hover { transform: translateX(5px); background: rgba(50, 55, 65, 0.7); border-color: rgba(76, 86, 106, 0.8); }
.server-unit:before { content: ''; position: absolute; width: 4px; height: 100%; background: linear-gradient(to bottom, var(--primary) 0%, var(--secondary) 100%); left: 0; top: 0; }

.server-unit-front { padding: 1rem; display: flex; flex-direction: column; }
.server-leds { display: flex; gap: 8px; margin-bottom: 8px; }
.server-led { width: 10px; height: 10px; border-radius: 50%; }
.server-led-green { background-color: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
.server-led-blue { background-color: #4dabf7; box-shadow: 0 0 8px rgba(77, 171, 247, 0.6); }
.blink-slow { animation: blink 2s infinite; }

/* Faster blink utility used across hosting widgets */
.blink { animation: blink 1s infinite; }

.server-name { font-weight: 600; color: #fff; margin-bottom: 8px; font-size: 1.05rem; display: flex; }
.server-details { display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 0.9rem; color: #aaa; }
.server-stat { margin-right: 12px; }
.server-stat .stat-value { color: #4dabf7; font-weight: 500; }

.server-metrics { margin-top: 1.5rem; background: rgba(30, 35, 45, 0.7); border-radius: 0.5rem; padding: 1rem; border: 1px solid rgba(76, 86, 106, 0.4); }
.server-metric { margin-bottom: 1rem; }
.server-metric:last-child { margin-bottom: 0; }
.metric-label { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.9rem; }
.metric-value { color: #4ade80; font-weight: 600; }
.metric-bar { height: 8px; background: rgba(76, 86, 106, 0.3); border-radius: 4px; overflow: hidden; }
.metric-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%); border-radius: 4px; }

/* Server processing highlight and stat update flash */
.server-processing { box-shadow: 0 0 25px rgba(59, 130, 246, 0.5); }
.stat-update { animation: stat-flash 0.5s ease; }

/* --- Data Center Visualization --- */
.data-center-visualiz.plan-details-extra {
  background-color: #f8f9fa; /* Light background for the expanded area */
  border-radius: 0 0 20px 20px; /* Match the card's bottom corners */
  padding: 20px 25px;
  margin: -20px auto 0;
  width: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(230, 230, 240, 1);
  position: relative;
}

.data-center-visualization {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  width: 100%;
  max-width: 550px;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(230, 230, 240, 1);
  position: relative;
}
.data-center-visualization:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2); }

.data-center-header {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  color: white;
}
.data-center-title { color: #fff; font-size: 1.1rem; font-weight: 600; }
.data-center-status { font-size: 0.9rem; color: #fff; }

.data-center-content { position: relative; width: 100%; height: calc(100% - 50px); padding: 0; overflow: hidden; background: linear-gradient(135deg, rgba(245, 247, 250, 0.8) 0%, rgba(240, 242, 245, 0.9) 100%); }

/* Nodes */
.node-container { position: relative; width: 100%; height: 100%; padding: 1rem; }
.node {
  position: absolute; width: 40px; height: 40px; border-radius: 50%; background: white; border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 2; animation: pulse 2s infinite; box-shadow: 0 5px 15px rgba(24, 74, 154, 0.2);
}
.node::before { content: attr(data-label); position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 0.7rem; color: #4a5568; font-weight: 600; white-space: nowrap; }
.node-light { width: 12px; height: 12px; border-radius: 50%; background-color: var(--primary); box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5); animation: blink 1.5s infinite alternate; }

.node-server { top: 15%; left: 20%; animation-delay: 0.2s; border-color: #16A34A; }
.node-server .node-light { background-color: #16A34A; box-shadow: 0 0 10px rgba(22, 163, 74, 0.6); }
.node-database { top: 35%; left: 75%; animation-delay: 0.5s; border-color: #EA580C; }
.node-database .node-light { background-color: #EA580C; box-shadow: 0 0 10px rgba(234, 88, 12, 0.6); }
.node-security { top: 65%; left: 65%; animation-delay: 0.7s; border-color: #DC2626; }
.node-security .node-light { background-color: #DC2626; box-shadow: 0 0 10px rgba(220, 38, 38, 0.6); }
.node-storage { top: 75%; left: 20%; animation-delay: 0.3s; border-color: #2563EB; }
.node-storage .node-light { background-color: #2563EB; box-shadow: 0 0 10px rgba(37, 99, 235, 0.6); }
.node-backup { top: 45%; left: 40%; animation-delay: 0.8s; border-color: #9333EA; }
.node-backup .node-light { background-color: #9333EA; box-shadow: 0 0 10px rgba(147, 51, 234, 0.6); }
.node-main { top: 25%; left: 50%; transform: translateX(-50%); animation-delay: 0s; width: 45px; height: 45px; border-color: #0284C7; }
.node-main .node-light { width: 15px; height: 15px; background-color: #0284C7; box-shadow: 0 0 15px rgba(2, 132, 199, 0.6); }
.node-network { top: 55%; left: 15%; animation-delay: 0.6s; border-color: #0369A1; }
.node-cdn { top: 20%; left: 80%; animation-delay: 0.4s; border-color: #0891B2; }

/* Connections */
.connection { position: absolute; height: 2px; background: rgba(148, 163, 184, 0.3); transform-origin: left center; z-index: 1; }
.connection::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background-color: var(--primary); right: -3px; top: -2px; animation: data-flow 4s infinite linear; }
.connection-1 { width: 30%; top: 28%; left: 22%; transform: rotate(30deg); animation-delay: 0.2s; }
.connection-1::after { background-color: #16A34A; }
.connection-2 { width: 25%; top: 36%; left: 55%; transform: rotate(15deg); animation-delay: 0.4s; }
.connection-2::after { background-color: #EA580C; }
.connection-3 { width: 22%; top: 48%; left: 45%; transform: rotate(100deg); animation-delay: 0.6s; }
.connection-3::after { background-color: #9333EA; }
.connection-4 { width: 35%; top: 60%; left: 38%; transform: rotate(-30deg); animation-delay: 0.8s; }
.connection-4::after { background-color: #DC2626; }
.connection-5 { width: 30%; top: 35%; left: 30%; transform: rotate(-50deg); animation-delay: 1s; }
.connection-5::after { background-color: #0369A1; }
.connection-6 { width: 20%; top: 55%; left: 70%; transform: rotate(60deg); animation-delay: 1.2s; }
.connection-6::after { background-color: #0891B2; }
.connection-7 { width: 25%; top: 22%; left: 60%; transform: rotate(10deg); animation-delay: 1.4s; }
.connection-7::after { background-color: #2563EB; }

/* Floating data blocks and metrics */
.data-block {
  position: absolute; background: white; border-radius: 8px; padding: 0.5rem 0.7rem; font-size: 0.8rem; color: #1e293b;
  animation: float 6s infinite ease-in-out; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); z-index: 3; border-left: 3px solid var(--primary);
}
.data-label { font-size: 0.7rem; color: #64748b; margin-bottom: 0.2rem; font-weight: 500; }
.data-value { color: #0f172a; font-weight: 600; }
.performance-metrics { position: absolute; bottom: 0; left: 0; width: 100%; background: white; padding: 0.8rem; display: flex; justify-content: space-between; border-top: 1px solid rgba(226, 232, 240, 1); z-index: 4; }
.metric { flex: 1; margin: 0 0.4rem; }
.metric-label { font-size: 0.75rem; color: #64748b; margin-bottom: 0.3rem; font-weight: 500; }
.metric-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-bottom: 0.3rem; }
.metric-fill { height: 100%; border-radius: 3px; }
.metric:nth-child(1) .metric-fill { background: linear-gradient(90deg, #16A34A, #22c55e); }
.metric:nth-child(2) .metric-fill { background: linear-gradient(90deg, #0891B2, #06b6d4); }
.metric:nth-child(3) .metric-fill { background: linear-gradient(90deg, #9333EA, #a855f7); }
.metric-value { font-size: 0.75rem; color: #334155; text-align: right; font-weight: 600; }

/* Tooltip */
.node-tooltip {
  position: absolute; background: white; border-radius: 8px; padding: 1rem; width: 160px; top: -120px; left: 50%; transform: translateX(-50%);
  z-index: 10; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); pointer-events: none; border-top: 3px solid #0284C7;
}
.node-tooltip::after {
  content: ''; position: absolute; width: 12px; height: 12px; background: white; bottom: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  border-bottom: 1px solid rgba(226, 232, 240, 1); border-right: 1px solid rgba(226, 232, 240, 1);
}
.tooltip-title { color: #0284C7; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; text-align: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.4rem; }
.tooltip-stat { color: #334155; font-size: 0.8rem; margin-bottom: 0.3rem; display: flex; justify-content: space-between; }
.tooltip-stat:last-child { margin-bottom: 0; }

/* Data transfer highlight */
.data-transfer { background: rgba(14, 165, 233, 0.3); box-shadow: 0 0 8px rgba(14, 165, 233, 0.4); transition: all 0.3s ease; }
.data-transfer::after { background-color: #0284C7; box-shadow: 0 0 10px rgba(2, 132, 199, 0.8); animation-duration: 1s !important; }

/* --- Hosting Animation (3D racks + cloud + devices) --- */
.hosting-animation { position: relative; width: 100%; max-width: 550px; aspect-ratio: 4/3; margin: 0 auto; perspective: 1000px; transform-style: preserve-3d; }

/* Servers group */
.server-racks { position: absolute; left: 50%; transform: translateX(-50%) translateZ(0); bottom: 30%; display: flex; justify-content: center; gap: 20px; z-index: 10; }
.hosting-animation .server-rack { width: 80px; height: 140px; background: linear-gradient(315deg, #1e293b 0%, #0f172a 100%); border-radius: 10px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1); position: relative; overflow: hidden; transform: perspective(1000px) rotateX(10deg); animation: server-float 4s infinite ease-in-out; }
.hosting-animation .server-rack:nth-child(1) { animation-delay: 0s; }
.hosting-animation .server-rack:nth-child(2) { animation-delay: 0.5s; transform: perspective(1000px) rotateX(10deg) scale(1.05); }
.hosting-animation .server-rack:nth-child(3) { animation-delay: 1s; }
.hosting-animation .server-rack::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(0deg, transparent, transparent 15px, rgba(255, 255, 255, 0.05) 15px, rgba(255, 255, 255, 0.05) 18px); pointer-events: none; }
.server-light { position: absolute; top: 10px; left: 10px; width: 8px; height: 8px; border-radius: 50%; background-color: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.7); animation: server-light-blink 2s infinite; }
.hosting-animation .server-rack:nth-child(1) .server-light { animation-delay: 0.5s; }
.hosting-animation .server-rack:nth-child(2) .server-light { animation-delay: 0s; background-color: #184a9a; box-shadow: 0 0 10px rgba(24, 74, 154, 0.7); }
.hosting-animation .server-rack:nth-child(3) .server-light { animation-delay: 1.5s; background-color: #ec4899; box-shadow: 0 0 10px rgba(236, 72, 153, 0.7); }
.server-detail { position: absolute; bottom: 15px; left: 0; width: 100%; display: flex; justify-content: center; }
.server-status { font-size: 0.65rem; color: #a5f3fc; background: rgba(6, 182, 212, 0.2); padding: 2px 8px; border-radius: 10px; }

/* Cloud connection */
.cloud-connection { position: absolute; top: 10%; left: 50%; transform: translateX(-50%); z-index: 20; }
.cloud { width: 120px; height: 60px; background: linear-gradient(45deg, #f0f9ff 0%, #e1f5fe 100%); border-radius: 30px; position: relative; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); animation: cloud-float 5s infinite ease-in-out; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 50px; height: 50px; top: -25px; left: 25px; }
.cloud::after { width: 40px; height: 40px; top: -15px; right: 20px; }
.connection-path { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); width: 2px; height: 100px; background: linear-gradient(to bottom, rgba(24, 74, 154, 0.8), rgba(24, 74, 154, 0.1)); z-index: -1; }
.connection-path::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background-color: #184a9a; box-shadow: 0 0 10px rgba(24, 74, 154, 0.7); animation: connection-pulse 2s infinite; }

/* Devices */
.devices { position: absolute; width: 75%; left: 50%; transform: translateX(-50%); bottom: 5%; display: flex; justify-content: space-around; align-items: flex-end; z-index: 1; }
.device-wrapper { display: flex; align-items: flex-end; height: 120px; }
.device { background: #334155; border-radius: 8px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); position: relative; transform: scale(0.8); margin-bottom: 0; }
.device-laptop { width: 120px; height: 80px; border-radius: 8px 8px 0 0; position: relative; transform-origin: bottom center; animation: device-float 6s infinite ease-in-out; margin-bottom: 0; }
.device-laptop::after { content: ''; position: absolute; bottom: -8px; left: -10px; width: 140px; height: 8px; background: #1e293b; border-radius: 0 0 4px 4px; }
.device-mobile { width: 40px; height: 70px; border-radius: 5px; animation: device-float 6s infinite ease-in-out; animation-delay: 1s; margin-bottom: 0; }
.device-tablet { width: 70px; height: 90px; border-radius: 5px; animation: device-float 6s infinite ease-in-out; animation-delay: 2s; margin-bottom: 0; }

.device-screen { position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px; border-radius: 3px; overflow: hidden; }
.device-screen::before { content: ''; position: absolute; width: 100%; height: 100%; background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%); animation: screen-shine 4s infinite; }

/* Variantes de pantalla para dispositivos (reemplazo de estilos inline en index.html) */
.device-screen--v1 { background: linear-gradient(135deg, rgb(26, 42, 230) 0%, rgb(121, 26, 230) 100%); }
.device-screen--v2 { background: linear-gradient(135deg, rgb(26, 93, 230) 0%, rgb(104, 26, 230) 100%); }
.device-screen--v3 { background: linear-gradient(135deg, rgb(26, 66, 230) 0%, rgb(117, 26, 230) 100%); }

/* Stats overlay */
.stats-overlay { position: absolute; top: 5%; right: 5%; display: flex; flex-direction: column; gap: 15px; z-index: 30; }
.stat-box { background: rgba(255, 255, 255, 0.95); border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); padding: 10px 15px; display: flex; align-items: center; gap: 10px; animation: stat-box-appear 0.5s ease-out forwards; opacity: 0; transform: translateX(20px); }
.uptime { animation-delay: 0.2s; }
.security { animation-delay: 0.4s; }
.speed { animation-delay: 0.6s; }
.stat-icon { font-size: 1.2rem; }
.stat-info { display: flex; flex-direction: column; }
.stat-value { font-weight: 700; color: #0f172a; font-size: 0.9rem; }
.stat-label { font-size: 0.65rem; color: #64748b; }

/* Visual features (shield, interface) */
.visual-features { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; z-index: 20; }
.feature-element { position: absolute; animation: feature-appear 1s ease-out forwards; opacity: 0; }

/* Shield */
.shield-element { bottom: 25%; left: 15%; animation-delay: 0.4s; }
.shield { position: relative; width: 40px; height: 50px; animation: shield-pulse 2s infinite ease-in-out; }
.shield-front { position: absolute; width: 40px; height: 50px; background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%); border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4); }
.shield-light { position: absolute; width: 30px; height: 40px; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 70%); left: 5px; top: 5px; }
.shield-scan { position: absolute; width: 40px; height: 5px; background: rgba(255, 255, 255, 0.6); top: 0; animation: shield-scan 1.5s infinite; }

/* Interface icon */
.simplicity-element { top: 35%; left: 25%; animation-delay: 0.6s; }
.interface-icon { position: relative; width: 45px; height: 45px; animation: interface-rotate 8s infinite linear; }
.interface-circle { position: absolute; width: 45px; height: 45px; border: 3px solid #8b5cf6; border-radius: 50%; box-shadow: 0 0 10px rgba(139, 92, 246, 0.4); }
.interface-line { position: absolute; height: 3px; background: #8b5cf6; border-radius: 3px; transform-origin: center; top: 50%; left: 50%; }
.line1 { width: 30px; transform: translate(-50%, -50%) rotate(0deg); animation: line-pulse 2.5s infinite alternate; }
.line2 { width: 20px; transform: translate(-50%, -50%) rotate(60deg); animation: line-pulse 2.5s infinite alternate 1s; }
.line3 { width: 25px; transform: translate(-50%, -50%) rotate(-60deg); animation: line-pulse 2.5s infinite alternate 2s; }

/* --- Keyframes --- */
@keyframes data-flow { 0% { transform: translateX(-200%); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(0%); opacity: 0; } }
@keyframes server-float { 0%, 100% { transform: perspective(1000px) rotateX(10deg) translateY(0); } 50% { transform: perspective(1000px) rotateX(10deg) translateY(-10px); } }
@keyframes server-light-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes float-cpanel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes connection-pulse { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } 50% { transform: translateX(-50%) scale(1.5); opacity: 0.5; } }
@keyframes device-float { 0%, 100% { transform: translateY(0) scale(0.8); } 50% { transform: translateY(-5px) scale(0.8); } }
@keyframes screen-shine { 0% { transform: translateX(-100%) translateY(-100%); } 50%, 100% { transform: translateX(100%) translateY(100%); } }
@keyframes stat-box-appear { 0% { opacity: 0; transform: translateX(20px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes shield-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes shield-scan { 0% { top: 0; opacity: 0.8; } 100% { top: 50px; opacity: 0; } }
@keyframes interface-rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes line-pulse { 0% { opacity: 0.5; width: 20px; } 100% { opacity: 1; width: 30px; } }

/* Shared keyframes */
@keyframes blink { 50% { opacity: 0; } }
@keyframes stat-flash { 0% { color: #3b82f6; transform: scale(1.1); } 100% { color: inherit; transform: scale(1); } }
@keyframes data-packet-travel { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Responsive adjustments for mobile */
@media (max-width: 991.98px) {
  .cloud-connection {
    top: 0; /* Mantiene la nube arriba */
  }

  .server-racks {
    bottom: 20%; /* Baja aún más los servidores */
  }

  .devices {
    bottom: -15%; /* Baja aún más los dispositivos */
  }
}

/* ===== MODERN HOSTING DESIGN CSS ===== */
/* Variables CSS para colores y efectos mejorados */
:root {
  --primary-blue: #2563EB;
  --primary-blue-light: #3B82F6;
  --primary-blue-dark: #1D4ED8;
  --accent-green: #059669;
  --accent-orange: #EA580C;
  --accent-purple: #7C3AED;
  --background-light: #F8FAFC;
  --background-white: #FFFFFF;
  --text-dark: #111827;
  --text-light: #FFFFFF;
  --text-muted: #6B7280;
  --border-light: #E5E7EB;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.main-content {
  padding-top: 0; /* Hero section handles its own spacing */
}

.container {
  max-width: 1200px;
}


/* Sección principal con fondo tecnológico */
.modern-hosting-section {
  position: relative;
  min-height: auto;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 30%, #e2e8f0 60%, #cbd5e1 100%);
  overflow: hidden;
  padding: 80px 0;
  margin-top: 0;
}

/* Patrón de puntos sutil y profesional - DESACTIVADO */
.modern-hosting-section::before {
  display: none !important;
}

/* Efecto de ondas sutiles - DESACTIVADO */
.modern-hosting-section::after {
  display: none !important;
}

/* Contenedor principal */
.modern-hosting-section .container {
  position: relative;
  z-index: 15;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(1px);
  border-radius: 20px;
  padding: 40px 20px;
}

/* Header de la sección */
.modern-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Navegación por pestañas de familias */
.hosting-families-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.family-tab {
  padding: 12px 24px;
  border: 2px solid var(--border-light);
  background: var(--background-white);
  color: var(--text-muted);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.family-tab:hover {
  border-color: var(--primary-blue-light);
  color: var(--primary-blue);
  transform: translateY(-2px);
  text-decoration: none;
}

.family-tab.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--text-light);
  box-shadow: var(--shadow-medium);
}

.family-tab.active:hover {
  color: var(--text-light);
}

/* Contenedor de contenido de pestañas */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modern-section-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.modern-section-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Toggle de facturación moderno */
.modern-billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}

.toggle-container {
  position: relative;
  background: var(--white);
  border-radius: 50px;
  padding: 6px;
  box-shadow: var(--shadow-light);
  border: 1px solid #E5E7EB;
}

.toggle-option {
  position: relative;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  color: var(--text-muted);
  z-index: 2;
}

.toggle-option.active {
  color: var(--white);
}

.toggle-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.toggle-slider.annual {
  transform: translateX(100%);
}

.savings-badge {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  animation: pulse-savings 2s infinite;
}

@keyframes pulse-savings {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Grid de planes */
.modern-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Tarjetas de precios - Exacto como en index */
.price-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  overflow: visible;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  perspective: 1000px;
  z-index: 1;
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  z-index: 20;
}

.recommended-plan {
  transform: scale(1);
  z-index: 10;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.recommended-plan > * {
  pointer-events: auto;
}

.recommended-plan:hover {
  transform: translateY(-8px) scale(1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

/* Badges de las tarjetas - Diseño original del index */
.card-badge {
  position: absolute;
  top: -15px;
  right: 15px;
  z-index: 10;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #dc3545;
  color: white;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
  border: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.card-badge.recommended {
  background: #dc3545;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

/* Header de la tarjeta - Exacto como en index */
.price-card-header {
  background: linear-gradient(135deg, #0f3b8f 0%, #0d6efd 100%);
  padding: 30px;
  color: white;
  text-align: center;
  position: relative;
  z-index: 5;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

/* ===== VARIACIONES POR FAMILIA ===== */

/* FAMILIA BÁSICOS - Variaciones de Azul */
.pricing-basic .price-card-header {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); /* Azul claro para primer plan */
}

.pricing-basic.recommended .price-card-header {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%); /* Azul medio para recomendado */
}

.pricing-basic.plan-advanced .price-card-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); /* Azul oscuro para tercer plan */
}

/* FAMILIA PREMIUM - Variaciones de Naranja */
.pricing-premium .price-card-header {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); /* Naranja claro para primer plan */
}

.pricing-premium.recommended .price-card-header {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%); /* Naranja/rojo medio para recomendado */
}

.pricing-premium.plan-advanced .price-card-header {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); /* Naranja/rojo oscuro para tercer plan */
}

/* FAMILIA EMPRESARIALES - Variaciones de Verde */
.pricing-enterprise .price-card-header {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); /* Verde claro para primer plan */
}

.pricing-enterprise.recommended .price-card-header {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); /* Verde medio para recomendado */
}

.pricing-enterprise.plan-advanced .price-card-header {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%); /* Verde oscuro para tercer plan */
}

/* FAMILIA RESELLER - Variaciones de Púrpura */
.pricing-reseller .price-card-header {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); /* Púrpura claro para primer plan */
}

.pricing-reseller.recommended .price-card-header {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); /* Púrpura medio para recomendado */
}

.pricing-reseller.plan-advanced .price-card-header {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%); /* Púrpura oscuro para tercer plan */
}

/* Títulos y precios - EXACTO como en index.html con mayor especificidad */
.price-title,
.price-card-header .price-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: white !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.price-subtitle,
.price-card-header .price-subtitle {
  font-size: 14px;
  opacity: 0.8;
  color: white !important;
  margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.price-amount,
.price-card-header .price-amount {
  margin-bottom: 15px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.currency,
.price-card-header .currency {
  font-size: 18px;
  vertical-align: top;
  margin-right: 2px;
  opacity: 0.9;
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.2);
}

.amount,
.price-card-header .amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.period,
.price-card-header .period {
  font-size: 16px;
  opacity: 0.9;
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.2);
}

/* Cuerpo de la tarjeta - Exacto como en index */
.price-card-body {
  padding: 30px;
  position: relative;
  z-index: 5;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateX(5px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  background: rgba(24, 74, 154, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  font-size: 18px;
  color: #184a9a;
  transition: all 0.3s ease;
}

/* Íconos por familia - con variaciones sutiles */

/* BÁSICOS - Íconos azules */
.pricing-basic .feature-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.pricing-basic.recommended .feature-icon {
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
}

.pricing-basic.plan-advanced .feature-icon {
  background: rgba(30, 58, 138, 0.1);
  color: #1e3a8a;
}

/* PREMIUM - Íconos naranjas */
.pricing-premium .feature-icon {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.pricing-premium.recommended .feature-icon {
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
}

.pricing-premium.plan-advanced .feature-icon {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

/* EMPRESARIALES - Íconos verdes */
.pricing-enterprise .feature-icon {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.pricing-enterprise.recommended .feature-icon {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.pricing-enterprise.plan-advanced .feature-icon {
  background: rgba(21, 128, 61, 0.1);
  color: #15803d;
}

/* RESELLER - Íconos púrpuras */
.pricing-reseller .feature-icon {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.pricing-reseller.recommended .feature-icon {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.pricing-reseller.plan-advanced .feature-icon {
  background: rgba(109, 40, 217, 0.1);
  color: #6d28d9;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-text {
  flex: 1;
}

.feature-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #212529;
}

.feature-desc {
  display: block;
  font-size: 13px;
  color: #6c757d;
  margin-top: 3px;
}

/* Botones de las tarjetas - Exacto como en index */
.btn-price {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f3b8f 0%, #0d6efd 100%);
  color: white;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 12px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

/* Variaciones de botones por familia */

/* BÁSICOS - Botones azules */
.pricing-basic .btn-price {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.pricing-basic.recommended .btn-price {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.pricing-basic.plan-advanced .btn-price {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

/* PREMIUM - Botones naranjas */
.pricing-premium .btn-price {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.pricing-premium.recommended .btn-price {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
}

.pricing-premium.plan-advanced .btn-price {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* EMPRESARIALES - Botones verdes */
.pricing-enterprise .btn-price {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.pricing-enterprise.recommended .btn-price {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.pricing-enterprise.plan-advanced .btn-price {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
}

/* RESELLER - Botones púrpuras */
.pricing-reseller .btn-price {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.pricing-reseller.recommended .btn-price {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.pricing-reseller.plan-advanced .btn-price {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
}

/* Efectos hover para cada familia */
.pricing-basic .btn-price:hover {
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
}

.pricing-premium .btn-price:hover {
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.3);
}

.pricing-enterprise .btn-price:hover {
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.3);
}

.pricing-reseller .btn-price:hover {
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.3);
}

.btn-price:hover {
  transform: translateY(-5px);
  color: white;
  text-decoration: none;
}

.btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-content span {
  margin-right: 10px;
}

.btn-content i {
  transition: transform 0.3s ease;
}

.btn-price:hover .btn-content i {
  transform: translateX(5px);
}







/* Líneas de código simuladas */
.code-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg width='300' height='200' viewBox='0 0 300 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%233B82F6' stroke-width='1' stroke-opacity='0.05' fill='none'%3E%3Cpath d='M20 40L80 40M100 40L180 40M200 40L260 40'/%3E%3Cpath d='M40 60L60 60M80 60L140 60M160 60L220 60'/%3E%3Cpath d='M20 80L100 80M120 80L200 80M220 80L280 80'/%3E%3Cpath d='M60 100L120 100M140 100L180 100M200 100L240 100'/%3E%3Cpath d='M20 120L70 120M90 120L160 120M180 120L260 120'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 200px;
  animation: codeScroll 25s linear infinite;
}

@keyframes codeScroll {
  0% { background-position: 0 0; }
  100% { background-position: 300px 200px; }
}

/* Efectos de pulso en las tarjetas */
.price-card {
  position: relative;
}

.price-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.price-card:hover::before {
  opacity: 1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* REGLAS MÁXIMA ESPECIFICIDAD PARA SOBRESCRIBIR pricing-styles.css */
body .modern-hosting-section .price-card .price-card-header .price-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  margin-bottom: 15px !important;
  color: white !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

body .modern-hosting-section .price-card .price-card-header .amount {
  font-size: 42px !important;
  font-weight: 800 !important;
  letter-spacing: -1px !important;
  line-height: 1 !important;
  color: white !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

body .modern-hosting-section .price-card .price-card-header .currency {
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-right: 2px !important;
  color: white !important;
  opacity: 0.9 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

body .modern-hosting-section .price-card .price-card-header .period {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: white !important;
  opacity: 0.9 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

body .modern-hosting-section .price-card .price-card-header .price-subtitle {
  font-size: 14px !important;
  color: white !important;
  opacity: 0.8 !important;
  margin-bottom: 0 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

/* Padding exacto como en el index */
body .modern-hosting-section .price-card .price-card-header {
  padding: 30px !important;
  text-align: center !important;
}

/* Animaciones tecnológicas */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes hexMove {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-50px) translateY(-43.3px); }
}

@keyframes circuitFlow {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-100px) translateY(-100px); }
}

@keyframes dataFlow {
  0% { 
    transform: translateX(-100px) translateY(-100px);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { 
    transform: translateX(100vw) translateY(100px);
    opacity: 0;
  }
}



/* Responsive design */
@media (max-width: 768px) {
  .modern-hosting-section {
    padding: 60px 0;
  }
  
  .modern-hosting-section .container {
    padding: 20px 15px;
  }
  
  .modern-section-title {
    font-size: 2.5rem;
  }
  
  .modern-section-subtitle {
    font-size: 1.1rem;
  }
  
  .hosting-families-nav {
    gap: 0.25rem;
  }
  
  .family-tab {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  
  .modern-plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .recommended-plan {
    transform: scale(1);
  }
  
  .recommended-plan:hover {
    transform: translateY(-8px);
  }
  
  .amount {
    font-size: 3rem;
  }
  
  .price-card-header,
  .price-card-body {
    padding: 1.5rem 1rem;
  }
  
  /* Reducir efectos en móviles para mejor rendimiento */
  .modern-hosting-section::before,
  .modern-hosting-section::after {
    animation-duration: 30s;
  }
  
  .code-lines {
    display: none;
  }
}

@media (max-width: 480px) {
  .modern-hosting-section {
    padding: 60px 0;
  }
  
  .modern-section-header {
    margin-bottom: 3rem;
  }
  
  .modern-section-title {
    font-size: 2rem;
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
  
  .modern-billing-toggle {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .toggle-container {
    width: 100%;
    max-width: 300px;
  }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modern-pricing-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.modern-pricing-card:nth-child(1) { animation-delay: 0.1s; }
.modern-pricing-card:nth-child(2) { animation-delay: 0.2s; }
.modern-pricing-card:nth-child(3) { animation-delay: 0.3s; }


/* Estilos para modo oscuro */
@media (prefers-color-scheme: dark) {
  .modern-pricing-card {
    background: #1F2937;
    border-color: #374151;
    color: #F9FAFB;
  }
  
  .feature-text {
    color: #F9FAFB;
  }
  
  .cta-button.secondary {
    background: #1F2937;
    color: var(--primary-blue-light);
    border-color: var(--primary-blue-light);
  }
}

/* --- Expandable Details --- */
.expand-details-trigger {
  padding: 15px 30px;
  margin-top: 20px;
  border-top: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
  z-index: 6;
}

.expand-details-trigger:hover {
  color: var(--primary-blue);
  background-color: #f8f9fa;
}

.expand-details-trigger .fa-chevron-down {
  transition: transform 0.3s ease;
}

.expand-details-trigger[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.plan-details-extra {
  padding: 20px 30px;
  background-color: #f8f9fa;
  border-top: 1px solid var(--border-light);
  margin: 0 0 -30px 0;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.plan-details-extra .feature-item {
  margin-bottom: 15px;
}

.plan-details-extra .feature-item:last-child {
  margin-bottom: 0;
}

/* Acelerar la animación de colapso de Bootstrap */
.collapsing {
  transition: height 0.2s ease !important;
}

/* ===== HOSTING FEATURES & PLAN COMPARISON SECTIONS ===== */

/* --- General Section Styling --- */
.hosting-features-section,
.plan-comparison-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hosting-features-section {
  background-color: #f8f9fa; /* Light gray background */
}

.plan-comparison-section {
  background-color: #ffffff; /* White background */
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark, #111827);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted, #6B7280);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Hosting Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--background-white, #fff);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid var(--border-light, #E5E7EB);
  box-shadow: var(--shadow-light, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium, 0 10px 25px -3px rgba(0, 0, 0, 0.1));
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-blue, #2563EB) 0%, var(--primary-blue-light, #3B82F6) 100%);
  color: var(--text-light, #fff);
  font-size: 2.5rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark, #111827);
  margin-bottom: 0.75rem;
}

.feature-description {
  font-size: 1rem;
  color: var(--text-muted, #6B7280);
  line-height: 1.6;
}

/* --- Plan Comparison Section --- */
.comparison-table-wrapper {
  overflow-x: auto;
  padding-bottom: 1rem; /* For scrollbar spacing */
  border: 1px solid var(--border-light, #E5E7EB);
  border-radius: 12px;
  box-shadow: var(--shadow-light, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

.comparison-table {
  width: 100%;
  min-width: 800px;
  border-collapse: separate; /* Use separate to allow for rounded corners */
  border-spacing: 0;
  text-align: center;
  font-size: 1rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-light, #E5E7EB);
  vertical-align: middle;
}

.comparison-table thead th {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark, #111827);
  border-bottom: 2px solid var(--border-color, #dee2e6);
  background-color: #f8f9fa;
}

.comparison-table thead th.plan-feature {
  text-align: left;
  border-top-left-radius: 12px;
}

.comparison-table thead th:last-child {
  border-top-right-radius: 12px;
}

/* Plan Column Backgrounds */
.comparison-table .plan-basic {
  background-color: rgba(37, 99, 235, 0.03);
}
.comparison-table .plan-premium {
  background-color: rgba(234, 88, 12, 0.05);
}
.comparison-table .plan-enterprise {
  background-color: rgba(5, 150, 105, 0.03);
}
.comparison-table .plan-reseller {
  background-color: rgba(124, 58, 237, 0.03);
}

/* Recommended Plan Highlighting */
.comparison-table .plan-recommended {
  border-left: 1px solid rgba(234, 88, 12, 0.2);
  border-right: 1px solid rgba(234, 88, 12, 0.2);
}

.comparison-table th.plan-recommended {
  background-color: var(--accent-orange, #EA580C);
  color: white;
  position: relative;
}

/* 'Recomendado' badge */
.comparison-table th.plan-recommended::after {
  content: 'RECOMENDADO';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-orange, #EA580C);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-dark, #111827);
  background-color: #fdfdff; /* Slightly off-white for feature column */
}

.comparison-table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.comparison-table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.comparison-table tr.plan-buttons td {
  border-bottom: none;
  padding-top: 2rem;
  background-color: transparent !important; /* Ensure button row cells have no background */
}

.comparison-table .fa-check {
  color: var(--accent-green, #059669);
  font-size: 1.5rem;
}

/* Plan-specific header text colors */
.comparison-table th.plan-basic {
  color: var(--primary-blue, #2563EB);
}
.comparison-table th.plan-enterprise {
  color: var(--accent-green, #059669);
}
.comparison-table th.plan-reseller {
  color: var(--accent-purple, #7C3AED);
}

/* Button styling in table */
.comparison-table .btn-price {
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  color: white;
}

.comparison-table .btn-price:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Plan-specific button colors */
.comparison-table .plan-basic .btn-price {
  background-color: var(--primary-blue, #2563EB);
}
.comparison-table .plan-basic .btn-price:hover {
  background-color: var(--primary-blue-dark, #1D4ED8);
}

.comparison-table .plan-premium .btn-price {
  background-color: var(--accent-orange, #EA580C);
}
.comparison-table .plan-premium .btn-price:hover {
  background-color: #c2410c; /* Darker orange */
}

.comparison-table .plan-enterprise .btn-price {
  background-color: var(--accent-green, #059669);
}
.comparison-table .plan-enterprise .btn-price:hover {
  background-color: #065f46; /* Darker green */
}

.comparison-table .plan-reseller .btn-price {
  background-color: var(--accent-purple, #7C3AED);
}
.comparison-table .plan-reseller .btn-price:hover {
  background-color: #6d28d9; /* Darker purple */
}

.comparison-table .btn-price.premium-btn {
  background-color: var(--accent-orange, #EA580C);
}
.comparison-table .btn-price.premium-btn:hover {
  background-color: #c2410c;
}

.comparison-table .btn-price.enterprise-btn {
  background-color: var(--accent-green, #059669);
}
.comparison-table .btn-price.enterprise-btn:hover {
  background-color: #065f46;
}

.comparison-table .btn-price.reseller-btn {
  background-color: var(--accent-purple, #7C3AED);
}
.comparison-table .btn-price.reseller-btn:hover {
  background-color: #6d28d9;
}
