
:root {
  --naranja-vet: #f39c39;
  --morado-vet: #847cb3;
  --gris-fondo: #f7f7fa;
  --gris-card: #f0f8f7;
  --sombra: 0 6px 24px rgba(243,156,57,0.10);
}

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

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--gris-fondo);
  color: #333;
  line-height: 1.6;
}

/* HERO VETERINARIA MODERNO */
.hero-vet {
  background: url('BANNER-RVX.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-vet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.overlay-vet {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.overlay-vet .logo {
  width: 180px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.overlay-vet h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.overlay-vet p {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

/* BOTÓN MODERNO */
.btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  color: var(--naranja-vet);
  padding: 16px 36px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.3px;
}

.btn:hover {
  background: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: var(--naranja-vet);
}

/* SECCIONES MODERNAS */
.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  color: var(--naranja-vet);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: -1px;
}

.section p {
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 32px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* LISTA MODERNA */
.section ul {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--sombra);
  padding: 32px 40px;
  border-left: 6px solid var(--naranja-vet);
}

.section ul li {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 16px;
  padding-left: 0;
  position: relative;
}

.section ul li:last-child {
  margin-bottom: 0;
}

/* SECCIÓN NOSOTROS MODERNA */
.nosotros-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 0;
  margin-bottom: 40px;
}

.nosotros-texto {
  flex: 1 1 400px;
}

.nosotros-texto h2 {
  color: var(--naranja-vet);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: left;
  letter-spacing: -1px;
}

.nosotros-texto p {
  font-size: 1.15rem;
  color: #444;
  text-align: left;
  margin: 0;
  line-height: 1.7;
}

.nosotros-imagen {
  flex: 0 0 380px;
}

.nosotros-img-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(243, 156, 57, 0.2);
  border: 3px solid var(--naranja-vet);
  transition: all 0.4s ease;
  position: relative;
}

/* Overlay degradado más pronunciado */
.nosotros-img-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(243, 156, 57, 0.15) 0%, 
    rgba(132, 124, 179, 0.25) 50%,
    rgba(243, 156, 57, 0.1) 100%);
  z-index: 1;
  transition: all 0.4s ease;
}

/* Viñeta fotográfica */
.nosotros-img-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, 
    rgba(0,0,0,0) 50%, 
    rgba(0,0,0,0.1) 70%, 
    rgba(0,0,0,0.3) 100%);
  z-index: 2;
  transition: opacity 0.4s ease;
}

.nosotros-img-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 60px rgba(243, 156, 57, 0.35);
}

.nosotros-img-card:hover::before {
  background: linear-gradient(135deg, 
    rgba(243, 156, 57, 0.25) 0%, 
    rgba(132, 124, 179, 0.35) 50%,
    rgba(243, 156, 57, 0.2) 100%);
}

.nosotros-img-card:hover::after {
  opacity: 0.7;
}

.nosotros-img-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: all 0.4s ease;
  filter: contrast(1.05) brightness(0.95) saturate(1.1);
}

.nosotros-img-card:hover img {
  transform: scale(1.08);
  filter: contrast(1.1) brightness(1.05) saturate(1.2);
}

/* GRID DE ESTUDIOS */
.estudios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* Centrar las últimas 2 cards */
.estudios-grid .estudio-card:nth-child(4),
.estudios-grid .estudio-card:nth-child(5) {
  margin: 0 auto;
  max-width: 350px;
}

/* Título de tipos de estudios */
.tipos-estudios-titulo {
  color: var(--morado-vet);
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: -1px;
}

.estudio-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--sombra);
  padding: 24px;
  border-left: 6px solid var(--naranja-vet);
  transition: transform 0.2s, box-shadow 0.2s;
}

.estudio-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(243, 156, 57, 0.2);
}

.estudio-card h3 {
  color: var(--naranja-vet);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.estudio-card ul {
  max-width: none;
  margin: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  background: transparent;
}

.estudio-card ul li {
  font-size: 1rem;
  color: #555;
  margin-bottom: 8px;
  padding-left: 0;
  position: relative;
}

.estudio-card ul li:last-child {
  margin-bottom: 0;
}

/* MAPA Y CONTACTO MODERNO */
.contacto-container {
  display: flex;
  gap: 40px;
  align-items: stretch;
  margin-top: 24px;
  justify-content: center;
}

.contacto-mapa {
  flex: 1 1 400px;
  max-width: 580px;
}

.contacto-info {
  flex: 1 1 400px;
  max-width: 480px;
}

.mapa {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--sombra);
  padding: 0;
  border-left: 6px solid var(--naranja-vet);
  overflow: hidden;
  height: 100%;
}

