/*
 Theme Name: Astra Child
 Theme URI: https://wpastra.com/
 Author: Ysaias
 Template: astra
 Version: 1.0.0
*/

/* ------------------------------
   Tus estilos personalizados
--------------------------------*/

.tabs {
  margin-top: 20px;
}

.tab-titles {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  border-bottom: 2px solid #ccc;
}

.tab-titles li {
  cursor: pointer;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 5px 5px 0 0;
  background: #eee;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.3s;
}

.tab-titles li.active {
  border: 1px solid #ccc;
  border-bottom: none;
  background: #f9f9f9;
}

.tab-content {
  display: none;
  border: 1px solid #ccc;
  padding: 20px;
  margin-top: -1px;
}

.tab-content.active {
  display: block;
}

/* 📱 Móviles: Menor a 375px */
@media (max-width: 374px) {
  .tab-titles {
    flex-direction: column;
    border-bottom: none;
  }

  .tab-titles li {
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #f2f2f2;
    width: 100%;
  }

  .tab-titles li.active {
    background: #ddd;
  }

  .tab-content {
    margin-top: 10px;
  }
}

/* 📲 Tablets: de 375px a 1023px */
@media (min-width: 375px) and (max-width: 1023px) {
  #pt-cv-view-5f1477dhmt .pt-cv-thumbnail:not(.pt-cv-thumbnailsm) {
    height: auto !important;
  }

  .tab-titles {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
  }

  .tab-titles li {
    padding: 8px 12px;
    font-size: 13px;
  }

  .tab-content {
    padding: 15px;
  }
}

/* 💻 Escritorio: desde 1024px en adelante */
@media (min-width: 1024px) {
  .tab-titles {
    justify-content: flex-start;
  }

  .tab-titles li {
    font-size: 15px;
    padding: 10px 20px;
  }
}
