body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h4, h5 {
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: #475569;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleAppear 0.8s ease-out;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #06b6d4, #0891b2);
  border-radius: 2px;
  animation: lineExpand 0.6s ease-out 0.3s backwards;
}

.section-content {
  margin-bottom: 3rem;
  max-width: 1100px;
}


.hero {
  background: linear-gradient(135deg, rgba(12, 100, 116, 0.95) 0%, rgba(130, 183, 196, 0.95) 100%),
              url('../imagenes/doctorDerecho.png') center center/cover no-repeat;
  height: 65vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: slideInDown 0.8s ease-out;
}

.hero p {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.95);
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeIn 1s ease-out 0.3s backwards;
}

.hero .btn {
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid white;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: bounceIn 1s ease-out 0.6s backwards;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero .btn:hover {
  transform: translateY(-4px) scale(1.05);
  background: white;
  color: #06b6d4;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* MARCO LEGAL CARDS MODERNO */
.marco-card {
  border: none;
  border-radius: 16px;
  background: white;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardFadeIn 0.6s ease-out backwards;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.marco-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #06b6d4 0%, #0891b2 100%);
  transition: width 0.4s ease;
}

.marco-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

.marco-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.marco-card .card-body {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.marco-card .card-title {
  font-weight: 700;
  font-size: 1.3rem;
  color: #06b6d4;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.marco-card:hover .card-title {
  color: #0891b2;
}

.marco-card .card-text {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
}

/* Escalonamiento de animaciones */
.col-md-6:nth-child(1) .marco-card {
  animation-delay: 0.1s;
}
.col-md-6:nth-child(2) .marco-card {
  animation-delay: 0.2s;
}
.col-md-6:nth-child(3) .marco-card {
  animation-delay: 0.3s;
}
.col-md-6:nth-child(4) .marco-card {
  animation-delay: 0.4s;
}

/* Imagen Card */
.marco-img-card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: scaleIn 0.8s ease-out 0.5s backwards;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.marco-img-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.25);
}

.marco-img-card img {
  max-height: 320px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.marco-img-card:hover img {
  transform: scale(1.08);
}

.marco-img-card .card-body {
  padding: 2rem;
  background: linear-gradient(to bottom, white 0%, rgba(6, 182, 212, 0.02) 100%);
}

.marco-img-card .card-title {
  font-size: 1.4rem;
  color: #06b6d4;
  font-weight: 700;
  margin-bottom: 1rem;
}

.marco-img-card .card-text {
  color: #64748b;
  line-height: 1.7;
}

/* Botones Modernos */
#marco-legal .btn {
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

#marco-legal .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#marco-legal .btn:hover::before {
  width: 300px;
  height: 300px;
}

#marco-legal .btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

#marco-legal .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

#marco-legal .btn-outline-secondary {
  border: 2px solid #06b6d4;
  color: #06b6d4;
  background: transparent;
}

#marco-legal .btn-outline-secondary:hover {
  background: #06b6d4;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

/* Lead text */
.lead {
  font-size: 1.15rem;
  color: #475569;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 0.8s ease-out 0.3s backwards;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
  text-align: center;
  padding: 2rem 0;
  font-size: 1rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 3s infinite;
}

/* ANIMACIONES */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes titleAppear {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineExpand {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .marco-card .card-body {
    padding: 1.5rem;
  }
}