.mapa iframe {
  border-radius: 12px 12px 0 0;
  box-shadow: none;
  border: 2px solid var(--naranja-vet);
  border-bottom: none;
  height: 100%;
  min-height: 400px;
}

.contacto-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--sombra);
  padding: 32px 28px;
  border-left: 6px solid var(--naranja-vet);
  height: 100%;
}

.contacto-card h3 {
  color: var(--naranja-vet);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: left;
}

.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.contacto-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--gris-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--naranja-vet);
  flex-shrink: 0;
}

.contacto-item strong {
  color: var(--naranja-vet);
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
}

.contacto-item p {
  color: #444;
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
  text-align: left;
}

.contacto-item a {
  color: var(--morado-vet);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s;
}

.contacto-item a:hover {
  color: var(--naranja-vet);
}

/* GALERÍA DE IMÁGENES */
.galeria-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--sombra);
  margin: 40px auto;
  padding: 40px;
  border-left: 6px solid var(--morado-vet);
}

.galeria-imagenes {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.galeria-imagen {
  flex: 1 1 300px;
  max-width: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 3px solid var(--morado-vet);
  transition: all 0.4s ease;
  position: relative;
}

/* Overlay degradado más dramático */
.galeria-imagen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(132, 124, 179, 0.2) 0%, 
    rgba(243, 156, 57, 0.15) 50%,
    rgba(132, 124, 179, 0.25) 100%);
  z-index: 1;
  transition: all 0.4s ease;
}

/* Viñeta fotográfica para galería */
.galeria-imagen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, 
    rgba(0,0,0,0) 40%, 
    rgba(0,0,0,0.1) 65%, 
    rgba(0,0,0,0.4) 100%);
  z-index: 2;
  transition: opacity 0.4s ease;
}

.galeria-imagen:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 35px rgba(132, 124, 179, 0.3);
}

.galeria-imagen:hover::before {
  background: linear-gradient(135deg, 
    rgba(132, 124, 179, 0.3) 0%, 
    rgba(243, 156, 57, 0.25) 50%,
    rgba(132, 124, 179, 0.35) 100%);
}

.galeria-imagen:hover::after {
  opacity: 0.6;
}

.galeria-imagen img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: all 0.4s ease;
  filter: contrast(1.05) brightness(0.95) saturate(1.1);
}

.galeria-imagen:hover img {
  transform: scale(1.08);
  filter: contrast(1.15) brightness(1.05) saturate(1.25);
}

/* FOOTER MODERNO */
.footer {
  background: linear-gradient(90deg, var(--naranja-vet) 0%, var(--morado-vet) 100%);
  color: #fff;
  text-align: center;
  padding: 24px 0 12px 0;
  margin-top: 48px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 12px rgba(243,156,57,0.15);
}

.footer p {
  font-size: 1rem;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-vet {
    min-height: 250px;
    padding: 30px 15px;
  }

  .overlay-vet h1 {
    font-size: 2rem;
  }
  
  .overlay-vet p {
    font-size: 1rem;
  }
  
  .overlay-vet .logo {
    width: 140px;
  }
  
  .section h2 {
    font-size: 1.8rem;
  }
  
  .section p {
    font-size: 1.05rem;
  }
  
  .section ul {
    padding: 24px 28px;
  }
  
  .nosotros-container {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  
  .nosotros-texto h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 16px;
  }
  
  .nosotros-texto p {
    text-align: center;
    margin-bottom: 0;
  }
  
  .nosotros-imagen {
    flex: none;
    max-width: 100%;
  }
  
  .nosotros-img-card {
    max-width: 350px;
    margin: 0 auto;
  }
  
  .estudios-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .estudios-grid .estudio-card:nth-child(4),
  .estudios-grid .estudio-card:nth-child(5) {
    margin: 0;
    max-width: 100%;
  }
  
  .tipos-estudios-titulo {
    font-size: 1.5rem;
    margin-top: 32px;
  }
  
  .estudio-card {
    padding: 20px;
  }
  
  .estudio-card h3 {
    font-size: 1.2rem;
  }
  
  .contacto-container {
    flex-direction: column;
    gap: 28px;
  }
  
  .contacto-mapa, .contacto-info {
    max-width: 100%;
  }
  
  .contacto-card {
    padding: 24px 16px;
  }
  
  .contacto-item {
    text-align: left;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .contacto-item div {
    text-align: left;
  }
  
  .contacto-item strong {
    text-align: left;
    font-size: 1rem;
  }
  
  .contacto-item p {
    text-align: left;
    font-size: 0.95rem;
    color: #444 !important;
  }
  
  .mapa iframe {
    min-height: 300px;
  }
  
  .galeria-imagenes {
    flex-direction: column;
    gap: 16px;
  }
  
  .galeria-imagen {
    max-width: 100%;
  }
}
