@font-face {
  font-family: "Bree-Serif";
  src: url("./BreeSerif-Regular.ttf") format("truetype");
}

:root {
  --color-primary: #4F7CBD;
  --color-primary-dark: #385785;
  --color-secondary: #6EB1C7;
  --color-accent: #74BAD1;
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #4773b0 0%, #5fa4bd 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
nav {
  background: linear-gradient(135deg, #5A8DD7 0%, #82D1EB 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem 1rem 3rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 0.75rem 3rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

nav .logo img {
  height: 45px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

nav .logo img:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  color: rgb(234, 237, 241);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.3s ease;
}

.link:hover {
  color: var(--color-primary);
}

.link:hover::after {
  width: 100%;
}

.active {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  width: 28px;
  background: var(--color-text);
  margin: 3px 0;
  border-radius: 5px;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 70px;
    right: 0;
    width: 250px;
    padding: 2rem 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    gap: 0;
  }

  nav ul li {
    width: 100%;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--color-border);
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-left {
    gap: 1rem;
  }
}

/* Main content sections */
.main-content {
  margin: 4rem auto;
  max-width: 1400px;
  padding: 0 3rem;
  animation: fadeIn 0.8s ease-out;
}

.content-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 4rem;
  margin-bottom: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.content-card:hover {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* Typography */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #5A8DD7 0%, #82D1EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.text-content {
  font-size: 1.125rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-family: "Bree-Serif";
}

/* Buttons */
.aplication-button {
  height: auto;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.aplication-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.aplication-button:hover::before {
  left: 100%;
}

.aplication-button:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.aplication-button:disabled {
  background: linear-gradient(135deg, #1e40af 0%, #0c4a6e 100%);
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
  transform: scale(1.05);
}

.button-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Phone mockup animation */
.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
  margin: 0 auto;
}

.phone-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.screen {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 280px;
  height: 520px;
  overflow: hidden;
  border-radius: 20px;
  z-index: 1;
}

.screen-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  animation: scrollContent 20s ease-in-out infinite;
}

.screen-content2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  animation: scrollContent2 35s ease-in-out infinite;
}

@keyframes scrollContent {
  0%,
  15% {
    top: 0;
  }
  50%,
  65% {
    top: -180%;
  }
  100% {
    top: 0;
  }
}

@keyframes scrollContent2 {
  0%,
  10% {
    top: 0;
  }
  50%,
  60% {
    top: -118%;
  }
  100% {
    top: 0;
  }
}

/* Team cards */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  animation: fadeIn 0.6s ease-out;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 5px solid var(--color-primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.card-role {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.social-links-card {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links-card a {
  color: var(--color-primary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
}

.social-links-card a:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-3px);
}

.social-links-card svg {
  width: 20px;
  height: 20px;
}

/* Footer */
.footer {
  background: #41659b;
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 3rem 2rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-info h3,
.footer-contact h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-info p {
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.8);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: white;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.logo-wrapper {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Utility classes */
.centrado {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 3rem 0;
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Video container */
.video-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.video-container:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Responsive design */
@media (max-width: 1024px) {
  .main-content {
    padding: 0 2rem;
  }

  .content-card {
    padding: 3rem 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .main-content {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .content-card {
    padding: 2rem 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .text-content {
    font-size: 1rem;
  }

  .button-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .aplication-button {
    width: 100%;
  }

  .card-container {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .phone-mockup {
    width: 250px;
    height: 500px;
  }

  .screen {
    width: 230px;
    height: 430px;
  }
}

/* Image styling */
.product-image {
  max-width: 100%;
  height: auto;
  transition: all 0.3s ease;
}

.valores{
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Map container */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin: 2rem 0;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
