/* ==========================================
   1. RESET Y CONFIGURACIÓN GENERAL (FONDO CLARO)
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f7f7f5; /* Fondo general claro, limpio y neutro */
  color: #2c2c2c;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* ==========================================
   2. HEADER Y NAVEGACIÓN (OSCURO)
   ========================================== */
.main-header {
  background-color: #0d0d0d;
  padding: 15px 40px;
  width: 100%;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* MARCA Y SUBTÍTULO DORADO (IZQUIERDA) */
.brand-text {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #d4af37;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  white-space: nowrap;
}

.brand-subtitle {
  font-weight: 400;
  font-size: 0.85rem;
  color: #e5c158;
}

.brand-text:hover {
  color: #f3e5ab;
}

/* MENÚ DE NAVEGACIÓN (HORIZONTAL) */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}

.main-nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  color: #d4af37;
}

/* BOTÓN: VOLVER A CLEMAR WEB */
.btn-back-clemar {
  color: #a0a0a0 !important;
  font-size: 0.75rem !important;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.btn-back-clemar:hover {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.08);
}

/* BOTÓN: RESERVAR CITA (WHATSAPP) */
.main-nav .btn-reservar {
  border: 1px solid #d4af37;
  padding: 7px 14px;
  border-radius: 4px;
  color: #d4af37 !important;
  background-color: transparent;
  white-space: nowrap;
}

.main-nav .btn-reservar:hover {
  background-color: #d4af37;
  color: #0d0d0d !important;
}

/* ==========================================
   3. BANNER PRINCIPAL (HERO BANNER)
   ========================================== */
.hero-banner {
  width: 100%;
  height: 320px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* ==========================================
   4. SECCIÓN HERO Y SECCIONES GENERALES (CLARAS)
   ========================================== */
.ddt-hero {
  padding: 50px 20px;
  background-color: #f7f7f5;
}

.ddt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.badge-consultoria {
  color: #b3922e;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.hero-text h1 {
  color: #b3922e;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-text .subtitle {
  color: #333333;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.hero-text .slogan {
  color: #555555;
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary-ddt {
  background-color: #d4af37;
  color: #0d0d0d !important;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary-ddt:hover {
  background-color: #b3922e;
}

.btn-secondary-ddt {
  color: #9c7c22 !important;
  border: 1px solid #d4af37;
  padding: 11px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary-ddt:hover {
  background-color: rgba(212, 175, 55, 0.1);
}

.hero-image-container img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  object-fit: cover;
}

/* ==========================================
   5. TARJETAS (GRIS PLATEADO DEGRADADO) Y GRILLAS
   ========================================== */
.ddt-section {
  padding: 60px 0;
  background-color: #f7f7f5;
}

.bg-darker {
  background-color: #eeeee9;
}

.section-title {
  color: #b3922e;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle {
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
}

.info-box-grid, .cards-grid, .profesionales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* Tarjetas con gris plateado y degradado sutil */
.info-box, .card-ddt, .prof-card, .express-card {
  background: linear-gradient(135deg, #f4f4f2 0%, #e6e6e2 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 25px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.info-box h3, .card-ddt h3, .prof-card h3, .express-card h2 {
  color: #1a1a1a;
}

.info-box p, .card-ddt p, .prof-card p, .express-card p {
  color: #444444;
}

.prof-card .prof-title {
  color: #555555;
}

/* Corrección de logos superiores en tarjetas de profesionales */
.prof-top-logo {
  text-align: center;
  margin-bottom: 15px;
}

.prof-top-logo img {
  max-width: 140px;
  max-height: 45px;
  object-fit: contain;
  display: inline-block;
}

/* Contenedor circular para fotos de perfil de profesionales */
.prof-img-container {
  width: 110px;
  height: 110px;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.5);
}

.prof-perfil-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Imágenes para tarjetas de servicios */
.card-img-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 15px;
}

.card-service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.express-card {
  border-color: #d4af37;
  text-align: center;
  padding: 40px 20px;
}

.express-tag {
  background-color: #d4af37;
  color: #0d0d0d;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 3px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}

.disclaimer-box {
  margin-top: 30px;
  padding: 20px;
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid #d4af37;
  border-radius: 4px;
  color: #333333;
}

/* ==========================================
   6. FORMULARIO Y FOOTER INSTITUCIONAL (OSCURO)
   ========================================== */
.ddt-section.bg-darker#contacto {
  background-color: #0d0d0d;
}

.ddt-section#contacto .section-title {
  color: #d4af37;
}

.ddt-section#contacto .section-subtitle {
  color: #a0a0a0;
}

.ddt-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.full-width { grid-column: span 2; }

.form-group label {
  display: block;
  color: #d4af37;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px;
  background-color: #181818;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #fff;
  border-radius: 4px;
}

.form-privacy p {
  color: #b3b3b3;
  font-size: 0.85rem;
  line-height: 1.5;
}

.ddt-footer {
  background-color: #050505;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 40px 0 20px 0;
  color: #e0e0e0;
}

.footer-grid-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h3 {
  color: #d4af37;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-col p {
  color: #b3b3b3;
}

.footer-col a {
  display: block;
  color: #a0a0a0;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-col a:hover { color: #d4af37; }

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-copyright p {
  color: #888888;
  font-size: 0.85rem;
}

.dev-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d4af37;
  text-decoration: none;
}

.dev-tree-img { width: 20px; height: auto; }

/* ==========================================
   7. MENÚ HAMBURGUESA Y RESPONSIVE
   ========================================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #d4af37;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0d0d0d;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px;
  }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-grid { grid-template-columns: 1fr; }
  .ddt-form { grid-template-columns: 1fr; }
  .full-width { grid-column: span 1; }
  .hero-banner { height: 220px; }
}

/* ==========================================
   8. REFUERZO DE BORDES Y LÍNEAS DE CONTRASTE
   ========================================== */

/* Bordes y sombras refinadas para todas las tarjetas e info-boxes */
.info-box, .card-ddt, .prof-card, .express-card {
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Efecto hover elegante al pasar el mouse por las tarjetas */
.info-box:hover, .card-ddt:hover, .prof-card:hover, .express-card:hover {
  border-color: #d4af37 !important;
  transform: translateY(-3px);
}

/* Contenedores de imágenes con marco dorado definido */
.card-img-container, .prof-img-container, .hero-image-container img {
  border: 1px solid rgba(212, 175, 55, 0.4);
}

/* Líneas divisorias sutiles en secciones y cajas internas */
.disclaimer-box {
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-left: 4px solid #d4af37;
}
