.hero {
  background: linear-gradient(180deg, #7DD3D3 0%, #5BC5C5 100%);
  padding: 120px 20px 60px;
  position: relative;
  overflow: hidden;
}

/* Patrón de fondo con huesitos y huellas */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.12'%3E%3Cpath d='M20 25c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 12c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Crect x='30' y='20' width='8' height='25' rx='4'/%3E%3Crect x='30' y='55' width='8' height='25' rx='4'/%3E%3Cellipse cx='50' cy='50' rx='18' ry='12'/%3E%3C/g%3E%3C/svg%3E");
  background-position: 0 0, 50px 50px;
  background-size: 80px 80px, 100px 100px;
  pointer-events: none;
  z-index: 0;
}

/* Curva blanca inferior */
.hero::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: white;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 2;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-content h1 {
  font-size: 58px;
  line-height: 1.15;
  color: white;
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-content h1 .highlight {
  background: #F87E79;
  padding: 4px 18px;
  border-radius: 12px;
  display: inline-block;
  transform: rotate(-1deg);
  box-shadow: 0 4px 12px rgba(255, 107, 133, 0.3);
}

.hero-content p {
  font-size: 18px;
  color: white;
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 35px;
}

.btn-primary, .btn-secondary {
  padding: 15px 32px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: white;
  color: #2C3E50;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: white;
  color: #5BC5C5;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dog-placeholder {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* Decoraciones flotantes */
.decoration {
  position: absolute;
  opacity: 0.25;
  color: white;
  font-size: 60px;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.decoration-1 {
  top: 12%;
  left: 8%;
  animation: float 6s ease-in-out infinite;
}

.decoration-2 {
  top: 18%;
  right: 12%;
  animation: float 8s ease-in-out infinite 1s;
}

.decoration-3 {
  bottom: 25%;
  left: 12%;
  animation: float 7s ease-in-out infinite 0.5s;
}

.decoration-4 {
  bottom: 32%;
  right: 8%;
  animation: float 9s ease-in-out infinite 1.5s;
}

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

/* Responsive Hero */
@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 40px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 40px;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .dog-placeholder {
    max-width: 350px;
  }
}

/* ============================================
   MODAL POPUP
   ============================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  border-radius: 25px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  color: var(--color-pink);
}

.modal-header {
  background: #63AFBC;
  padding: 40px 30px;
  text-align: center;
  border-radius: 25px 25px 0 0;
  color: white;
}

.modal-icon {
  font-size: 60px;
  margin-bottom: 15px;
  animation: bounce 2s infinite;
}

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

.modal-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.modal-header .match {
  color: var(--color-pink);
}

.modal-header .paw {
  color: white;
}

.modal-subtitle {
  font-size: 16px;
  opacity: 0.95;
}

.modal-body {
  padding: 35px 30px;
}

.modal-section {
  text-align: center;
  margin-bottom: 30px;
}

.section-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.modal-section h3 {
  color: var(--color-text-dark);
  font-size: 24px;
  margin-bottom: 15px;
}

.modal-section p {
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 15px;
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.feature-item {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  background: #e8f5f5;
}

.feature-emoji {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

.feature-item h4 {
  font-size: 16px;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.modal-cta {
  background: linear-gradient(135deg, #fff5f7 0%, #f0f9ff 100%);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
}

.modal-cta h3 {
  color: var(--color-text-dark);
  font-size: 22px;
  margin-bottom: 10px;
}

.modal-cta > p {
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap; /* Agregado para mejor responsive */
}

.modal-btn {
  padding: 14px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.modal-btn.primary {
  background: var(--color-pink);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 133, 0.3);
}

.modal-btn.primary:hover {
  background: #ff5c8d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 133, 0.4);
}

.modal-btn.secondary {
  background: white;
  color: var(--color-pink);
  border: 2px solid var(--color-pink);
}

.modal-btn.secondary:hover {
  background: var(--color-pink);
  color: white;
}

/* Modal Social Section */
.modal-social-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1); /* Cambiado para mejor contraste en fondo claro */
}

.social-title {
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--color-text-light); /* Cambiado para mejor legibilidad */
}

.social-links-modal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link svg {
  flex-shrink: 0;
}

/* Facebook */
.social-link.facebook {
  background: rgba(24, 119, 242, 0.1);
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.3);
}

.social-link.facebook:hover {
  background: #1877f2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

/* Instagram */
.social-link.instagram {
  background: rgba(228, 64, 95, 0.1);
  color: #e4405f;
  border-color: rgba(228, 64, 95, 0.3);
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(228, 64, 95, 0.3);
}

/* TikTok */
.social-link.tiktok {
  background: rgba(0, 0, 0, 0.322);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.social-link.tiktok:hover {
  background: #000000;
  color: #00f2ea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 242, 234, 0.3);
}

/* YouTube */
.social-link.youtube {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  border-color: rgba(255, 0, 0, 0.3);
}

.social-link.youtube:hover {
  background: #ff0000;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* Responsive para tablets */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
    overflow-y: auto; /* Agregado para scroll en móviles */
  }
  
  .modal-header {
    padding: 30px 20px;
  }
  
  .modal-header h2 {
    font-size: 26px;
  }
  
  .modal-body {
    padding: 25px 20px;
  }
  
  .modal-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .modal-cta {
    padding: 25px 20px; /* Reducido para móviles */
  }
  
  .modal-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .modal-btn {
    width: 100%;
    padding: 16px 20px; /* Botones más grandes para táctil */
  }
  
  .social-links-modal {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .social-link {
    padding: 14px;
    width: 100%;
  }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
  .modal-content {
    width: 100%;
    max-height: 100vh;
    border-radius: 0; /* Sin bordes redondeados en pantallas muy pequeñas */
    margin: 0;
  }
  
  .modal-icon {
    font-size: 50px;
  }
  
  .modal-header {
    padding: 25px 15px;
  }
  
  .modal-header h2 {
    font-size: 22px;
  }
  
  .modal-subtitle {
    font-size: 14px;
  }
  
  .modal-body {
    padding: 20px 15px;
  }
  
  .modal-cta {
    padding: 20px 15px;
    border-radius: 12px;
  }
  
  .modal-cta h3 {
    font-size: 20px;
  }
  
  .modal-btn {
    font-size: 14px;
    padding: 14px 20px;
  }
  
  .feature-item h4 {
    font-size: 16px;
  }
  
  .feature-item p {
    font-size: 13px;
  }
  
  .social-link {
    font-size: 13px;
    padding: 12px;
  }
  
  .social-link svg {
    width: 18px;
    height: 18px;
  }
}

/* Mejora para el scroll del modal en móviles */
@media (max-width: 768px) {
  .modal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
  }
  
  .modal-content {
    margin: 10px auto; /* Espaciado arriba y abajo */
  }
}