@font-face {
    font-family: 'Horizon';
    src: url('../fonts/horizon.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
:root {
  --primary-black: #000000;
  --primary-red: #e31c23;
  --primary-white: #ffffff;
  --primary-gray: #6c757d;
  --dark-bg: #0a0e27;
  --secondary-gray: #343a40;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary-black);
  color: var(--primary-white);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navegación */

.navbar {
  box-shadow: 0 4px 20px rgba(227, 28, 35, 0.2);
  transition: all 0.3s ease;
  padding: 10px 0;
  background: linear-gradient(180deg, #0a0e27 0%, #000000 100%) !important;
}

/* Logo Styles - OneDevStudios Elite */

.logo-brand {
  font-family: 'Segoe UI', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -1px;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.logo-brand .one {
  color: #ffffff;
}

.logo-brand .dev {
  color: #e31c23;
}

.logo-brand .studios {
  color: #ffffff;
  font-weight: 300;
  margin-left: 2px;
  opacity: 0.8;
}

.navbar-brand:hover .logo-brand {
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(227, 28, 35, 0.4);
}

.logo-footer-text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -1px;
  display: inline-block;
  margin-bottom: 1rem;
}

.nav-link {
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  transition: width 0.3s ease;
}

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

/* Hero Section */

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-content {
  animation: slideInLeft 0.8s ease-out;
}

.hero-shapes {
  position: relative;
  width: 100%;
  height: 400px;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.8;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(227, 28, 35, 0.3) 0%, rgba(227, 28, 35, 0.05) 100%);
  top: 20%;
  right: 10%;
  animation: float 4s ease-in-out infinite;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(227, 28, 35, 0.2) 0%, rgba(227, 28, 35, 0.05) 100%);
  bottom: 20%;
  left: 5%;
  animation: float 5s ease-in-out infinite reverse;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(227, 28, 35, 0.25) 0%, rgba(227, 28, 35, 0.05) 100%);
  top: 50%;
  left: 30%;
  animation: float 3.5s ease-in-out infinite;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Feature Cards */

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  background: rgba(220, 53, 69, 0.1);
  border-color: var(--primary-red);
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
}

.feature-icon {
  font-size: 3rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(10deg);
}

/* Project Cards */

.project-card {
  background: var(--primary-white);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.project-image {
  width: 100%;
  height: 200px;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(220, 53, 69, 0.2);
}

/* Botones */

.btn {
  transition: all 0.3s ease;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 30px;
}

.btn-danger {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-danger:hover {
  background-color: #a02834;
  border-color: #a02834;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
}

.btn-outline-light:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-3px);
}

.btn-dark:hover {
  background-color: #1a1a1a;
  transform: translateY(-3px);
}

/* Secciones */

.bg-dark {
  background-color: #0a0e27 !important;
}

/* Footer */

footer {
  position: relative;
  background: linear-gradient(180deg, #0a0e27 0%, #000000 100%);
}

footer a {
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--primary-red) !important;
}

/* Responsive */

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-visual {
    width: 250px;
    height: 250px;
    margin: 20px 0;
  }
}

@media (max-width: 768px) {
  .display-6 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .feature-card {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-content .lead {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .d-flex.gap-3 {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .btn-lg {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .display-4 {
    font-size: 2rem;
  }
}

/* Efectos adicionales */

/* Logo Styles */

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.08);
}

.logo-img {
  height: 45px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
  filter: brightness(1);
}

.logo-link:hover .logo-img {
  filter: brightness(1.1);
  text-shadow: 0 0 20px rgba(227, 28, 35, 0.5);
}

.logo-footer {
  height: 40px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Formulario Digital */

.digital-form {
  background: linear-gradient(135deg, rgba(227, 28, 35, 0.05) 0%, rgba(227, 28, 35, 0.02) 100%);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(227, 28, 35, 0.2);
}

.form-group-custom {
  position: relative;
}

.form-input-digital {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--primary-white);
  font-size: 1rem;
  padding: 15px 0 10px 0;
  transition: all 0.3s ease;
}

.form-input-digital::placeholder {
  color: transparent;
}

.form-input-digital:focus {
  outline: none;
  border-bottom-color: var(--primary-red);
  background: rgba(227, 28, 35, 0.05);
}

.form-label-digital {
  position: absolute;
  bottom: 10px;
  left: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-input-digital:focus + .form-label-digital, .form-input-digital:not(:placeholder-shown) + .form-label-digital {
  bottom: 32px;
  color: var(--primary-red);
  font-size: 0.85rem;
  font-weight: 600;
}

.textarea-digital {
  resize: none;
  min-height: 120px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.select-digital {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e31c23' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0;
  padding-right: 25px !important;
}

.input-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-red), rgba(227, 28, 35, 0));
  transition: width 0.4s ease;
}

.form-input-digital:focus ~ .input-underline {
  width: 100%;
}

.btn-submit-digital {
  background: linear-gradient(135deg, var(--primary-red) 0%, #c91620 100%);
  border: none;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
}

.btn-submit-digital::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.4s ease;
}

.btn-submit-digital:hover::before {
  left: 100%;
}

.btn-submit-digital:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(227, 28, 35, 0.4);
}

/* Información de Contacto Moderna */

.contact-info-modern {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--primary-red);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.info-card:hover {
  background: rgba(227, 28, 35, 0.1);
  transform: translateX(10px);
}

.info-icon {
  font-size: 1.5rem;
  min-width: 30px;
}

.info-content h5 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.info-content p {
  margin: 0;
  font-size: 0.95rem;
}

.social-link {
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  transform: scale(1.2) rotate(10deg);
}

.contact-form-container {
  background: rgba(255, 255, 255, 0.02);
  padding: 30px 0;
}

/* Especialidades */

.service-speciality {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(227, 28, 35, 0.3);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.service-speciality:hover {
  background: rgba(227, 28, 35, 0.1);
  border-color: var(--primary-red);
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(227, 28, 35, 0.2);
}

.service-spec-icon {
  font-size: 3rem;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(227, 28, 35, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(108, 117, 125, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Para navegadores basados en Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    display: none;
}

/* Para Firefox */
html {
    scrollbar-width: none;
}

/* Opcional: Para Internet Explorer/Edge antiguo */
body {
    -ms-overflow-style: none;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #dc3545; /* Rojo Elite */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #b02a37; /* Rojo más oscuro al pasar el cursor */
    transform: scale(1.1);
    color: #FFF;
}