:root {
  --color-primary: #001947;
  --color-text: #0053f1;
  --color-white: #f1f1f2;
}

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "VVDS-Fifties-Exp-Med"; /* Nombre de la fuente Este era el Comfortaa Medium */
  src: url("/src/ELEMENTOS DE MARCA/TIPOGRAFIAS/PARA TITULOS/VVDS-Fifties-Exp-Med.otf")
    format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "VVDS-Fifties-Exp-Reg"; /* Nombre de la fuente: Este era Comfortaa Bold*/
  src: url("/src/ELEMENTOS DE MARCA/TIPOGRAFIAS/PARA TITULOS/VVDS-Fifties-Exp-Reg.otf")
    format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

* {
  font-family: "VVDS-Fifties-Exp-Med";
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  opacity: 1;
  font-family: "VVDS-Fifties-Exp-Med", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.5;
}

/* Navbar styles */

.header {
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 100px;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

.header:hover::before {
  left: 100%;
}
.logo {
  cursor: pointer;
}

.navbar a {
  font-family: "VVDS-Fifties-Exp-Reg", system-ui, -apple-system, sans-serif;
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  text-decoration: none;
  margin-left: 35px;
  transition: 0.3s;
}
.navbar a:hover {
  color: var(--color-text);
}

.header.scroll {
  position: fixed; /* Asegura que el header esté fijo al hacer scroll */
  top: 10px; /* Ajusta la posición desde la parte superior */
  left: 50%; /* Centra horizontalmente */
  transform: translateX(
    -50%
  ); /* Corrige el desplazamiento hacia la izquierda */
  margin: 0; /* Elimina márgenes que puedan descentrarlo */
  padding: 10px 50px;
  border-radius: 50px;
  width: auto;
  background: rgba(255, 255, 255, 0.313);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(231, 229, 229, 0.539);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Logo reducido */
.header.scroll .logo img {
  width: 50px;
  transition: width 0.3s ease-in-out;
}

.nav-links {
  display: none;
}

.navbar.scrolled .logo img {
  width: 100px;
}

#main-logo {
  width: 50px;
}

/* Estilos básicos para el botón de menú */
#menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none; /* Se mostrará solo en pantallas pequeñas */
}

@media (min-width: 768px) {
  .navbar .nav-links {
    display: flex; /* Asegurarse de que sea visible */
    gap: 2rem; /* Espaciado entre los elementos */
    position: static; /* Restablecer la posición */
    background: none; /* Quitar fondo */
    padding: 0; /* Ajustar padding */
    box-shadow: none; /* Quitar sombra */
  }

  .navbar .nav-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  .navbar .nav-links a:hover {
    color: var(--color-accent);
  }

  #menu-toggle {
    display: none; /* Ocultar el botón de menú */
  }
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none; /* Ocultar el menú por defecto */
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
  }

  .navbar.open .nav-links {
    display: flex; /* Mostrar el menú desplegable */
  }

  .nav-links a {
    margin: 10px 0;
    text-align: right;
  }

  #menu-toggle {
    margin-left: 10px;
    display: block; /* Mostrar el botón de menú */
    font-size: 1.5rem;
    cursor: pointer;
  }
}
/* FIN DE NAV BAR */

/* SECCION ANIMACION */
section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* HERO SECTION */

h1 {
  font-family: "VVDS-Fifties-Exp-Reg";
  font-weight: 700;
  font-size: 4rem;
  color: var(--color-white);
  line-height: 1.2;
}

.hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-text));
  color: var(--color-white);
  margin-top: 5rem;
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.floating-circles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  animation: slideIn 1s ease-out;
}

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

.experience-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 1rem 3rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  animation: pulse 2s infinite;
}

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

