/* Reset básico moderno */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--main-font);
  font-size: var(--base-font-size);
  background-color: var(--main-bg);
  color: var(--main-text);
  line-height: 1.6;
}

/* Página completa */
#dvFullPage {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

}

/* Secciones principales */
header, main, footer {
  width: 100%;
}

/* ===================== */
/* HEADER MODERNO        */
/* ===================== */
.clFullHeader {
  background: var(--vPrimaryColor);
  box-shadow: var(--vBoxShadow);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.clHeaderBox {
  width: 100%;
  max-width: var(--vMaxWidth);
  margin: 0 auto;
  padding: 0 var(--vContainerPadding);
}

.clHeaderBody {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 2rem;
  position: relative;
}

.clHeaderLogo {
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  text-decoration: none;
  max-height: 100px;
  z-index: 1001;
}

.clHeaderLogo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===================== */
/* NAVEGACIÓN            */
/* ===================== */
.clHeaderNav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.clHeaderNav a {
  color: var(--vTextLight) !important; /* Color blanco para contraste */
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.3s ease;
  border-radius: var(--vBorderRadius);
  position: relative;
  display: inline-block;
}

.clHeaderNav a:hover,
.clHeaderNav a:focus {
  color: var(--vAccentColor) !important;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.clHeaderNav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--vAccentColor);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.clHeaderNav a:hover::after {
  width: 80%;
}

/* ===================== */
/* BOTÓN HAMBURGUESA     */
/* ===================== */
.clMobileMenuBtn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  position: relative;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--vTextLight);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.clMobileMenuBtn--open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.clMobileMenuBtn--open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.clMobileMenuBtn--open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================== */
/* ACCIONES DEL HEADER   */
/* ===================== */
.clHeaderActions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clHeaderBtn {
  background: var(--vAccentColor);
  color: var(--vPrimaryColor);
  border: none;
  border-radius: var(--vBorderRadius);
  padding: 0.6em 1.4em;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(253, 197, 79, 0.08);
  transition: all 0.3s ease;
}

.clHeaderBtn:hover,
.clHeaderBtn:focus {
  background: var(--vAccentDark);
  color: var(--vTextLight);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 197, 79, 0.3);
}

/* ===================== */
/* RESPONSIVE HEADER     */
/* ===================== */
@media (max-width: 900px) {
  .clHeaderBody {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    min-height: 60px;
    padding: 0.5rem 0;
  }
  
  .clHeaderLogo {
    max-width: 200px;
  }
  
  .clHeaderActions {
    gap: 0.5rem;
  }
  
  .clSocialMedia {
    display: none; /* Ocultar redes sociales en tablets */
  }
}

/* ===================== */
/* MOBILE HEADER         */
/* ===================== */
@media (max-width: 720px) {
  .clHeaderBody {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
    padding: 0.5rem 0;
  }
  
  .clHeaderLogo {
    max-width: 180px;
    flex-shrink: 0;
  }
  
  /* Mostrar botón hamburguesa */
  .clMobileMenuBtn {
    display: flex;
  }
  
  /* Ocultar navegación por defecto en móvil */
  .clHeaderNav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--vPrimaryColor);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
    z-index: 1000;
  }
  
  .clHeaderNav--open {
    left: 0;
  }
  
  .clHeaderNav ul {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
    padding: 2rem;
  }
  
  .clHeaderNav a {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
    border-radius: var(--vBorderRadius);
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .clHeaderNav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .clHeaderNav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
  }
  
  .clHeaderNav a:hover::before {
    left: 100%;
  }
  
  /* Ocultar acciones en móvil */
  .clHeaderActions {
    display: none;
  }
  
  /* Ajustar logo en móvil */
  .clHeaderLogo {
    max-width: 150px;
  }
}

