/* ================================
   Landing Page - MedicAlfa
   Paleta de colores oficial
   ================================ */
/* Variables CSS - Paleta MedicAlfa */
:root {
  /* Colores principales de la marca */
  --primary-color: #013c76; /* Azul oscuro principal */
  --primary-dark: #153768; /* Azul muy oscuro */
  --accent-color: #00c7d6; /* Cyan/Turquesa (acento) */
  --accent-light: #33d4e0; /* Cyan claro */
  /* Textos */
  --text-dark: #153768; /* Texto principal */
  --text-medium: #999; /* Texto secundario */
  --text-light: #666; /* Texto terciario */
  /* Fondos */
  --bg-white: #ffffff;
  --bg-light: #f5f5f5;
  --bg-lighter: #fafafa;
  /* Bordes y sombras */
  --border-color: #ddd;
  --border-light: #eee;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
  /* Estados */
  --success-color: #00c7d6;
  --error-color: #e74c3c;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================
   Hero Section
   ================================ */
.hero {
  background-color: var(--primary-color);
  color: white;
  padding: 100px 20px;
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero .hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero .hero-logo {
  width: 200px;
  height: auto;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease-out;
}
.hero .hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero .hero-description {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero .hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}
.hero .hero-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  margin: 0 auto 30px;
  opacity: 0.7;
}
.hero .hero-line.hero-line-bottom {
  margin: 30px auto 0;
}
.hero .hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 35px 0;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}
.hero .hero-stats .hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero .hero-stats .hero-stat i {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 5px;
}
.hero .hero-stats .hero-stat span {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
}
.hero .hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.hero .hero-decorations .hero-icon {
  position: absolute;
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.08;
}
.hero .hero-decorations .hero-icon.hero-icon-1 {
  top: 10%;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}
.hero .hero-decorations .hero-icon.hero-icon-2 {
  top: 20%;
  right: 15%;
  animation: float 10s ease-in-out infinite 1s;
}
.hero .hero-decorations .hero-icon.hero-icon-3 {
  bottom: 15%;
  left: 15%;
  animation: float 12s ease-in-out infinite 2s;
}
.hero .hero-decorations .hero-icon.hero-icon-4 {
  bottom: 20%;
  right: 10%;
  animation: float 9s ease-in-out infinite 1.5s;
}

/* ================================
   Buttons
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
}
.btn svg {
  width: 20px;
  height: 20px;
}
.btn.btn-primary {
  background-color: var(--accent-color);
  color: white;
  box-shadow: var(--shadow-lg);
}
.btn.btn-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}
.btn.btn-secondary {
  background-color: transparent;
  color: var(--bg-white);
  border: 2px solid var(--bg-white);
}
.btn.btn-secondary:hover {
  background-color: var(--bg-white);
  color: var(--primary-color);
  transform: translateY(-2px);
}
.btn.btn-block {
  width: 100%;
  justify-content: center;
}

/* ================================
   Features Section
   ================================ */
.features {
  padding: 80px 20px;
  background-color: var(--bg-light);
}
.features .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.features .feature-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}
.features .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}
.features .feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
  font-weight: 600;
}
.features .feature-card p {
  color: var(--text-medium);
  line-height: 1.6;
}
.features .feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}
.features .feature-card:hover .feature-icon {
  background-color: var(--primary-color);
}

/* ================================
   Contact Section
   ================================ */
.contact {
  padding: 80px 20px;
  background-color: var(--bg-white);
}
.contact .contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact .contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
  font-weight: 700;
}
.contact .contact-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 40px;
}
.contact .contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}
.contact .contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.contact .contact-item svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent-color);
  margin-top: 2px;
}
.contact .contact-item strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: 600;
}
.contact .contact-item p {
  color: var(--text-medium);
  margin: 0;
  line-height: 1.6;
}
.contact .contact-item a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}
.contact .contact-item a:hover {
  color: var(--accent-color);
}
.contact .contact-item a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}
.contact .contact-item a:hover::after {
  width: 100%;
}
.contact .social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}
.contact .social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.contact .social-link:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
}
.contact .social-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ================================
   Contact Form
   ================================ */
.contact-form-wrapper {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form .form-group label {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}
.contact-form .form-group input,
.contact-form .form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--bg-white);
  transition: all 0.3s ease;
}
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 199, 214, 0.1);
}
.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: var(--text-medium);
  opacity: 0.4;
}
.contact-form .form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ================================
   Footer
   ================================ */
.footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 30px 20px;
  text-align: center;
}
.footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
}
.footer .footer-content p {
  margin: 5px 0;
  opacity: 0.9;
}
.footer .powered-by {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ================================
   Animations
   ================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg);
  }
  75% {
    transform: translateY(-15px) rotate(3deg);
  }
}
.hero-content,
.feature-card,
.contact-wrapper {
  animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(2) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.2s;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 968px) {
  .hero .hero-title {
    font-size: 2.5rem;
  }
  .hero .hero-description {
    font-size: 1.1rem;
  }
  .hero .hero-stats {
    gap: 30px;
  }
  .hero .hero-decorations .hero-icon {
    font-size: 3rem;
  }
  .contact .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features .features-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 60px 20px;
    min-height: 70vh;
  }
  .hero .hero-title {
    font-size: 2rem;
  }
  .hero .hero-description {
    font-size: 1rem;
  }
  .hero .hero-logo {
    width: 150px;
  }
  .hero .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }
  .hero .hero-stats .hero-stat i {
    font-size: 1.4rem;
  }
  .hero .hero-stats .hero-stat span {
    font-size: 0.8rem;
  }
  .hero .hero-decorations .hero-icon {
    font-size: 2.5rem;
    opacity: 0.05;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .contact {
    padding: 50px 20px;
  }
  .contact .contact-info h2 {
    font-size: 2rem;
  }
  .contact-form-wrapper {
    padding: 25px;
  }
  .features {
    padding: 50px 20px;
  }
}
/* ================================
   Notificaciones Toast
   ================================ */
.landing-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  font-size: 1rem;
  font-weight: 500;
  color: white;
  z-index: 9999;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 400px;
}
.landing-notification.show {
  opacity: 1;
  transform: translateX(0);
}
.landing-notification--success {
  background-color: var(--accent-color);
}
.landing-notification--error {
  background-color: var(--error-color);
}
.landing-notification--info {
  background-color: var(--primary-color);
}
@media (max-width: 640px) {
  .landing-notification {
    left: 20px;
    right: 20px;
    top: 20px;
    max-width: calc(100% - 40px);
  }
}
