/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables */
:root {
  --color-primary: #1d3759;
  --color-secondary: #0d5794;
  --color-accent: #122673;
  --color-text: #333;
  --color-text-light: #777;
  --color-white: #fff;
  --color-bg-light: #f9f9f9;
  --color-border: #e1e1e1;
  --font-primary: "Arial", sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* Optimización de animaciones */
[data-aos] {
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  will-change: opacity, transform;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  will-change: transform;
}

.btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-more {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-more:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

/* Header Styles */
#header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  max-height: 60px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-primary);
  transition: var(--transition);
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.main-nav ul li a {
  padding: 10px;
  font-weight: 600;
  position: relative;
}

.main-nav ul li.active a {
  color: var(--color-secondary);
}

.main-nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 0.3s var(--ease-out);
}

.main-nav ul li a:hover::after,
.main-nav ul li.active a::after {
  width: 100%;
}

.menu-solucion {
  position: relative;
  display: inline-block;
}

.submenu-solucion {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  padding: 6px 0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out),
    visibility 0.25s;
  z-index: 1000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  will-change: opacity, transform;
}

.menu-solucion:hover .submenu-solucion {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.submenu-solucion::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 20px;
  border: 6px solid transparent;
  border-bottom-color: #fff;
}

.submenu-solucion li {
  display: block;
  width: 100%;
}

.submenu-solucion li a {
  display: block;
  padding: 10px 15px;
  font-size: 13px;
  color: #444;
  line-height: 1.3;
  transition: all 0.2s var(--ease-out);
  border-left: 2px solid transparent;
}

.submenu-solucion li:not(:last-child) a {
  border-bottom: 1px solid #f0f0f0;
}

.submenu-solucion li a:hover {
  background: #f4f9ec;
  color: #5a8f0c;
  border-left-color: #6ba80e;
  padding-left: 18px;
}

.submenu-solucion .titulo-seccion {
  padding: 6px 15px;
  font-size: 11px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid #e0e0e0;
  background-color: #fafafa;
}

.menu-productos {
  position: relative;
}

.submenu-productos {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  padding: 6px 0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s var(--ease-out);
  z-index: 999;
  display: flex;
  flex-direction: column;
}

.menu-productos:hover .submenu-productos {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-productos li {
  position: relative;
}

.submenu-productos li a {
  display: block;
  padding: 10px 15px;
  font-size: 13px;
  color: #444;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.submenu-productos li a:hover {
  background: #f4f9ec;
  color: #6ba80e;
}

.has-submenu:hover > .sub-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.sub-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  padding: 6px 0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.2s var(--ease-out);
  z-index: 1000;
}

.sub-submenu li a {
  padding: 8px 15px;
  font-size: 13px;
  color: #444;
  transition: all 0.2s var(--ease-out);
}

.sub-submenu li a:hover {
  background: #f0f8e2;
  color: #5a8f0c;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white); /* Color blanco para todo el texto */
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  object-fit: cover;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 31, 75, 0.3);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 31, 75, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px; /* Espaciado entre elementos */
}

/* Añadir estas reglas para los elementos internos */
.logo-text {
  width: 100%;
  animation: textReveal 1.2s var(--ease-out) both;
}

.logo-text img {
  max-width: 400px;
  height: auto;
  margin: 0 auto;
}