/* ===================== */
/* MOBILE MENU ANIMATIONS */
/* ===================== */
@media (max-width: 720px) {
  .clHeaderNav {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(103, 73, 62, 0.5); /* 50% de transparencia */
  }
  
  .clHeaderNav ul {
    animation: slideInFromLeft 0.3s ease;
  }
  
  @keyframes slideInFromLeft {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .clHeaderNav--open ul li {
    animation: fadeInUp 0.3s ease forwards;
  }
  
  .clHeaderNav--open ul li:nth-child(1) { animation-delay: 0.1s; }
  .clHeaderNav--open ul li:nth-child(2) { animation-delay: 0.2s; }
  .clHeaderNav--open ul li:nth-child(3) { animation-delay: 0.3s; }
  .clHeaderNav--open ul li:nth-child(4) { animation-delay: 0.4s; }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ========================================
   9. FORMULARIOS
   ======================================== */
   .form-grid {
    display: grid;
    gap: 0.2rem;
}

.clFormRow {
    display: flex;
    align-items: center;
        padding: 0.1rem 0;
    line-height: 35px;
    border:none;
    
    
}

.clFormRow label {
    min-width: 150px;
    font-weight: 500;
    color: var(--vTextColor);
    text-align: right;
    font-size: 0.9rem;
}

.clFormRow input,
.clFormRow select,
.clFormRow textarea {
    flex: 1;
    padding: 0.45rem;
    border: 1px solid var(--vBorder);
    border-radius: var(--vBorderRadius);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--vSurface);
}

.clFormRow input:focus,
.clFormRow select:focus,
.clFormRow textarea:focus {
    outline: none;
    border-color: var(--vSecondaryColor);
    box-shadow: 0 0 0 3px rgba(62, 103, 73, 0.1);
}

.clFormRow input:disabled,
.clFormRow select:disabled {
    background: var(--vBgAlt);
    color: var(--vTextMuted);
    cursor: not-allowed;
}

.clAreaShink {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.clCol100p {
    width: 100%;
}

.clCol100p label {
    display: block;
    margin-bottom: 0.5rem;
    text-align: left;
    min-width: auto;
    font-weight: 500;
    color: var(--vTextColor);
}

.clCol100p textarea {
    width: 100%;
    min-height: 80px;
    max-height: 200px;
    resize: vertical;
    overflow-y: auto;
}



/* ===================== */
/* REDES SOCIALES        */
/* ===================== */
.clSocialMedia {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-right: 1rem;
}

.clSocialLink {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--vAccentColor);
  color: #67493e;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.clSocialLink:hover {
  background: var(--vAccentDark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 197, 79, 0.3);
}

.clSocialLink i {
  font-size: 0.9rem;
}

/* Responsive para redes sociales */
@media (max-width: 900px) {
  .clHeaderActions {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .clSocialMedia {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .clSocialLink {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

/* ===================== */
/* FOOTER PROFESIONAL    */
/* ===================== */
.clFullFooter {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--vPrimaryDark);
  color: var(--vTextLight);
  width: 100%;
  box-shadow: 0 -2px 8px rgba(103, 73, 62, 0.06);
  font-size: 1rem;
}

.clFooterBox {
  max-width: var(--vMaxWidth);
  margin: 0 auto;
  padding: 0 var(--vContainerPadding);
}

.clFooterBody {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 90px;
  gap: 2.5rem;
  padding: 2rem 0 1.2rem 0;
  border-top: 1px solid var(--vBorder);
}

.footer-left {
  flex: 2;
  display: flex;
  align-items: flex-start;
}

.footer-company {
  line-height: 1.7;
  font-size: 1.05rem;
}

.footer-company strong {
  font-size: 1.15rem;
  color: var(--vAccentColor);
  letter-spacing: 1px;
}

.footer-link {
  color: var(--vAccentColor);
  text-decoration: underline dotted;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--vAccentDark);
}

.footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  font-size: 0.98rem;
  text-align: right;
}

.footer-right strong {
  color: var(--vAccentColor);
  font-weight: 600;
}

.footer-right a, .footer-right .footer-link {
  color: var(--vAccentColor);
  text-decoration: none;
}

/* ===================== */
/* RESPONSIVE FOOTER     */
/* ===================== */
@media (max-width: 900px) {
  .clFooterBody {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    min-height: unset;
    padding: 1.2rem 0 0.7rem 0;
  }
  
  .footer-right {
    align-items: flex-start;
    text-align: left;
  }
  
  .footer-company {
    font-size: 0.98rem;
  }
}

@media (max-width: 720px) {
  .clFooterBody {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    padding: 1.5rem 0;
    min-height: unset;
  }
  
  .footer-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  
  .footer-company {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .footer-company strong {
    font-size: 1.1rem;
  }
  
  .clFullFooter {
    padding: 0 1rem;
  }
  
  .clFooterBox {
    padding: 0 1rem;
  }
}

/* ===================== */
/* BODY MODERNO    */
/* ===================== */

.clFullBody{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  
}

.clBodyBox{
  width: 100%;
  max-width: var(--vMaxWidth);
  
  display: flex;
  flex-direction: column; 
  justify-content: center;
}

.clBodyMain{
  width: 100%;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}



/****************************************************************************** here we go ok**************************************************************************
/* Contenedor centrado con ancho máximo */
.container {
  max-width: var(--vMaxWidth);
  margin: 0 auto;
  padding: 0 var(--vContainerPadding);
  display: flex;
  flex-direction: column;
  gap: var(--vGap);
}

/* Cuerpo principal con crecimiento */
#dvfullBody {
  flex: 1;
}

/* Secciones */
.clSection {
  padding: var(--vSectionPadding);
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.stIndex{ display: flex; flex-direction: column;align-items: center; justify-content: center;

max-width: 1800px; margin: auto; width:100% ;
}

/*************************************************************************************/
 /* Variables personalizables */

/* Reemplaza esto en tu archivo CSS */
.slider-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slider-container {
  display: flex;
  gap: var(--vSlideGap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.slider-container::-webkit-scrollbar {
  display: none;
}

.slider-container .slide {
  aspect-ratio: var(--vSlideRatio);
  flex: 0 0 auto;
  scroll-snap-align: var(--vSlideScrollSnap);
  border-radius: 1rem;
  overflow: hidden;
  width: 100%; /* Default: 1 slide visible */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Clase para cuando el contenedor es mayor a 1024px */
.stIndex.slider-large .slider-container .slide {
  width: calc((100% - var(--vSlideGap)) / 2); /* 2 slides visibles */
}

/* Clase para cuando el contenedor es menor o igual a 1024px */
.stIndex.slider-small .slider-container .slide {
  width: 100%; /* 1 slide visible */
}

/* Controles */
.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.slider-controls button {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 2rem;
  border-radius: 50%;
}

/* Navegación por puntos */
.slider-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.slider-nav .nav-dot {
  width: var(--vNavSize);
  height: var(--vNavSize);
  background: var(--vNavColor);
  border-radius: 50%;
  cursor: pointer;
}
.slider-nav .nav-dot.active {
  background: var(--vNavColorActive);
}

/*************************************************************************************/

/*******************************************cards**************************************/

 .clCard-container {
  
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1800px;
  width: 100%;
  gap: 20px;
  padding: 20px;
  overflow: hidden;
  
}

.clCard01 {
  
  flex: 1 1 0;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s;
  min-width: 300px;

  max-width: 400px;
  
}


.card-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

.card-list li {
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
    color: #444;
}

.card-list li:last-child {
    border-bottom: none;
}

.card-list strong {
    color: #2e7d32; /* verde oscuro */
    font-weight: 600;
}



/* Todas las cards ocultas por defecto */
.card {
  
  flex: 1 1 0;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-icon {
  font-size: 40px;
  color: #0d6efd;
  margin-bottom: 16px;
}

.card-title {
  font-size: 22px;
  margin-bottom: 12px;
  color: #343a40;
}

.card-description {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 20px;
}

.card-button {
  padding: 10px 20px;
  border: none;
  background-color: #0d6efd;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.card-button:hover {
  background-color: #0b5ed7;
}

/* >= 1500px: 4 cards */
@media (min-width: 1500px) {
  .card-container {
    flex-direction: row;
    align-items: stretch;
  }

  .card:nth-child(-n+4) {
    display: block;
  }

  .card:nth-child(n+5) {
    display: none;
  }
}

/* >= 1200px and <1500px: 3 cards */
@media (min-width: 1200px) and (max-width: 1499px) {
  .card-container {
    flex-direction: row;
    align-items: stretch;
  }

  .card:nth-child(-n+3) {
    display: block;
  }

  .card:nth-child(n+4) {
    display: none;
  }
}

/* >= 900px and <1200px: 2 cards */
@media (min-width: 900px) and (max-width: 1199px) {
  .card-container {
    flex-direction: row;
    align-items: stretch;
  }

  .card:nth-child(-n+2) {
    display: block;
  }

  .card:nth-child(n+3) {
    display: none;
  }
}

/* < 900px: 2 cards en columna centradas */
@media (max-width: 899px) {
  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .card:nth-child(-n+2) {
    display: block;
    width: 90%;
    max-width: 500px;
  }

  .card:nth-child(n+3) {
    display: none;
  }
}


/*******************************************endcards**************************************/

/*******************************************Post**************************************/
.post-section {
  padding: 40px 20px;
  background-color: #f8f9fa;
}

.post-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  
}

.post-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  box-sizing: border-box;
  transition: transform 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-card h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 12px;
}

.post-card p {
  font-size: 16px;
  color: #666;
  margin-bottom: 16px;
}

.post-card button {
  padding: 8px 16px;
  background-color: #0d6efd;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.post-card button:hover {
  background-color: #0b5ed7;
}

.clPostFHD {
  flex: 1 1 100%;
}

.clPostHD {
  flex: 1 1 48%;
}

@media (max-width: 1199px) {
  .clPostHD {
    flex: 1 1 100%;
  }
}


/*******************************************endpost**************************************/

/*******************************************secundary**************************************/
.secondary-section {
  width: 100%;
  padding: 40px 20px;
  background-color: #f8f9fa;
}

.secondary-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  max-width: 1800px;
  margin: 0 auto;
  gap: 20px;
}

.secondary-card {
  flex: 1 1 0;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s;
}

.secondary-card:hover {
  transform: translateY(-4px);
}

.card-title {
  font-size: 20px;
  color: #343a40;
  margin-bottom: 10px;
}

.card-text {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 20px;
}

.card-btn {
  padding: 10px 20px;
  font-size: 14px;
  background-color: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.card-btn:hover {
  background-color: #0b5ed7;
}

/* Responsivo: vertical en < 900px */
@media (max-width: 899px) {
  .secondary-container {
    flex-direction: column;
    align-items: center;
  }

  .secondary-card {
    width: 90%;
    max-width: 500px;
  }
}

/*******************************************endSecundary**************************************/

/* Responsive grid para secciones si se desea en pantallas grandes */
@media (min-width: 768px) {
  #dvBodyBox {
    display: flex;
    gap: var(--gap);
  }

  .clSection {
    flex: 1;
  }
}

