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

body.menu-open {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #7b2929 #f5f5f5;
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: #f5f5f5;
}

html::-webkit-scrollbar-thumb {
  background: #7b2929;
  border-radius: 4px;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue",
    Arial, sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

:root {
  --primary: #7b2929;
  --primary-light: #a53535;
  --primary-dark: #5a1f1f;
  --background: #fafafa;
  --foreground: #1a1a1a;
  --muted: #f0f0f0;
  --muted-foreground: #666666;
  --border: #e5e5e5;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(123, 41, 41, 0.3);
  --radius: 0.75rem;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-moderno {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(33, 37, 41, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.header-moderno.scrolled {
  background: rgba(33, 37, 41, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-moderno {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo .logo-img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-logo .logo-img:hover {
  transform: scale(1.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #f8f9fa;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #7b2929;
  transition: width 0.3s ease;
}

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

.btn-login {
  background: transparent;
  color: white;
  border: 2px solid #7b2929;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: #7b2929;
  color: white;
  transform: translateY(-2px);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-mobile-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
  transform-origin: center;
}

@media (max-width: 767px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(123, 41, 41, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-mobile-toggle {
    display: flex;
    position: relative;
    z-index: 1110;
  }

  .nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-menu.active .nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.active .nav-item:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-menu.active .nav-item:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav-menu.active .nav-item:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-menu.active .nav-item:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-link {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    display: block;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
  }

  .nav-link::after {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
    margin-right: 1rem;
  }

  .btn-login {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

body {
  padding-top: 80px;
}

@media (max-width: 767px) {
  body {
    padding-top: 70px;
  }
}

.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(123, 41, 41, 0.9),
    rgba(26, 26, 26, 0.9)
  );
  margin-bottom: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
  transition: transform 20s ease-out;
}

.hero-section:hover .hero-bg-image {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(123, 41, 41, 0.7),
    rgba(26, 26, 26, 0.8)
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  color: white;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title .text-primary {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 680px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.main-content {
  padding: 4rem 0;
  background: var(--background);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.content-card {
  background: white;
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.content-header {
  text-align: center;
  margin-bottom: 3rem;
}

.content-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.content-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.content-body {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.content-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: var(--foreground);
}

.content-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.content-section ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.list-group {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
  list-style: none;
}

.content-note p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.content-note p:last-child {
  margin-bottom: 0;
}

.content-alert {
  background: rgba(123, 41, 41, 0.1);
  border-left: 4px solid #ff4646;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #7b2929;
}

.content-alert p {
  margin: 0;
  color: #7b2929;
}

.table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.content-table th {
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.content-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  line-height: 1.5;
}

.content-table tbody tr:hover {
  background: rgba(0, 127, 149, 0.02);
}

.content-table strong {
  color: var(--primary);
}

.content-update {
  text-align: right;
  color: var(--muted-foreground);
  font-style: italic;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.text-primary {
  color: var(--primary) !important;
}

.hero-section .text-primary {
  color: white !important;
}

/* ===== FOOTER MODERNO ===== */
.footer {
  background: var(--foreground);
  color: var(--background);
  padding: 4rem 1rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  transition: background var(--transition-base);
}

.footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: white;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copyright-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-logo-right {
  display: flex;
  align-items: center;
}

.footer-mtco-logo-small {
  height: 20px;
  width: auto;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-mtco-logo-small:hover {
  opacity: 1;
}

.mtco-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.mtco-link:hover {
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-logo-right {
    justify-content: center;
  }

  .footer-mtco-logo-small {
    height: 18px;
  }
}

@media (max-width: 479px) {
  .footer-copyright-text {
    font-size: 0.8rem;
  }

  .footer-mtco-logo-small {
    height: 16px;
  }
}

.floating-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition-base);
}

.floating-actions.hidden {
  transform: translateX(150%);
  opacity: 0;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.floating-btn-whatsapp {
  background: #25d366;
  animation: pulse-whatsapp 2s ease-in-out infinite;
}

.floating-btn-instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #f77737 100%);
  animation: pulse-instagram 2.5s ease-in-out infinite;
}

.floating-btn-youtube {
  background: #ff0000;
  animation: pulse-youtube 3s ease-in-out infinite;
}

@keyframes pulse-whatsapp {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.6);
  }
}

@keyframes pulse-instagram {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(131, 58, 180, 0.4);
  }

  50% {
    box-shadow: 0 8px 35px rgba(131, 58, 180, 0.6);
  }
}

@keyframes pulse-youtube {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(253, 29, 29, 0.4);
  }

  50% {
    box-shadow: 0 8px 35px rgba(253, 29, 29, 0.6);
  }
}

.floating-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

.back-to-top {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  text-decoration: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  50% {
    transform: translateY(-10px) translateX(-50%);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (max-width: 767px) {
  body {
    padding-top: 70px;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(33, 37, 41, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-mobile-toggle {
    display: flex;
    position: relative;
    z-index: 1110;
  }

  .nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-menu.active .nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.active .nav-item:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-menu.active .nav-item:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav-menu.active .nav-item:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-menu.active .nav-item:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-link {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    display: block;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .nav-link:hover {
    background: rgba(123, 41, 41, 0.2);
    transform: translateX(10px);
  }

  .nav-link::after {
    display: none;
  }

  .hero-section {
    min-height: 50vh;
  }

  .content-card {
    padding: 2rem 1.5rem;
  }

  .content-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-logo-right {
    justify-content: center;
  }

  .footer-mtco-logo-small {
    height: 18px;
  }

  .floating-actions {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    left: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (max-width: 479px) {
  .hero-section {
    min-height: 40vh;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .content-card {
    padding: 1.5rem 1rem;
  }

  .content-title {
    font-size: 1.5rem;
  }

  .footer-copyright-text {
    font-size: 0.8rem;
  }

  .footer-mtco-logo-small {
    height: 16px;
  }

  .table {
    font-size: 0.875rem;
  }

  .table th,
  .table td {
    padding: 0.75rem 0.5rem;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.menu-open {
  overflow: hidden;
}

.content-body,
.content-section,
.content-section * {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --primary: #000000;
    --background: #ffffff;
    --foreground: #000000;
    --border: #000000;
  }
}

.text-primary {
  color: var(--primary) !important;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-pulsing {
  animation: pulse 1.5s ease-in-out infinite;
  width: 150px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.vw-plugin-top-wrapper {
  z-index: 1060;
}

@media (max-width: 767px) {
  .vw-plugin-top-wrapper {
    bottom: 70px !important;
  }
}
