/*
Theme Name: CDA
Theme URI: https://example.com/cda
Author: Equipo CDA
Author URI: https://example.com
Description: Tema WordPress responsive para centros de diagnostico automotriz.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: cda
*/

:root {
  --cda-bg: #0b1220;
  --cda-bg-soft: #111a2b;
  --cda-card: #162235;
  --cda-primary: #f97316;
  --cda-primary-dark: #ea580c;
  --cda-text-soft: #aab3c2;
  --cda-white: #ffffff;
  --cda-border: #24344f;
  --cda-success: #22c55e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, var(--cda-bg) 0%, #0f172a 100%);
  color: var(--color-text, #111827);
  line-height: 1.65;
}

a {
  color: var(--cda-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--cda-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.clBodyBox {max-width: var(--container-max, 1800px) ; margin: 0 auto;}

.clHeaderBox {max-width: var(--container-max, 1800px) ; margin: 0 auto; }

.clFooterBox {max-width: var(--container-max, 1800px) ; margin: 0 auto; }

#stSlider{display:none;}
#stHotCards{display:none;}
#stPosts{display:none;}
#stSections{display:none;}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(8, 13, 24, 0.92);
  border-bottom: 1px solid var(--cda-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 12px;
}

/* Header real del tema (segun header.php) */


#dvFullHeader {
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(8, 13, 24, 0.92);
  border-bottom: 1px solid var(--cda-border);
}



#dvHeaderBody {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#dvHeaderLeft {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0 !important;
}

#dvHeaderLogo {
  flex: 0 1 auto;
}

.clFhdBox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 40px;
  width: 100%;
  box-sizing: border-box;
  
  
}

.clFhdarticle{max-width: 49%; flex: 1 1 auto;}

.clPost1{width: 49%; }


#dvHeaderRight {
  color: var(--cda-text-soft);
  font-size: 0.95rem;
  white-space: nowrap;
}

#dvSocialIconsList{display:flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px;}
/* ===== Redes sociales (header) ===== */
#dvSocialIconsList ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#dvSocialIconsList li {
  margin: 0;
  padding: 0;
}

#dvSocialIconsList a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #d9e7ff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

#dvSocialIconsList a:hover,
#dvSocialIconsList a:focus-visible {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: rgba(102, 204, 255, 0.75);
  background: linear-gradient(160deg, rgba(102, 204, 255, 0.35), rgba(10, 30, 80, 0.45));
  box-shadow: 0 12px 24px rgba(26, 109, 184, 0.35);
  outline: none;
}

#dvSocialIconsList i {
  font-size: 0.95rem;
  line-height: 1;
}

.clHeaderNav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
  width: 100%;
  border: 0 !important;
}

.menu-mn-mainmenu-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
}

.menu-mn-mainmenu-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Reglas robustas para cualquier salida de wp_nav_menu */
#dvHeaderNav > div {
  width: 100%;
}

#dvHeaderNav ul,
#primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

#dvHeaderNav li {
  position: relative;
}

#dvHeaderNav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--cda-white);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#dvHeaderNav a:hover,
#dvHeaderNav a:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fdba74;
}

/* Submenu desktop */
#dvHeaderNav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--cda-border);
  border-radius: 12px;
  background: #0e1727;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  z-index: 60;
}

#dvHeaderNav li:hover > .sub-menu,
#dvHeaderNav li:focus-within > .sub-menu {
  display: block;
}

#dvHeaderNav .sub-menu li {
  width: 100%;
}

#dvHeaderNav .sub-menu a {
  padding: 9px 10px;
}





.branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-title {
  margin: 0;
  font-size: 1.3rem;
}

.site-title a {
  color: var(--cda-white);
}

