/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: Tema hijo de Hello Elementor
Author: OECSA - WAB
Author URI: https://wab.com.gt
Template: hello-elementor
Version: 1.0
Text Domain: hello-elementor-child
*/

/* =========================
   ESTILOS OECSA - PROPIEDADES
   ========================= */

/* Contenedor principal */
.oe-title {
    font-family: "AvenirLTProBlack";
    font-size: 22px;
    font-weight: normal;
    line-height: 1;
}

.oecsa-propiedad-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #333;
}

/* Header de la propiedad */
.oecsa-propiedad-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.oecsa-propiedad-titulo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #222;
    line-height: 1.2;
}

.oecsa-propiedad-ubicacion {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 1.1rem;
}

.oecsa-propiedad-ubicacion i {
    color: black;
}

.oecsa-propiedad-precio {
    text-align: right;
}

.oecsa-precio {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #E30613;
    margin-bottom: 5px;
}

.oecsa-etiqueta-compra {
    background: black;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Galería */
.oecsa-propiedad-galeria {
    margin-bottom: 40px;
}

.oecsa-galeria-principal {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin-bottom: 15px;
}

.oecsa-imagen-principal {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.oecsa-galeria-miniaturas {
    display: flex;
    gap: 12px;
}

.oecsa-miniatura {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.oecsa-miniatura:hover {
    transform: translateY(-2px);
}

.oecsa-miniatura img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.oecsa-mas-fotos {
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Contenido principal */
.oecsa-propiedad-contenido {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Descripción y detalles */
.oecsa-descripcion-detalles {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.oecsa-descripcion h2,
.oecsa-detalles h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
    padding-bottom: 10px;
    border-bottom: 2px solid black;
}

.oecsa-descripcion-texto {
    line-height: 1.7;
    color: #555;
    font-size: 1.05rem;
}

/* Grid de detalles */
.oecsa-detalles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.oecsa-detalle-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.oecsa-detalle-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.oecsa-detalle-icono {
    width: 50px;
    height: 50px;
    background: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.oecsa-detalle-info {
    display: flex;
    flex-direction: column;
}

.oecsa-detalle-valor {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
}

.oecsa-detalle-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

/* Sidebar del agente */
.oecsa-agente-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    position: sticky;
    top: 20px;
}

.oecsa-agente-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.oecsa-agente-foto {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid black;
}

.oecsa-agente-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oecsa-agente-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
}

.oecsa-agente-especialidad {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.oecsa-agente-contacto {
    margin-bottom: 25px;
}

.oecsa-contacto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #555;
}

.oecsa-contacto-item i {
    color: black;
    width: 20px;
    text-align: center;
}

/* Formulario */
.oecsa-formulario-contacto h4 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}

.oecsa-form-group {
    margin-bottom: 15px;
}

.oecsa-form-group input,
.oecsa-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.oecsa-form-group input:focus,
.oecsa-form-group textarea:focus {
    outline: none;
    border-color: black;
    box-shadow: 0 0 0 3px rgba(0, 101, 156, 0.1);
}

.oecsa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.oecsa-btn-primary {
    background: black;
    color: white;
    width: 100%;
}

.oecsa-btn-primary:hover {
    background: #004d7a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 101, 156, 0.3);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1024px) {
    .oecsa-propiedad-contenido {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .oecsa-agente-card {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .oecsa-propiedad-container {
        margin: 20px auto;
        padding: 0 16px;
    }

    .oecsa-propiedad-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .oecsa-propiedad-precio {
        text-align: center;
    }

    .oecsa-imagen-principal {
        height: 350px;
    }

    .oecsa-detalles-grid {
        grid-template-columns: 1fr;
    }

    .oecsa-galeria-miniaturas {
        flex-wrap: wrap;
    }

    .oecsa-miniatura {
        flex: 0 0 calc(50% - 6px);
    }
}

@media (max-width: 480px) {
    .oecsa-propiedad-titulo h1 {
        font-size: 1.8rem;
    }

    .oecsa-precio {
        font-size: 1.6rem;
    }

    .oecsa-imagen-principal {
        height: 250px;
    }

    .oecsa-miniatura {
        flex: 0 0 100%;
    }

    .oecsa-miniatura img {
        height: 80px;
    }

    .oecsa-agente-card {
        padding: 20px;
    }

    .oecsa-agente-header {
        flex-direction: column;
        text-align: center;
    }
}

[type="button"],
[type="submit"]:hover,
button:hover {
    border: 1px solid var(--e-global-color-primary) !important;
    color: var(--e-global-color-primary) !important;
    background-color: #222 !important;
}

[type="button"],
[type="submit"],
button {
    border: 1px solid black !important;
    color: black !important;
}
/* =========================
   OECSA - ESTILOS CATEGORÍAS
   ========================= */

.oecsa-category-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Header de categoría */
.oecsa-category-header {
  margin-bottom: 50px;
}

.oecsa-category-info {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eaeaea;
}

.oecsa-category-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.oecsa-category-description {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Filtros */
.oecsa-category-filters {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #eaeaea;
}

.oecsa-filters-grid {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 20px;
  align-items: end;
}

.oecsa-filter-group {
  display: flex;
  flex-direction: column;
}

.oecsa-filter-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.oecsa-search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.oecsa-search-input i {
  position: absolute;
  left: 15px;
  color: #666;
  z-index: 2;
}

.oecsa-search-input input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
}

.oecsa-search-input input:focus {
  outline: none;
  border-color: #00659C;
  box-shadow: 0 0 0 3px rgba(0, 101, 156, 0.1);
}

.oecsa-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.oecsa-select-wrapper i {
  position: absolute;
  right: 15px;
  color: #666;
  pointer-events: none;
}

.oecsa-select {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.95rem;
  background: white;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.oecsa-select:focus {
  outline: none;
  border-color: #00659C;
  box-shadow: 0 0 0 3px rgba(0, 101, 156, 0.1);
}

.oecsa-filter-actions {
  flex-direction: row;
  gap: 10px;
}

/* Botones */
.oecsa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  white-space: nowrap;
}

.oecsa-btn-primary {
  background: #00659C;
  color: white;
}

.oecsa-btn-primary:hover {
  background: #004d7a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 101, 156, 0.3);
}

.oecsa-btn-secondary {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

.oecsa-btn-secondary:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Información de resultados */
.oecsa-results-info {
  margin-bottom: 30px;
}

.oecsa-results-count {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

/* Grid de posts */
.oecsa-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.oecsa-post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.oecsa-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.oecsa-post-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.oecsa-post-card__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f8f8f8;
}

.oecsa-post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.oecsa-post-card:hover .oecsa-post-card__img {
  transform: scale(1.05);
}

.oecsa-post-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9ecef;
  color: #666;
  font-size: 2rem;
}

.oecsa-post-card__badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #00659C;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.oecsa-post-card__date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.95);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
}

.oecsa-post-card__content {
  padding: 25px;
}

.oecsa-post-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 12px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oecsa-post-card__excerpt {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oecsa-post-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.85rem;
  color: #666;
}

.oecsa-post-card__author,
.oecsa-post-card__read-time {
  display: flex;
  align-items: center;
  gap: 5px;
}

.oecsa-post-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #00659C;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s ease;
}

.oecsa-post-card:hover .oecsa-post-card__cta {
  gap: 8px;
}

/* Paginación */
.oecsa-pagination {
  text-align: center;
}

.oecsa-pagination .page-numbers {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.oecsa-pagination .page-numbers li {
  margin: 0;
}

.oecsa-pagination a,
.oecsa-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.oecsa-pagination a {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #eaeaea;
}

.oecsa-pagination a:hover {
  background: #00659C;
  color: white;
  border-color: #00659C;
  transform: translateY(-2px);
}

.oecsa-pagination .current {
  background: #00659C;
  color: white;
  border: 1px solid #00659C;
}

/* Sin resultados */
.oecsa-no-results {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #eaeaea;
}

.oecsa-no-results__icon {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 20px;
}

.oecsa-no-results__title {
  font-size: 1.8rem;
  color: #333;
  margin: 0 0 15px 0;
}

.oecsa-no-results__message {
  font-size: 1.1rem;
  color: #666;
  margin: 0 0 30px 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.oecsa-no-results__actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1024px) {
  .oecsa-filters-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .oecsa-filter-actions {
    justify-content: flex-start;
  }
  
  .oecsa-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .oecsa-category-container {
    margin: 20px auto;
    padding: 0 16px;
  }
  
  .oecsa-category-title {
    font-size: 2rem;
  }
  
  .oecsa-category-filters {
    padding: 20px;
  }
  
  .oecsa-filter-actions {
    flex-direction: column;
  }
  
  .oecsa-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .oecsa-no-results__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .oecsa-btn {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .oecsa-category-title {
    font-size: 1.7rem;
  }
  
  .oecsa-post-card__content {
    padding: 20px;
  }
  
  .oecsa-post-card__title {
    font-size: 1.2rem;
  }
  
  .oecsa-post-card__meta {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}