.hero-description p {
  font-weight: 600;
  font-size: 20px;
  color: var(--color-white); /* Color blanco */
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

.btn {
  margin-top: 20px;
  background-color: var(--color-secondary);
  border: 2px solid var(--color-white);
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--color-white);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* Mantener las animaciones existentes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes textReveal {
  from {
    opacity: 0;
    letter-spacing: 8px;
  }
  to {
    opacity: 1;
    letter-spacing: 2px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.logo-text h1 {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 25px;
  text-transform: uppercase;
  animation: textReveal 1.2s var(--ease-out) both;
}

@keyframes textReveal {
  from {
    opacity: 0;
    letter-spacing: 8px;
  }
  to {
    opacity: 1;
    letter-spacing: 2px;
  }
}

.logo-text span {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 1.5px;
}

.hero-content h2 {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.hero-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.btn {
  padding: 15px 45px;
  font-size: 1.1rem;
  border-radius: 30px;
  letter-spacing: 1px;
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
  background-color: #fff;
  text-align: center;
}

.stats-intro h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.stats-intro p {
  font-size: 1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.stat-box {
  padding: 20px;
  border-bottom: 2px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #1d3759;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-plus {
  font-size: 2rem;
  color: #ccc;
  margin-left: 8px;
  display: flex;
  align-items: center;
}

.icon-plus i {
  margin-left: 5px;
  font-size: 1.6rem;
}

.stat-box p {
  color: #888;
  font-size: 1rem;
  margin-top: 10px;
}

/* Boton stats */
.button-3d-container {
  display: flex;
  margin-top: 50px;
}

.btn-3d {
  position: relative;
  width: 180px;
  height: 50px;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.btn-3d:hover {
  transform: perspective(1000px) rotateX(360deg) scale(1.05);
}

.btn-3d span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: #9bcf35;
  font-family: var(--font-primary);
  font-size: 16px;
  letter-spacing: 1px;
  transition: transform 0.4s var(--ease-out), background 0.3s ease,
    color 0.3s ease;
  border: 2px solid #a7d34e;
  box-sizing: border-box;
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-3d:hover span {
  background: #86b82d;
}

.btn-3d span:nth-child(1) {
  transform: rotateX(360deg) translateZ(25px);
}
.btn-3d span:nth-child(2) {
  transform: rotateX(270deg) translateZ(25px);
}
.btn-3d span:nth-child(3) {
  transform: rotateX(180deg) translateZ(25px);
}
.btn-3d span:nth-child(4) {
  transform: rotateX(90deg) translateZ(25px);
}

/* Contacto Section */
.contacto-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.contacto-section h2 {
  text-align: center;
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 50px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.contacto-info h3 {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 30px;
}

.contacto-info ul li {
  display: flex;
  margin-bottom: 20px;
}

.contacto-info ul li span {
  font-size: 20px;
  color: var(--color-secondary);
  margin-right: 15px;
}

.contacto-form .form-group {
  margin-bottom: 20px;
}

.contacto-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-text);
  font-weight: 600;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-primary);
}

.contacto-form textarea {
  height: 150px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: var(--color-secondary);
}

/* Footer Styles */
#footer {
  background-color: #000;
  color: var(--color-white);
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-secondary);
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--color-secondary);
}

.footer-column ul li {
  margin-bottom: 15px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--color-white);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  margin-bottom: 20px;
}

.contact-info li span:first-child {
  color: var(--color-secondary);
  margin-right: 15px;
  font-size: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-secondary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 2000;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  height: 3px;
  width: 25px;
  background-color: var(--color-primary);
  transition: 0.4s var(--ease-out);
  border-radius: 2px;
}

.nav-toggle span:nth-child(1) {
  top: 10px;
}

.nav-toggle span:nth-child(2) {
  top: 18px;
}

.nav-toggle span:nth-child(3) {
  top: 26px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 18px;
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 18px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--color-white);
    transition: transform 0.4s var(--ease-out);
    overflow-y: auto;
    transform: translateX(-100%);
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
  }

  .main-nav ul li {
    width: 100%;
    text-align: center;
  }

  .main-nav ul li a {
    display: block;
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    height: auto;
    min-height: 100vh;
  }
}

/* Estilos para móviles y tablets */
@media (max-width: 1024px) {
  .section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .filter-buttons {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 0 15px;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    width: calc(100% + 30px);
  }

  .filter-buttons::-webkit-scrollbar {
    height: 3px;
  }

  .btn-filter {
    font-size: 0.95rem;
    padding: 8px 20px;
    margin: 0 8px;
    flex-shrink: 0;
  }

  .overlay {
    opacity: 1;
    visibility: visible;
    background-color: rgba(155, 207, 53, 0.85);
    bottom: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: auto;
    padding: 15px;
  }

  .btn-overlay {
    font-size: 1.1rem;
  }

  .solution-title {
    top: 20px;
    left: 20px;
    transform: none;
    text-align: left;
    font-size: 1.4rem;
    opacity: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
}

/* CHANGE LANGUAGES */
.language-selector {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 9999;
  cursor: pointer;
  min-width: 150px;
  perspective: 1200px;
}

.current-lang {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s var(--ease-out);
  transform-origin: center;
  will-change: transform;
}

.current-lang:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.lang-options {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}

.language-selector:hover .lang-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  color: #1f2937;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  background: transparent;
  border: none;
  width: 100%;
}

