/* ===================================
   DENTAL CUSTOM CSS - Clínica Dental Fernanda Rivera
   =================================== */

:root {
  --color-primary: #1977cc;
  --color-secondary: #0066cc;
  --color-accent: #17a2b8;
  --color-success: #28a745;
  --color-danger: #dc3545;
  --color-light: #f8f9fa;
  --color-dark: #2c3e50;
}

/* ===== HEADER & NAVBAR ===== */
.header {
  border-bottom: 1px solid #f0f0f0;
}

.topbar {
  background: linear-gradient(135deg, #1977cc 0%, #0066cc 100%);
  color: white;
  padding: 12px 0;
}

.topbar .contact-info i {
  color: white;
  margin-right: 8px;
}

.topbar a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.topbar a:hover {
  opacity: 0.8;
}

.sitename {
  font-size: 26px;
  font-weight: 700;
  color: #1977cc;
  letter-spacing: -0.5px;
}

.cta-btn {
  background: linear-gradient(135deg, #1977cc 0%, #0066cc 100%);
  color: white !important;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(25, 119, 204, 0.3);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 119, 204, 0.4);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(25, 119, 204, 0.1);
  z-index: 0;
}

.hero .welcome h2 {
  font-size: 48px;
  font-weight: 700;
  color: #1977cc;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .welcome p {
  font-size: 20px;
  color: #666;
  font-weight: 500;
}

.why-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #1977cc;
  height: 100%;
  transition: all 0.3s ease;
}

.why-box:hover {
  box-shadow: 0 12px 32px rgba(25, 119, 204, 0.15);
  transform: translateY(-5px);
}

.why-box h3 {
  color: #1977cc;
  font-weight: 700;
  margin-bottom: 15px;
}

.icon-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 100%);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  border-top: 3px solid #1977cc;
}

.icon-box:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3f6ff 100%);
  transform: translateY(-5px);
}

.icon-box i {
  font-size: 36px;
  color: #1977cc;
  margin-bottom: 15px;
}

.icon-box h4 {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 18px;
}

.icon-box p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ===== SECTION TITLES ===== */
.section-title h2 {
  font-size: 40px;
  font-weight: 700;
  color: #1977cc;
  margin-bottom: 15px;
}

.section-title p {
  font-size: 16px;
  color: #666;
}

/* ===== WHY US SECTION ===== */
.why-us {
  padding: 60px 0;
}

.why-us h3 {
  font-size: 32px;
  font-weight: 700;
  color: #1977cc;
  margin-bottom: 10px;
}

.why-us .lead {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.why-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #f0f0f0;
}

.why-item:last-child {
  border-bottom: none;
}

.why-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1977cc 0%, #0066cc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}

.why-item h4 {
  font-weight: 700;
  color: #1977cc;
  margin-bottom: 10px;
  font-size: 18px;
}

.why-item p {
  color: #666;
  line-height: 1.8;
  margin: 0;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 60px 0;
}

.about h3 {
  font-size: 32px;
  font-weight: 700;
  color: #1977cc;
  margin-bottom: 10px;
}

.about .lead {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.about-content p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-content ul li {
  color: #666;
  margin-bottom: 10px;
  line-height: 1.8;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 60px 0;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border-top: 3px solid transparent;
}

.service-card:hover {
  box-shadow: 0 12px 32px rgba(25, 119, 204, 0.15);
  transform: translateY(-8px);
  border-top-color: #1977cc;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #1977cc 0%, #0066cc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: white;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  font-weight: 700;
  color: #1977cc;
  margin-bottom: 15px;
  font-size: 18px;
}

.service-card p {
  color: #666;
  line-height: 1.8;
  font-size: 14px;
}

/* ===== FAQ SECTION ===== */
.faq-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-weight: 700;
  color: #1977cc;
  margin: 0;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-toggle {
  color: #1977cc;
  transition: transform 0.3s ease;
  font-size: 18px;
}

.faq-item.faq-active {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3f6ff 100%);
}

.faq-item.faq-active h3 {
  color: #1977cc !important;
}

.faq-item.faq-active .faq-toggle {
  transform: rotate(90deg);
}

.faq-content {
  display: none;
  margin-top: 15px;
  color: #666;
  line-height: 1.8;
}

.faq-item.faq-active .faq-content {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  padding: 60px 0;
}

.testimonial-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid #1977cc;
}

.testimonial-card:hover {
  box-shadow: 0 12px 32px rgba(25, 119, 204, 0.15);
  transform: translateY(-5px);
}

.testimonial-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1977cc;
}

.testimonial-header h4 {
  margin: 0;
  color: #1977cc;
  font-weight: 700;
  font-size: 16px;
}

.testimonial-header {
  margin-bottom: 15px;
}

.stars {
  font-size: 13px;
  color: #ffc107;
}

.testimonial-card p {
  color: #666;
  line-height: 1.8;
  font-style: italic;
  margin: 0;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 60px 0;
}

.info-item {
  padding: 20px;
  background: white;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.info-item:hover {
  box-shadow: 0 6px 16px rgba(25, 119, 204, 0.1);
  transform: translateX(5px);
}

.info-item i {
  font-size: 28px;
  color: #1977cc;
  margin-right: 15px;
  flex-shrink: 0;
}

.info-item h3 {
  font-weight: 700;
  color: #1977cc;
  margin: 0 0 5px 0;
  font-size: 16px;
}

.info-item p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.php-email-form button {
  background: linear-gradient(135deg, #1977cc 0%, #0066cc 100%);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(25, 119, 204, 0.3);
}

.php-email-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 119, 204, 0.4);
}

/* ===== FOOTER ===== */
footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

footer .sitename {
  color: #1977cc;
}

footer h4 {
  color: #1977cc;
  font-weight: 700;
}

footer a {
  color: #666;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #1977cc;
}

footer .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1977cc 0%, #0066cc 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-right: 10px;
}

footer .social-links a:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #0066cc 0%, #1977cc 100%);
}

/* ===== MORE BUTTON ===== */
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1977cc;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.more-btn:hover {
  gap: 12px;
  color: #0066cc;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero .welcome h2 {
    font-size: 32px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .about h3,
  .why-us h3 {
    font-size: 24px;
  }

  .sitename {
    font-size: 20px;
  }

  .navmenu ul li a {
    font-size: 14px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== SCROLL TOP ===== */
#scroll-top {
  background: linear-gradient(135deg, #1977cc 0%, #0066cc 100%);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 12px rgba(25, 119, 204, 0.3);
  transition: all 0.3s ease;
}

#scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(25, 119, 204, 0.4);
}

/* ===== LOADING & SUCCESS ===== */
.loading {
  display: none;
  text-align: center;
  color: #1977cc;
  font-weight: 700;
}

.error-message {
  display: none;
  text-align: center;
  color: #dc3545;
  font-weight: 700;
}

.sent-message {
  display: none;
  text-align: center;
  color: #28a745;
  font-weight: 700;
}

/* ===== GALLERY SECTION ===== */
.gallery {
  padding: 60px 0;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.gallery-card:hover {
  box-shadow: 0 12px 32px rgba(25, 119, 204, 0.2);
  transform: translateY(-8px);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(25, 119, 204, 0.9) 0%, rgba(0, 102, 204, 0.9) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 20px;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px 0;
}

.gallery-overlay p {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
}
