/* ============================================
   HOSPIHUELLAS - Hospital Veterinario
   Estilos principales
   ============================================ */

:root {
  --azul: #1E9FD9;
  --azul-oscuro: #0F4C81;
  --azul-claro: #E8F6FC;
  --verde: #8BC34A;
  --verde-oscuro: #6FA235;
  --verde-claro: #F1F8E9;
  --texto: #1a2e3a;
  --texto-suave: #5a6c75;
  --gris: #f5f7f9;
  --gris-borde: #e3e9ed;
  --blanco: #ffffff;
  --sombra-sm: 0 2px 8px rgba(15, 76, 129, 0.06);
  --sombra-md: 0 8px 30px rgba(15, 76, 129, 0.10);
  --sombra-lg: 0 20px 60px rgba(15, 76, 129, 0.15);
  --radio: 14px;
  --radio-lg: 22px;
  --transicion: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--blanco);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--azul-oscuro);
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--verde);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transicion);
  font-family: inherit;
}

.btn-primary {
  background: var(--verde);
  color: white;
  box-shadow: 0 6px 20px rgba(139, 195, 74, 0.35);
}
.btn-primary:hover {
  background: var(--verde-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 195, 74, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--azul-oscuro);
  border: 2px solid var(--azul-oscuro);
}
.btn-outline:hover {
  background: var(--azul-oscuro);
  color: white;
}

.btn-white {
  background: white;
  color: var(--azul-oscuro);
}
.btn-white:hover {
  background: var(--verde);
  color: white;
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  background: var(--azul-oscuro);
  color: white;
  font-size: 13px;
  padding: 10px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-right { display: flex; gap: 20px; }
.topbar a { color: white; text-decoration: none; transition: opacity var(--transicion); }
.topbar a:hover { opacity: 0.75; }
.topbar i { color: var(--verde); margin-right: 6px; }

/* ============================================
   HEADER
   ============================================ */
.header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sombra-sm);
  transition: var(--transicion);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 30px;
}
.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav {
  display: flex;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.nav a {
  color: var(--texto);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  transition: var(--transicion);
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--verde);
  transition: var(--transicion);
}
.nav a:hover { color: var(--azul); }
.nav a:hover::after { width: 100%; }

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--verde);
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transicion);
  box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
}
.btn-header:hover {
  background: var(--verde-oscuro);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--azul-oscuro);
  border-radius: 2px;
  transition: var(--transicion);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #f0f9fd 0%, #e8f6fc 50%, #f1f8e9 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(30, 159, 217, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 195, 74, 0.10) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  background: white;
  color: var(--azul);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--sombra-sm);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero p {
  font-size: 1.1rem;
  color: var(--texto-suave);
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(15, 76, 129, 0.1);
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  color: var(--azul-oscuro);
  line-height: 1;
}
.hero-stats span {
  font-size: 13px;
  color: var(--texto-suave);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  height: 520px;
}
.hero-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-oscuro) 100%);
  border-radius: 50%;
  opacity: 0.95;
}
.hero-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid white;
  box-shadow: var(--sombra-lg);
}
.hero-badge {
  position: absolute;
  bottom: 40px;
  left: -10px;
  background: white;
  padding: 16px 22px;
  border-radius: var(--radio);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--sombra-md);
  animation: float 3s ease-in-out infinite;
}
.hero-badge i {
  width: 44px;
  height: 44px;
  background: var(--verde-claro);
  color: var(--verde);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.hero-badge strong { display: block; color: var(--azul-oscuro); font-size: 14px; }
.hero-badge span { font-size: 12px; color: var(--texto-suave); }

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

/* ============================================
   FEATURES BAR
   ============================================ */
.features {
  background: white;
  padding: 30px 0;
  border-bottom: 1px solid var(--gris-borde);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-item i {
  width: 50px;
  height: 50px;
  background: var(--azul-claro);
  color: var(--azul);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.feature-item strong { display: block; color: var(--azul-oscuro); font-size: 15px; }
.feature-item span { font-size: 13px; color: var(--texto-suave); }

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--gris);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-images {
  position: relative;
  height: 520px;
}
.about-img-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-lg);
  z-index: 2;
}
.about-img-2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-lg);
  border: 8px solid white;
  z-index: 3;
}
.about-deco {
  position: absolute;
  top: 30px;
  right: 20px;
  width: 100px;
  height: 100px;
  background: var(--verde);
  border-radius: 50%;
  opacity: 0.2;
  z-index: 1;
}

.section-tag {
  display: inline-block;
  background: var(--verde-claro);
  color: var(--verde-oscuro);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}