.lang-option:hover {
  background: rgba(248, 250, 252, 0.6);
  transform: translateX(5px);
}

.lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}

.lang-option:hover .lang-flag img {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .language-selector {
    top: 20px;
    right: 20px;
    min-width: 140px;
  }

  .current-lang {
    padding: 10px 14px;
  }

  .lang-option {
    padding: 12px 14px;
  }
}

@media (max-width: 1024px) {
  #header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
  }
  .designer-floating-btn,
  .prueba_diseñador {
    display: none;
  }

  .logo {
    order: 1;
  }

  .language-selector {
    position: static;
    order: 3;
    min-width: 120px;
    margin-left: auto;
  }

  .nav-toggle {
    order: 2;
    display: flex;
    margin-left: 10px;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-white);
    transition: transform 0.4s var(--ease-out);
    overflow-y: auto;
    transform: translateX(-100%);
    z-index: 9999;
  }
}

@media (max-width: 1366px) {
  .hero-section {
    height: 100vh;
    min-height: 700px;
    padding: 20px 15px 100px; /* Aumenté padding inferior */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .logo-text {
    flex-shrink: 0; /* Evita que el logo se reduzca demasiado */
    max-width: 280px; /* Tamaño óptimo para pantalla */
    margin: 0 auto;
    padding: 10px;
  }

  .logo-text img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: 200px;
  }

  .hero-content {
    gap: 15px;
    transform: none; /* Eliminamos el scale general */
    padding: 20px 0;
    height: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-description p {
    font-size: clamp(14px, 1.8vw, 16px); /* Tamaño responsive */
    line-height: 1.5;
    max-width: 680px;
    margin: 0 auto 15px;
    padding: 0 20px;
    font-weight: 500; /* Mantiene legibilidad */
  }

  .btn {
    margin: 25px 0 60px; /* Más espacio inferior */
    padding: 14px 40px;
    font-size: clamp(14px, 1.8vw, 16px);
    position: relative;
    bottom: auto;
    align-self: center;
    white-space: nowrap;
  }

  .hero-video {
    transform: translate(-50%, -50%) scale(1);
    min-height: 100%;
    min-width: 100%;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(2, 31, 75, 0.7) 0%,
      rgba(2, 31, 75, 0.5) 60%,
      rgba(2, 31, 75, 0.4) 100%
    );
  }
}

/* Hardware acceleration */
.hero-section::before,
.logo-text h1,
.btn-3d span {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.designer-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 15px;
  text-decoration: none;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.designer-floating-btn img {
  display: block;
}

.prueba_diseñador {
  position: relative;
  background: #fff;
  color: #3264e9;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 200px;
  z-index: 10;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

/* Forma de nube de cómic */
.designer-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: inline-block;
  z-index: 9999;
  transition: transform 0.3s ease;
}

.designer-icon {
  width: 44px;
  display: block;
}

.thought-cloud {
  position: absolute;
  bottom: 60px;
  right: 10px;
}

/* Estilos compartidos de círculos */
.circle {
  position: absolute;
  background: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Segundo círculo (pequeño, el que aparece primero) */
.circle-small {
  bottom: -28px;
  right: 20px;
  width: 8px;
  height: 8px;
  transition-delay: 0.1s;
}

/* Primer círculo (mediano, aparece segundo) */
.circle-medium {
  bottom: -18px;
  right: 30px;
  width: 14px;
  height: 14px;
  transition-delay: 0.2s;
}

/* Cuadro de texto principal */
.cloud-text {
  display: inline-block;
  width: 180px;
  padding: 10px;
  background: #ffffff;
  border: 2px solid #000;
  border-radius: 30%;
  text-align: center;
  font-size: 11.5px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  transition-delay: 0.3s;
}

/* Secuencia de apariciones en hover */
.designer-floating-btn:hover .circle-small,
.designer-floating-btn:hover .circle-medium,
.designer-floating-btn:hover .cloud-text {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.designer-floating-btn:hover {
  transform: scale(1.05);
}
