:root {
  --primary-color: #81C784; /* Verde pastel */
  --secondary-color: #B2DFDB; /* Verde claro pastel */
  --accent-color: #FFB74D; /* Naranja pastel */
  --pastel-green: #E8F5E9; /* Verde muy claro */
  --pastel-orange: #FFF3E0; /* Naranja muy claro */
  --text-color: #333;
  --light-bg: #f9f9f9;
  --white: #ffffff;
  --border-radius: 1.5rem;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Header y Navegación */
header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1.2;
}

.logo span {
  max-width: 200px;
}

.logo i {
  margin-right: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

.btn-contacto {
  background-color: var(--primary-color);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 8rem 5% 5rem;
  background: linear-gradient(135deg, var(--pastel-green) 0%, var(--secondary-color) 100%);
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M30 5c-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5S31.4 5 30 5zm-15 25c-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5-1.1-2.5-2.5-2.5zm30 0c-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5-1.1-2.5-2.5-2.5z' fill='%234CAF50' opacity='.1'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: #25D366; /* WhatsApp green */
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
  background-color: #128C7E; /* Darker WhatsApp green */
}

.cta-button i {
  font-size: 1.2rem;
}

.hero-image {
  position: relative;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 1rem;
  animation: float 4s ease-in-out infinite;
}

.dog-photo {
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.2));
}

/* Servicios */
.servicios {
  padding: 5rem 5%;
  background-color: var(--pastel-green);
}