.site-description {
  margin: 0;
  color: var(--cda-text-soft);
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--cda-border);
  background: transparent;
  color: var(--cda-white);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle--header {
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.menu-toggle__icon {
  width: 18px;
  height: 2px;
  display: inline-block;
  background: currentColor;
  position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.menu-toggle__icon::before {
  top: -6px;
}

.menu-toggle__icon::after {
  top: 6px;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-navigation a {
  color: var(--color-text, #111827);
  font-weight: 600;
  font-size: 0.96rem;
}

.hero {
  padding: 92px 0 76px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

.kicker {
  display: inline-block;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 14px;
  color: var(--cda-white);
  font-size: clamp(1.9rem, 4.3vw, 3.1rem);
  line-height: 1.18;
}

.hero p {
  margin: 0 0 26px;
  color: var(--cda-text-soft);
  font-size: 1.05rem;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn--primary {
  background: var(--cda-primary);
  color: #1f1308;
}

.btn--primary:hover {
  color: #1f1308;
  transform: translateY(-1px);
  background: var(--cda-primary-dark);
}

.btn--outline {
  border: 1px solid var(--cda-border);
  color: var(--cda-white);
}

.hero-card {
  background: linear-gradient(180deg, #1f2e45 0%, #17243a 100%);
  border: 1px solid var(--cda-border);
  border-radius: 18px;
  padding: 24px;
}

.hero-card__line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 11px 0;
  font-size: 0.95rem;
}

.hero-card__line strong {
  color: var(--cda-white);
}

section {
  padding: 66px 0;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: var(--cda-white);
}

.section-lead {
  margin: 0 0 28px;
  color: var(--cda-text-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--cda-card);
  border: 1px solid var(--cda-border);
  border-radius: 14px;
  padding: 20px;
}

.service-card h3 {
  margin: 0 0 10px;
  color: var(--cda-white);
  font-size: 1.1rem;
}

.service-card p {
  margin: 0;
  color: var(--cda-text-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.step {
  border: 1px solid var(--cda-border);
  background: rgba(16, 24, 40, 0.7);
  padding: 16px;
  border-radius: 12px;
}

.step span {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 10px;
  background: var(--cda-primary);
  color: #2f1803;
  font-weight: 700;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.panel {
  border: 1px solid var(--cda-border);
  background: var(--cda-card);
  border-radius: 14px;
  padding: 22px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  margin-bottom: 9px;
  color: var(--cda-text-soft);
}

.check-list li::before {
  content: "✓ ";
  color: var(--cda-success);
  font-weight: 700;
}

/* Contact template (professional refresh) */
#stContact,
#stContactContent,
#stContactMap {
  position: relative;
}

#stContact .clSectionHeader,
#stContactMap .clSectionHeader {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

#stContact .clSectionHeader p,
#stContactContent .clSectionHeader p {
  color: var(--cda-text-soft);
  margin: 0;
}

#stContactContent .clSectionHeader {
  max-width: 100%;
}

.clContactInfo .clContactCard {
  height: 100%;
  background: linear-gradient(165deg, rgba(24, 36, 56, 0.96) 0%, rgba(14, 24, 40, 0.97) 100%);
  border: 1px solid rgba(72, 96, 132, 0.45);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 10px 26px rgba(3, 8, 18, 0.28);
}

.clContactInfo .clContactCard:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 126, 170, 0.78);
  box-shadow: 0 16px 34px rgba(3, 8, 18, 0.42);
}

.clContactCard__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #ffe3c0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(249, 115, 22, 0.08) 100%);
  border: 1px solid rgba(249, 115, 22, 0.34);
}

.clContactCard__title {
  margin: 6px 0 0;
  color: var(--cda-white);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.clContactCard a,
.clContactCard span {
  color: #c3d0e2;
  text-decoration: none;
  word-break: break-word;
}

.clContactCard a:hover {
  color: #ffd3a6;
}

.clContactHighlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clContactHighlights li {
  border: 1px solid rgba(80, 105, 140, 0.4);
  border-radius: 14px;
  background: rgba(12, 20, 34, 0.75);
  color: #c3d0e2;
  padding: 17px 18px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.clContactHighlights li i {
  color: #ffbe79;
  margin-top: 3px;
}

.clContactChecklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.clContactChecklist li {
  color: #c3d0e2;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.clContactChecklist li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffbe79;
  position: absolute;
  left: 0;
  top: 10px;
}

.clContactExtra {
  border: 1px solid rgba(80, 105, 140, 0.42);
  background: linear-gradient(180deg, rgba(17, 28, 46, 0.95) 0%, rgba(12, 20, 33, 0.96) 100%);
  border-radius: 16px;
  padding: 20px;
}

.clContactExtra p {
  margin: 0 0 14px;
  color: #c3d0e2;
}

.clContactExtra p strong {
  color: var(--cda-white);
}

.clContactExtra .btn.btn-lg {
  min-height: 48px;
  font-weight: 600;
}

.clContactFormBox {
  background:
    radial-gradient(120% 110% at 100% 0%, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0) 42%),
    linear-gradient(180deg, rgba(20, 32, 51, 0.98) 0%, rgba(12, 21, 35, 0.98) 100%);
  border: 1px solid rgba(92, 118, 154, 0.45);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 14px 36px rgba(2, 9, 18, 0.45);
}

.clContactFormBox .clBadge,
.clContactFormBox .clHeaderH2 {
  margin-bottom: 14px;
}

.clContactForm label {
  display: block;
  color: #e9eef7;
  margin-bottom: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.clContactForm .form-control {
  background: rgba(9, 16, 28, 0.86);
  border: 1px solid rgba(95, 123, 162, 0.5);
  border-radius: 11px;
  color: #f4f7fc;
  padding: 12px 14px;
  min-height: 46px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.clContactForm .form-control::placeholder {
  color: rgba(198, 212, 232, 0.62);
}

.clContactForm .form-control:focus {
  border-color: rgba(255, 190, 121, 0.95);
  box-shadow: 0 0 0 0.18rem rgba(249, 115, 22, 0.2);
  background: rgba(11, 19, 33, 0.96);
  color: #ffffff;
}

.clContactForm textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.clContactForm input[type="checkbox"] {
  accent-color: #ffb567;
}

.clContactForm .text-danger {
  color: #ff9f9f !important;
}

#lbContactFormStatus {
  color: #bfd0e7;
  margin-bottom: 0;
}

.clContactMapWrapper {
  border: 1px solid rgba(80, 105, 140, 0.48);
  border-radius: 18px;
  overflow: hidden;
  background: var(--cda-card);
  box-shadow: 0 14px 34px rgba(2, 8, 18, 0.4);
}

.clContactMapWrapper iframe {
  display: block;
}

.site-main--content {
  padding: 64px 0;
}

.content-card {
  background: var(--cda-card);
  border: 1px solid var(--cda-border);
  border-radius: 14px;
  padding: 24px;
}

.entry-title,
.entry-title a {
  color: var(--cda-white);
}

.entry-meta {
  color: var(--cda-text-soft);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--cda-border);
  margin-top: 56px;
  padding: 26px 0;
  color: var(--cda-text-soft);
  font-size: 0.9rem;
}




/*----------------------------------------------------------------------*/
@media (max-width: 1400px) {

 
 }

@media (max-width: 1200px) {
  #dvHotCardsBody> div{justify-content: center! important;}

  

  .clTeamCard{max-width: 49%; flex: 1 1 auto;}


}


@media (max-width: 960px) {
  .clTeamCard{min-width: 400px !important;}

  .clFhdarticle{width:100%; max-width: 100%;}


  #dvHotCardsBody >div{flex-direction: column! important; align-items: center! important;}
  
  
  .hero__grid,
  .services-grid,
  .steps,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  #stContactContent .row.g-4.align-items-start {
    row-gap: 1.6rem !important;
  }

  .clPost1{width: 100%; }


}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .clContactInfo .clContactCard,
  .clContactFormBox,
  .clContactExtra {
    padding: 18px;
  }

  .clContactHighlights li {
    font-size: 0.95rem;
  }

  .clFhdBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    
    
  }
  
  #dvTeamBody{flex-direction: column! important; align-items: center! important;
     }





.clPost1{width: 100%; max-width: 100%; }
  .main-navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: #0e1727;
    border-bottom: 1px solid var(--cda-border);
    padding: 0 4%;
    display: none;
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0;
  }

  .main-navigation li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-navigation a {
    display: block;
    width: 100%;
    padding: 11px 4px;
  }


  #dvHeaderBody,
  #dvHeaderLeft {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  #dvHeaderRight {
    white-space: normal;
  }

  .clHeaderNav {
    justify-content: flex-end;
    align-items: stretch;
    flex-direction: column;
    min-height: 0;
  }

  #dvHeaderNav {
    width: 100%;
  }

  #dvMenuToggle {
    display: inline-flex;
    align-self: flex-end;
    margin-bottom: 8px;
  }

  #dvHeaderNav.has-nav-toggle > div {
    display: none;
  }

  #dvHeaderNav.has-nav-toggle.is-open > div {
    display: block;
  }

  #dvHeaderNav.has-nav-toggle.is-open #dvMenuToggle .menu-toggle__icon {
    background: transparent;
  }

  #dvHeaderNav.has-nav-toggle.is-open #dvMenuToggle .menu-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  #dvHeaderNav.has-nav-toggle.is-open #dvMenuToggle .menu-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .menu-mn-mainmenu-container,
  .menu-mn-mainmenu-container ul {
    width: 100%;
    justify-content: center;
  }

  .menu-mn-mainmenu-container ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .menu-mn-mainmenu-container ul li a {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border: 1px solid var(--cda-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
  }

  #dvHeaderNav ul,
  #primary-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
  }

  #dvHeaderNav li {
    width: 100%;
  }

  #dvHeaderNav a {
    width: 100%;
    text-align: center;
    border: 1px solid var(--cda-border);
    background: rgba(255, 255, 255, 0.02);
  }

  /* En mobile los submenus se muestran en flujo */
  #dvHeaderNav .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    margin-top: 4px;
    padding: 6px 0 0 10px;
    border: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #dvHeaderNav .sub-menu a {
    text-align: left;
    border: 0;
    background: transparent;
    padding: 7px 8px;
    font-size: 0.9rem;
  }

#dvSocialIconsList ul {
  justify-content: center;
  flex-wrap: nowrap;
}



  .hero,
  section,
  .site-main--content {
    padding: 42px 0;
  }

  .hero__grid,
  .services-grid,
  .steps,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }


  .clFooterBox {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    
  }
  .clFooterBox #dvLeftFooter {
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    
  }
  .clFooterBox #dvCenterFooter {
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    
  }
  .clFooterBox #dvRightFooter {
    align-items: center;
    max-width: 100%;
    justify-content: center;
    width: 100%;
    
  }
}