.section-tag.light {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.about-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 22px;
}
.about-text > p {
  color: var(--texto-suave);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.about-list {
  list-style: none;
  margin-bottom: 32px;
}
.about-list li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--texto);
  font-weight: 500;
}
.about-list i {
  color: var(--verde);
  font-size: 18px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 100px 0;
  background: white;
}
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 18px;
}
.section-head p {
  color: var(--texto-suave);
  font-size: 1.05rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radio-lg);
  border: 1px solid var(--gris-borde);
  transition: var(--transicion);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--azul), var(--verde));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card.featured {
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul) 100%);
  color: white;
  border-color: transparent;
}
.service-card.featured h3 { color: white; }
.service-card.featured p { color: rgba(255, 255, 255, 0.85); }
.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.service-icon {
  width: 72px;
  height: 72px;
  background: var(--azul-claro);
  color: var(--azul);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 22px;
  transition: var(--transicion);
}
.service-card:hover .service-icon {
  background: var(--verde);
  color: white;
  transform: scale(1.08);
}
.service-card.featured:hover .service-icon {
  background: var(--verde);
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--texto-suave);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  z-index: 1;
}
.cta-banner h2 {
  color: white;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
}

/* ============================================
   TIPS
   ============================================ */
.tips {
  padding: 100px 0;
  background: var(--gris);
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tip-card {
  background: white;
  border-radius: var(--radio-lg);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  transition: var(--transicion);
}
.tip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-md);
}
.tip-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.tip-content { padding: 24px; }
.tip-cat {
  display: inline-block;
  background: var(--azul-claro);
  color: var(--azul);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.tip-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.tip-content p {
  color: var(--texto-suave);
  font-size: 14px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, #0a3a64 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 195, 74, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.contact-info h2 {
  color: white;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 18px;
}
.contact-info h2 em { color: var(--verde); }
.contact-info > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 36px;
}
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-list i {
  width: 48px;
  height: 48px;
  background: rgba(139, 195, 74, 0.15);
  color: var(--verde);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-list strong {
  display: block;
  color: white;
  margin-bottom: 4px;
  font-size: 15px;
}
.contact-list span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  line-height: 1.6;
}

.contact-form-wrap {
  background: white;
  padding: 40px;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-lg);
}
.contact-form h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.contact-form > p {
  color: var(--texto-suave);
  font-size: 14.5px;
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gris-borde);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--texto);
  margin-bottom: 12px;
  transition: var(--transicion);
  background: white;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(30, 159, 217, 0.1);
}
.contact-form textarea { resize: vertical; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0a2540;
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
.footer-logo {
  height: 70px;
  width: auto;
  background: white;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  display: block;
}
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.footer-col h4 {
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 6px 0;
  font-size: 14.5px;
  transition: var(--transicion);
}
.footer-col a:hover { color: var(--verde); padding-left: 4px; }
.footer-col i { color: var(--verde); margin-right: 8px; width: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  text-align: center;
  font-size: 13.5px;
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: var(--transicion);
  animation: pulse 2s infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  background: #1ebe5d;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .hero-inner,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { height: 400px; }
  .hero-circle,
  .hero-img { width: 340px; height: 340px; }
  .about-images { height: 420px; }
  .services-grid,
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav {
    position: fixed;
    top: 88px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: var(--sombra-md);
    transition: max-height 0.4s ease;
  }
  .nav.open { max-height: 400px; padding: 20px 0; }
  .nav a {
    padding: 14px 24px;
    width: 100%;
    text-align: left;
  }
  .menu-toggle { display: flex; }
  .btn-header { display: none; }
  .hero { padding: 50px 0 70px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stats strong { font-size: 1.8rem; }
  .hero-circle, .hero-img { width: 280px; height: 280px; }
  .hero-visual { height: 320px; }
  .about, .services, .tips, .contact { padding: 70px 0; }
  .about-images { height: 360px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .contact-form-wrap { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .services-grid,
  .tips-grid,
  .features-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { justify-content: center; }
  .logo img { height: 48px; }
}

/* ============================================
   ANIMACIONES AL CARGAR
   ============================================ */
.hero-text > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
}
.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.2s; }
.hero-text > *:nth-child(3) { animation-delay: 0.3s; }
.hero-text > *:nth-child(4) { animation-delay: 0.4s; }
.hero-text > *:nth-child(5) { animation-delay: 0.5s; }
.hero-visual { animation: fadeIn 1s 0.4s ease forwards; opacity: 0; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