.experience-badge svg {
  width: 20px;
  height: 20px;
  animation: rotate 3s infinite linear;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.about-section {
  padding: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-content {
  margin-bottom: 4rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.about-text {
  flex: 1;
}

.about-icon {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  position: relative;
  margin-top: 1rem;
}

.about-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--color-primary);
  animation: floatIcon 3s ease-in-out infinite;
}

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

.about-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-content h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-content p {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.about-content p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  transform: scale(0);
  animation: dotAppear 0.3s ease forwards;
}

@keyframes dotAppear {
  to {
    transform: scale(1);
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-card svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.service-card:hover svg {
  transform: scale(1.2);
}

.service-card ul {
  list-style: none;
}

.service-card li {
  margin: 1rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: #555;
  transition: all 0.3s ease;
}

.service-card li:hover {
  color: var(--color-primary);
  transform: translateX(10px);
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23136b46'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
}

.process-section {
  padding: 2rem 0rem;
  max-width: 1000px;
  margin: 0 auto;
}

.process-heading {
  font-size: 3rem;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 2rem;
}
.process-sub {
  font-size: 1.3rem;
  text-align: center;
  color: var(--color-primary);
}

.process-steps {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.step-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.step-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.step-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.step-card p {
  color: #555;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .about-content {
    flex-direction: column;
  }
  .about-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
  .about-content h2 {
    font-size: 1.75rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* Contacto con nosotros */
#cta-nosotros {
  text-align: center;
  background-color: #ffffff41;
  color: var(--color-primary);
}

.cta h2 {
  font-size: 3rem;
}

.cta p {
  font-size: 1.3rem;
  padding-top: 2%;
}

#cta-nosotros a {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 5px;
}

.btn-primary {
  font-family: "VVDS-Fifties-Exp-Reg";
  background-color: var(--color-text);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary);
}

/* FOOTER */

.custom-footer {
  background-color: white;
  border-radius: 20px; /* Bordes redondeados */
  width: 50%;
  margin: 2rem auto;
  padding: 4rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.409);
  text-align: center;
}

.logo-section {
  display: grid;
  justify-content: center;
  align-items: center;
  justify-items: center;
}

/* Estilo para los links principales */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem; /* Espaciado entre los enlaces */
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-family: "VVDS-Fifties-Exp-Reg";
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* Redes sociales */
ul {
  list-style: none;
}

.redes {
  display: flex;
  justify-content: center;
  align-items: center;
}
.redes .contenido-icono {
  margin: 0 10px;
  position: relative;
}
.redes .contenido-icono .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}
.redes .contenido-icono:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}
.redes .contenido-icono a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
.redes .contenido-icono a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}
.redes .contenido-icono a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}
.redes .contenido-icono a:hover {
  color: white;
}
.redes .contenido-icono a .relleno {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}
.redes .contenido-icono a:hover .relleno {
  height: 100%;
}

.redes .contenido-icono a[data-social="linkedin"] .relleno,
.redes .contenido-icono a[data-social="linkedin"] ~ .tooltip {
  background-color: #ea4335;
}

.redes .contenido-icono a[data-social="whatsapp"] .relleno,
.redes .contenido-icono a[data-social="whatsapp"] ~ .tooltip {
  background-color: #25d366;
}
.redes .contenido-icono a[data-social="instagram"] .relleno,
.redes .contenido-icono a[data-social="instagram"] ~ .tooltip {
  background: linear-gradient(
    45deg,
    #405de6,
    #5b51db,
    #b33ab4,
    #c135b4,
    #e1306c,
    #fd1f1f
  );
}
.redes .contenido-icono a[data-social="youtube"] .relleno,
.redes .contenido-icono a[data-social="youtube"] ~ .tooltip {
  background-color: #ff0000;
}

/* FIN REDES SOCIALES */

.footer-info {
  font-size: 0.9rem;
  color: #555;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.footer-info p {
  font-size: 0.9rem;
}

.logo-section img {
  width: 35vh;
  margin-bottom: 30px;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5rem 0;
}

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

.footer-bottom p {
  font-size: 0.9rem;
  color: #555;
}

/* FIN FOOTER */

/* ============= Responsive Ipad ==================== */
@media (max-width: 992px) {
  .creative-cards .contenedor .row .card-column {
    flex: 0 0 auto;
    width: 50%;
    margin-bottom: 40px;
  }
}

/* ============= Responsive Iphone ==================== */
@media (max-width: 480px) {
  .creative-cards .contenedor .row .card-column {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 20px;
  }
  .card-details {
    width: 100%;
  }
}

@media screen and (max-width: 1024px) {
  .header {
    padding: 20px 50px;
  }

  .navbar a {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 3rem;
  }

  p {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero #contenedor {
    margin-top: 10%;
  }

  #historia {
    padding: 20px;
  }

  #mision-vision {
    padding: 5rem calc(50vw - 300px);
  }

  .nuestra-historia p {
    font-size: 1.2rem;
  }

  .nuestro-team h2 {
    font-size: 3rem;
  }

  .nuestro-team p {
    font-size: 1.5rem;
  }
  .custom-footer {
    width: 81%;
  }
  .logo-section img {
    width: 30vh;
  }
  .footer-info {
    font-size: 0.8rem;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }

  .logo-section img {
    width: 20vh;
  }

  .card-details h2 {
    font-size: 1.5rem;
  }

  .card-details p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .creative-cards .contenedor .row {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
  }

  .footer-info p {
    font-size: 0.63rem;
  }
}

@media screen and (max-width: 425px) {
  .creative-cards .contenedor .row .card-column {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 20px;
  }
  h2 {
    line-height: 3rem;
  }

  .card-details {
    width: 100%;
  }

  .footer-info p {
    font-size: 0.5rem;
  }
}
