* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #1b5e20 0%, #e8dfc8 60%, #d7e8d2 100%);
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 60px;
  background: url('image.png') no-repeat center right;
  background-size: cover;
  color: white;
}

.hero-text h1 {
  font-size: 48px;
}

.btn {
  padding: 14px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  text-decoration: none;
  display: inline-block;

  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  filter: brightness(1.1);
}

.btn:active {
  transform: scale(0.95);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.btn:link,
.btn:visited{
  text-decoration: none;
}

.btn-primary { background: #2e7d32; color: white; }
.btn-secondary { background: linear-gradient(45deg,#ffb300,#ff9800); color: white; }

.section {
  padding: 70px 40px;
}

/* DOCTOR */
.doctor {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  background: linear-gradient(180deg, #ffffff, #f5f5f5);
  padding: 50px;
  border-radius: 16px;
  max-width: 1100px;
  margin: auto;
}

.doctor img {
  width: 300px;
  border-radius: 12px;
}

/* SERVICIOS */
.services-section {
  padding: 100px 20px;
  background: linear-gradient(180deg,#f7f2e7, #ffffff);
}

.services-title {
  text-align: center;
  font-size: 36px;
  color: #2e7d32;
  margin-bottom: 50px;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: auto;
}

.card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  padding: 35px;
  border-radius: 22px;
  text-align: center;
  transition: 0.4s;

  opacity: 0;
  transform: translateY(40px);
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-12px) scale(1.04);
}

.icon {
  font-size: 36px;
}

/* FLOW */
.flow-section {
  padding: 100px 20px;
  text-align: center;

  background:
    radial-gradient(circle at 50% 30%, rgba(255,215,0,0.15), transparent 40%),
    linear-gradient(180deg, #1b5e20 0%, #2e7d32 60%, #1b5e20 100%);

  color: white;
}

.flow-title {
  font-size: 34px;
  color: white;
}

.flow-sub {
  margin-bottom: 60px;
  color: rgba(255,255,255,0.8);
}

.flow {
  display: flex;
  justify-content: center;
  gap: 60px;
  position: relative;
}

.flow::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg,#66bb6a,#ffd54f);
  top: 50%;
  left: 20%;
}

.flow-item {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.4s;
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

.flow-item:hover {
  transform: scale(1.1);
}

.flow-icon {
  font-size: 32px;
}

/* TESTIMONIOS */
.testimonials-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, #ffffff, #f7f2e7);
  text-align: center;
}

.testimonials-title {
  font-size: 34px;
  color: #2e7d32;
  margin-bottom: 50px;
  font-weight: 700;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.testimonial {
  background: white;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: left;
  position: relative;
  transition: 0.4s;
}

.testimonial:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.stars {
  color: #ffb300;
  margin-bottom: 10px;
  font-size: 18px;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 15px;
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.user-name {
  font-weight: 600;
}

/* CONTACTO */
.contact-section {
  padding: 100px 20px;
  text-align: center;

  background:
    radial-gradient(circle at 80% 20%, rgba(255,215,0,0.12), transparent 40%),

}

.contact-title {
  font-size: 34px;
  color: #1b5e20;
  margin-bottom: 10px;
  font-weight: 700;
}

.contact-sub {
  color: rgba(0,0,0,0.6);
  opacity: 0.7;
  margin-bottom: 50px;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: auto;
  align-items: center;
}

.contact-info {
  text-align: left;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 16px;
}

.info-item span {
  font-size: 24px;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: 'Poppins', sans-serif;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border: 1px solid #2e7d32;
  box-shadow: 0 0 5px rgba(46,125,50,0.2);
}

.error {
  color: #d32f2f;
  font-size: 13px;
  display: block;
  margin-top: -10px;
  margin-bottom: 10px;
}

.input-error {
  border: 1px solid #d32f2f !important;
}

/* FOOTER */
.footer {
  background: linear-gradient(180deg, #0f2e1c, #1b5e20);
  color: white;
  padding-top: 60px;
  margin-top: 60px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,#ffb300,#2e7d32,#ffb300);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px 40px;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 15px;
}

.footer-col p {
  opacity: 0.8;
  line-height: 1.5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: 0.3s;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 14px;
  opacity: 0.7;
}

/* RESPONSIVE*/
@media(max-width:768px){
  .hero { flex-direction: column; text-align: center; }
  .doctor { flex-direction: column; }
  .flow::before { display:none; }
}