.servicios h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.servicio-card {
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.servicio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.servicio-header i {
  font-size: 2.5rem;
  color: var(--primary-color);
  background: var(--pastel-green);
  padding: 1rem;
  border-radius: 50%;
}

.badge-premium {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.servicio-card.premium {
  border: 2px solid #ffd700;
}

.precio-servicio {
  margin: 1.5rem 0;
  text-align: center;
}

.precio {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

.periodo {
  color: #666;
  font-size: 0.9rem;
}

/* Enhanced Calculator Styles */
.calculadora-barf {
  background: linear-gradient(135deg, var(--pastel-green), var(--pastel-orange));
  padding: 5rem 0;
}

.calculadora-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.calculadora-avanzada {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.condiciones-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.resultado-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin: 2rem 0;
}

.porcion-total {
  text-align: center;
  padding: 2rem;
  background: var(--pastel-green);
  border-radius: 20px;
}

.cantidad {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-color);
  display: block;
  margin: 1rem 0;
}

.comidas-dia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.comida {
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 15px;
  text-align: center;
}

/* Enhanced Announcement Board Styles */
.cartelera-anuncios {
  padding: 5rem 0;
  background: var(--pastel-orange);
}

.anuncios-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.anuncios-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.tab-btn {
  padding: 0.8rem 2rem;
  border: none;
  background: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: var(--primary-color);
  color: white;
}

.btn-publicar {
  display: block;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.anuncios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: white;
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.preview-foto {
  width: 100%;
  height: 200px;
  background: var(--light-bg);
  border-radius: 10px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-foto img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .calculadora-avanzada {
    grid-template-columns: 1fr;
  }

  .resultado-grid {
    grid-template-columns: 1fr;
  }

  .anuncios-tabs {
    flex-wrap: wrap;
  }

  .modal-content {
    margin: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .servicio-card {
    padding: 1.5rem;
  }

  .precio {
    font-size: 1.5rem;
  }

  .cantidad {
    font-size: 2.5rem;
  }
}

/* Sobre Mí */
.sobre-mi {
  position: relative;
  padding: 5rem 5%;
}

.perfil-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.foto-coach {
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  position: relative;
  margin-top: 0.5rem;
}

.timeline-marker::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: calc(100% + 3rem);
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item:last-child .timeline-marker::after {
  display: none;
}

.timeline-content {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 15px;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 20px;
  border-right: 10px solid var(--light-bg);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.credenciales {
  list-style: none;
  margin-top: 1rem;
}

.credenciales li {
  margin: 1rem 0;
}

.credenciales i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Responsive adjustments for Sobre Mí section */
@media (max-width: 768px) {
  .perfil-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .foto-coach {
    margin: 0 auto;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
  }
  
  .timeline-marker {
    display: none;
  }
  
  .timeline-content::before {
    display: none;
  }
}

/* Testimonios */
.testimonios {
  padding: 5rem 5%;
  background-color: var(--pastel-orange);
}

.testimonios h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonios-carousel {
  display: grid;
  grid-auto-flow: column;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem;
}

.testimonio-card {
  scroll-snap-align: center;
  min-width: 300px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.fa-star {
  color: #ddd;
  margin-right: 0.3rem;
}

.fa-star.active {
  color: var(--accent-color);
}

.testimonio-texto {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonio-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
}

/* Blog */
.blog {
  padding: 5rem 5%;
  background-color: var(--light-bg);
}

.blog h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-post {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.blog-post:hover .blog-image {
  transform: scale(1.05);
}

.blog-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.blog-image i {
  font-size: 4rem;
  color: rgba(255,255,255,0.2);
}

.blog-content {
  padding: 2rem;
}

.blog-post h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  min-height: 60px;
}

/* Nuevo carrusel de videos */
.video-carousel {
  display: grid;
  grid-auto-flow: column;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem 0;
  margin: 2rem 0;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-carousel::-webkit-scrollbar {
  display: none;
}

.video-card {
  scroll-snap-align: center;
  min-width: 300px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Contacto */
.contacto {
  padding: 5rem 5%;
  background-color: var(--pastel-green);
}

.contacto h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.contacto-container {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea, select {
  transition: all var(--transition-speed) ease;
  border: 2px solid #e0e0e0;
  width: 100%;
  padding: 0.8rem;
  border-radius: 10px;
  font-size: 1rem;
}

textarea {
  height: 150px;
  resize: vertical;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 4px 6px -1px rgba(76,175,80,0.1);
}

.submit-button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  font-weight: bold;
  letter-spacing: 1px;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: var(--secondary-color);
}

/* Agendar Cita */
.citas {
  padding: 5rem 5%;
  background-color: var(--light-bg);
  text-align: center;
}

.calendar-container {
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.calendar-container iframe {
  border: none;
  width: 100%;
  height: 500px;
}

/* Descarga Guía */
.guia-descarga {
  padding: 5rem 5%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  text-align: center;
  color: white;
}

.guia-content {
  max-width: 800px;
  margin: 0 auto;
}

.guia-descarga h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.guia-descarga p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.descarga-btn {
  display: inline-flex;
  align-items: center;
  padding: 1.2rem 2.5rem;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.descarga-btn i {
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

.descarga-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Botón WhatsApp */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: white;
}

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

/* Footer */
footer {
  background-color: var(--pastel-orange); 
  color: var(--text-color); 
  padding: 3rem 5% 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--text-color); 
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* Animaciones */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

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

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

.servicio-card, .blog-post, .testimonio-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Nueva sección calculadora BARF */
.calculadora-barf {
  padding: 5rem 5%;
  background: var(--pastel-orange);
}

.calculadora-container {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(145deg, var(--pastel-orange), var(--pastel-green));
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.calculadora-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.calculadora-input {
  margin-bottom: 1.5rem;
}

.calculadora-input label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
}

.calculadora-input input,
.calculadora-input select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  background: var(--light-bg);
}

.resultado-calculadora {
  text-align: center;
  padding: 2rem;
  background: rgba(76,175,80,0.1);
  border-radius: 15px;
  margin: 2rem 0;
}

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

.porcion-diaria {
  font-size: 2.5rem;
  color: var(--accent-color);
  font-weight: bold;
  margin: 1rem 0;
}

.composicion-barf {
  margin: 2rem 0;
  background: rgba(255,255,255,0.9);
  padding: 1.5rem;
  border-radius: 15px;
}

.componente {
  margin: 1rem 0;
}

.componente-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9em;
}

.componente-bar-container {
  height: 10px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
}

.componente-bar {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.5s ease;
}

/* Formulario de compra */
.formulario-compra {
  display: none;
  margin-top: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

.formulario-compra.active {
  display: block;
}

.pedido-resumen {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 15px;
  margin: 1rem 0;
}

#formularioCompra .form-group {
  margin-bottom: 1rem;
}

#formularioCompra label {
  font-size: 0.9em;
  color: var(--text-color);
}

#dias {
  max-width: 120px;
}

.precio-total {
  font-size: 1.5em;
  margin: 1rem 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Nueva sección adopción */
.adopcion {
  padding: 5rem 5%;
  background: linear-gradient(45deg, var(--pastel-green) 50%, var(--pastel-orange) 50%);
}

.adopcion h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.mascotas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.mascota-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--light-bg);
}

.mascota-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.3) 100%);
}

.mascota-imagen {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.mascota-info {
  padding: 1.5rem;
}

.anuncio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.etiqueta-adopcion {
  background: var(--accent-color);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
}

.dias-restantes {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

.dias-restantes.urgente {
  background: #ff4444;
  animation: pulse 1.5s infinite;
}

.timestamp {
  display: block;
  color: #666;
  font-size: 0.8em;
  margin-top: 0.5rem;
}

.mascota-card .btn-contactar {
  width: 100%;
  margin-top: 1rem;
  background: var(--primary-color);
  color: white;
}

/* Mejoras calculadora */
.calculadora-mejorada {
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  border-radius: 25px;
  padding: 2.5rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.calculadora-avanzada {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.calculadora-input.condiciones-salud {
  grid-column: 1 / -1;
}

.condiciones-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.condiciones-list label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.resultado-calculadora {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  margin: 2rem 0;
  animation: fadeInUp 0.6s ease-out;
}

.porcion-diaria {
  font-size: 3.5rem;
  font-weight: bold;
  margin: 1rem 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Mejoras para la sección de adopción */
.mascota-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.mascota-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.mascota-imagen {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.mascota-info {
  padding: 1.5rem;
}

.anuncio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.etiqueta-adopcion {
  background: var(--accent-color);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
}

.dias-restantes {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

.dias-restantes.urgente {
  background: #ff4444;
  animation: pulse 1.5s infinite;
}

/* Mejoras visuales para el formulario de match */
.preview-foto {
  width: 100%;
  height: 200px;
  background: var(--light-bg);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  overflow: hidden;
}

.preview-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* Mejoras para el carrusel de videos */
.video-carousel {
  padding: 2rem 0;
  margin: 2rem 0;
  position: relative;
}

.video-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

/* Mejoras para la sección de blog */
.blog-grid {
  gap: 2.5rem;
  padding: 2rem 0;
}

.blog-post {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Mejoras para el calendario */
.calendar-container {
  background: white;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  margin: 2rem auto;
  max-width: 800px;
}

.calendar-container iframe {
  border: none;
  width: 100%;
  height: 500px;
}

/* Animaciones mejoradas */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Mejoras responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 6rem 5% 3rem;
  }

  .hero-image {
    margin-top: 2rem;
    max-width: 80%;
  }

  .servicios-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.5rem;
  }

  nav {
    flex-direction: column;
    padding: 1rem;
  }

  .logo {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: center;
  }

  .logo span {
    max-width: 150px;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    text-align: center;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .hero {
    padding: 5rem 1rem 2rem;
  }

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

  .hero-image {
    max-width: 100%;
  }

  .calculadora-grid {
    grid-template-columns: 1fr;
  }

  .servicio-card {
    padding: 1.5rem;
  }

  .video-carousel {
    padding: 1rem;
  }

  .mascota-card {
    margin: 1rem;
  }

  .contacto-container {
    padding: 1.5rem;
  }

  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .calendar-container {
    margin: 1rem;
  }

  .calendar-container iframe {
    height: 350px;
  }

  .guia-descarga {
    padding: 3rem 1rem;
  }

  .matchmaking-form {
    padding: 1rem;
  }

  .preview-foto {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .servicio-card {
    padding: 1rem;
  }

  .testimonio-card {
    padding: 1rem;
  }

  .blog-post {
    margin: 1rem;
  }

  .calculadora-container {
    padding: 1rem;
  }

  .footer-section {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .whatsapp-btn {
    width: 45px;
    height: 45px;
  }

  .whatsapp-icon {
    width: 25px;
    height: 25px;
  }
}

/* Mobile Menu Styles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }
}

/* Additional Responsive Improvements */
.testimonios-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling:!-important touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonios-carousel::-webkit-scrollbar {
  display: none;
}

.video-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-carousel::-webkit-scrollbar {
  display: none;
}

/* Form Improvements for Mobile */
input, 
textarea, 
select {
  font-size: 16px; /* Prevents zoom on mobile */
  padding: 0.8rem;
  border-radius: 10px;
}

button {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 16px;
}

/* Touch-friendly improvements */
.servicio-card,
.blog-post,
.testimonio-card,
.mascota-card {
  -webkit-tap-highlight-color: transparent;
}

/* Improved spacing for mobile */
section {
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  section {
    padding: 5rem 5%;
  }
}

/* Better image handling */
img {
  max-width: 100%;
  height: auto;
}

/* Improved button states for touch devices */
@media (hover: none) {
  .btn-contacto:active,
  .cta-button:active,
  .submit-button:active {
    transform: scale(0.98);
  }
}

/* Academia Virtual */
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.curso-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.curso-card h4 {
  padding: 1rem;
  color: var(--primary-color);
}

.categoria {
  display: block;
  padding: 0.5rem 1rem;
  background: var(--light-bg);
  margin: 0 1rem 1rem;
  border-radius: 10px;
  font-size: 0.9em;
}

/* Tienda de Productos */
.producto-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  width: 300px;
  margin: 1rem;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.producto-imagen {
  height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.producto-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.producto-card:hover .producto-imagen img {
  transform: scale(1.05);
}

.producto-info {
  padding: 1.5rem;
}

.producto-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.producto-descripcion {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  height: 3.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.categoria-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--pastel-green);
  color: var(--primary-color);
  border-radius: 15px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.precio {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-color);
  margin: 0.5rem 0;
}

.btn-add {
  width: 100%;
  padding: 0.8rem;
  border: none;
  background: var(--primary-color);
  color: white;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .producto-card {
    width: 280px;
  }
  
  .producto-imagen {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .producto-card {
    width: 260px;
  }
  
  .producto-imagen {
    height: 160px;
  }
  
  .producto-info {
    padding: 1rem;
  }
  
  .producto-descripcion {
    -webkit-line-clamp: 2;
    height: 2.8em;
  }
}

/* Carrito de Compras */
.carrito-flotante {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: var(--accent-color);
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  animation: pulse 2s infinite;
}

.carrito-contenido {
  position: fixed;
  bottom: 180px;
  right: 30px;
  width: 320px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  padding: 1.5rem;
  display: none;
}

.carrito-contenido.activo {
  display: block;
  animation: slideIn 0.3s ease-out;
}

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

.lista-carrito {
  max-height: 300px;
  overflow-y: auto;
  margin: 1rem 0;
}

.lista-carrito li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.btn-remove {
  background: none;
  border: none;
  color: #ff4444;
  cursor: pointer;
  margin-left: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.btn-remove:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .carrito-flotante {
    bottom: 80px;
    right: 20px;
    padding: 0.8rem;
  }
  
  .carrito-contenido {
    width: 90%;
    right: 5%;
    bottom: 160px;
  }
}

@media (max-width: 768px) {
  .perfil-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .foto-coach {
    margin: 0 auto;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
  }
  
  .timeline-marker {
    display: none;
  }
  
  .timeline-content::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .adopcion {
    background: linear-gradient(var(--pastel-green), var(--pastel-orange));
  }
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

/* Servicios Carousel */
.servicios-carousel .servicio-card {
  min-width: 300px;
  width: 300px;
}

/* Testimonios Carousel */
.testimonios-carousel .testimonio-card {
  min-width: 300px;
  width: 300px;
}

/* Anuncios Carousel */
.anuncios-carousel .mascota-card {
  min-width: 300px;
  width: 300px;
}

/* Academia Carousel */
.cursos-carousel .curso-card {
  min-width: 300px;
  width: 300px;
}

/* Tienda Carousel */
.tienda-carousel .producto-card {
  min-width: 250px;
  width: 250px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-container {
    padding: 0 30px;
  }
  
  .carousel > * {
    min-width: 260px;
    width: 260px;
  }
  
  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    padding: 0 20px;
  }
  
  .carousel > * {
    min-width: 220px;
    width: 220px;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .carousel {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .carousel-btn {
    display: none;
  }
}

.btn-servicio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.btn-servicio:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

.btn-servicio i {
  font-size: 1.2rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1100;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Enhanced Cart Styles */
.item-carrito {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.item-carrito:hover {
  background-color: rgba(0,0,0,0.02);
}

.item-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.price-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.item-quantity {
  font-size: 0.9em;
  color: #666;
}

.item-subtotal {
  font-weight: bold;
  color: var(--primary-color);
}

.btn-remove {
  background: none;
  border: none;
  color: #ff4444;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove:hover {
  background-color: rgba(255,68,68,0.1);
  transform: scale(1.1);
}

.btn-remove i {
  font-size: 1rem;
}

/* Toast Animation */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1100;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Enhance cart animation */
.carrito-contenido {
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.carrito-contenido.activo {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.item-specs {
  display: block;
  font-size: 0.8em;
  color: #666;
  margin: 0.2rem 0;
}

.item-carrito {
  padding: 1rem;
  border-radius: 10px;
  transition: background-color 0.3s;
}

.item-carrito:hover {
  background-color: var(--light-bg);
}

.calculadora-container .btn-pedido {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.calculadora-container .btn-pedido:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Product Filter Styles */
.filtros-productos {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.filtro-btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

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

.filtro-btn.active {
  background: var(--primary-color);
  color: white;
}

.producto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.tag {
  background: var(--pastel-green);
  color: var(--primary-color);
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .filtros-productos {
    gap: 0.5rem;
  }
  
  .filtro-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Search Box Styles */
.search-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(129, 199, 132, 0.3);
}

.search-box i {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-container {
    margin: 1rem auto;
  }
  
  .search-box input {
    padding: 0.8rem 2.5rem 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .search-box i {
    right: 1rem;
    font-size: 1rem;
  }
}