/* Reinicio de márgenes y padding, y ajuste del box-sizing para incluir bordes en el tamaño */
*{
   
    box-sizing: border-box;
}

/* Estilos para el body, centrado completo con flexbox, altura mínima y fondo */
body{
    background-color: #f5d4d6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

    /* transform-style: preserve-3d; 
    background-image: url('img/fondo1.png');
  background-size: cover; 
  background-position: center;
  background-attachment: fixed;  */
}

/* Animación que rota el elemento en 360 grados en Y */
@keyframes rotar {
  from {
    transform: perspective(1000px) rotateY(0deg);
  }
  to {
    transform: perspective(1000px) rotateY(360deg);
  }
}

/* Contenedor principal con posición relativa y tamaño fijo, se habilita contexto 3D para hijos */
.box { 
    position: relative;
    width: 225px;
    height: 225px;
    transform-style: preserve-3d; 
    transition: 1.5s;
    animation: rotar 15s linear infinite;
    animation-play-state: running; 
    margin-top: 120px;

    
}

/* Pausa la animación cuando el mouse está sobre la caja */
.box:hover {
    animation-play-state: paused;
}

/* Cada span dentro de .box está absolutamente posicionado para formar caras del cubo 3D */
.box span{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center; 
    transform-style: preserve-3d; 
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(300px); 
    -webkit-box-reflect: below 0px linear-gradient(transparent, transparent, #0004); 
}

/* Imagen dentro de cada span, cubre todo el contenedor, evita selección de usuario */
.box span img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    user-select: none; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    border-radius: 10px; 
}

/* Contenedor para botones, posicionados en la parte inferior y separados */
.btns{
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 30px;
}

/* Estilos para cada botón circular */
.btns .btn{
    position: relative;
    width: 60px;
    height: 60px;
    border: 2px solid #050505;
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; 
}

/* Cambia el fondo del botón al ser presionado */
.btns .btn:active{
    background: #ff66cc;
}

/* Pseudo-elemento que crea una flecha dentro del botón */
.btns .btn::before{
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    transform: rotate(45deg) translate(-2.5px, 2.5px); 
}

/* Ajusta la dirección de la flecha para el botón "prev" */
.btns .btn.prev::before{
    transform: rotate(225deg) translate(-2.5px, 2.5px);
}

/* Cambia el color de la flecha cuando el botón está activo */
.btns .btn:active::before{
    border-top: 3px solid #000;
    border-right: 3px solid #000;
}

/* Efecto hover para la imagen: escala y sombra */
.box span img:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px 5px rgba(161, 217, 245, 0.8);
    cursor: pointer; 
    background: #FFFFFF;
}

/* Estilos para el header principal, centrado y con sombra */
.header {
    background-color: #f5d4d6; 
    padding: 10px;
    text-align: center;
    font-size: 20px;
    color: #333;
    margin-bottom: 20px; 
}

/* Barra de navegación con flexbox, separación entre elementos */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5d4d6;
    padding: 10px 20px;
    width: 100%; 
    box-sizing: border-box; 
}

/* Imagen dentro de la barra de navegación (logo) */
.navbar img {
    height: 40px; 
}

/* Contenedor del menú con separación entre enlaces */
.navbar .menu {
    display: flex;
    gap: 20px;
}

/* Estilos para enlaces del menú */
.navbar .menu a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

/* Estilos para input tipo texto (barra de búsqueda) */
.navbar input[type="text"] {
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Posicionamiento absoluto del header (centro superior) */
header {
    position: absolute; 
    top: 10%; 
    left: 50%;
    transform: translateX(-50%); 
    margin-bottom: 20px; 
    margin-top: -20px
}

/* Estilos para el título principal de la empresa */
.empresa {
    white-space: nowrap;
    font-size: 3rem; 
    color: #050505; 
    font-weight: bold; 
    text-align: center; 
    letter-spacing: 1px; 
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); 
    font-family: 'Courier New', Courier, monospace;
    
    
}

/* Contenedor para botón de inicio, posicionado en la esquina superior derecha */
.start-container {
    position: absolute;  
    top: 50px;           
    right: 35px;         
    text-align: right;   
}

/* Botón de inicio con colores, padding, tamaño de fuente y transición */
.start-btn {
    background-color: #f835a0;  
    /*color: rgb(253, 253, 253); */
    color: black;               
    padding: 10px 30px;          
    font-size: 1.5rem;           
    text-decoration: none;       
    border-radius: 5px;          
    transition: background-color 0.3s ease; 
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); 
}

/* Cambio de color de fondo cuando se pasa el cursor sobre el botón */
.start-btn:hover {
    background-color: #030303;   
     color: white;
     box-shadow: 0 0 30px rgba(255, 255, 255, 1);
}

/* Estilos para el texto descriptivo centrado */
.descripcion {
    color: rgb(5, 5, 5);
    text-align: center;
    font-size: 1.2em;
    white-space: nowrap; 
    max-width: 1000px;
    width: 100%; 
    display: block;   
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    font-style: italic; 
    font-family: Arial, Helvetica, sans-serif;
   margin-top: -10px
}

@media (max-width: 600px) {
  .empresa {
    font-size: 1.4rem;
    white-space: normal;
    padding: 0 10px;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    width: 100vw;;
    box-sizing: border-box;
  }

  .descripcion {
    font-size: 0.9em;
    white-space: normal;
    padding: 0 10px;
    line-height: 1.3;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    margin-top: 15px;
  }

  .box {
    margin-top: 30px;
    width: 180px;
    height: 180px;
    margin-left: auto;
    margin-right: auto;
  }

  .start-btn {
    font-size: 1rem;
    padding: 8px 20px;
  }

  .start-container {
    top: 15px;
    right: 15px;
    
  }
}

@media (max-width: 600px) {
  .box {
    margin-top: px; /* Aumentado para dejar espacio al header */
    margin-bottom: 40px;
    width: 180px;
    height: 180px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .box {
    margin-top: 140px; /* Aumentado para dejar espacio al header */
    margin-bottom: 40px;
    width: 180px;
    height: 180px;
    margin-left: auto;
    margin-right: auto;
  }
}
a{
  text-decoration:none;
}
.floating_btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  z-index: 1000;
}

@keyframes pulsing {
  to {
    box-shadow: 0 0 0 30px rgba(232, 76, 61, 0);
  }
}

.contact_icon {
  background-color: #42db87;
  color: #fff;
  width: 60px;
  height: 60px;
  font-size:30px;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 3px #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translatey(0px);
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 0 0 #42db87;
  -webkit-animation: pulsing 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
  -moz-animation: pulsing 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
  -ms-animation: pulsing 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
  animation: pulsing 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
  font-weight: normal;
  font-family: sans-serif;
  text-decoration: none !important;
  transition: all 300ms ease-in-out;
}


.text_icon {
  margin-top: 8px;
  color: #050505;
  font-size: 13px;
   font-weight: bold;
}

@media (max-width: 480px) {
  .floating_btn {
    right: 80px !important;  /* asegúrate que el botón no se mueva */
  }

  .contact_icon {
    animation: none !important; /* quita animaciones en móvil */
  }
}