.page_content_wrap { padding-top: 0 !important; }

#cp-wrap { max-width: 1500px; margin: 0 auto; padding: 0 24px 60px; font-family: inherit; }

/* LOADING */
#cp-loading { display: flex; justify-content: center; align-items: center; height: 300px; }
.cp-spinner { width: 40px; height: 40px; border: 4px solid #e0e0e0; border-top-color: #53a654; border-radius: 50%; animation: cp-spin 0.8s linear infinite; }
@keyframes cp-spin { to { transform: rotate(360deg); } }

/* HERO — 2 cols: info izq, imagen dcha */
.cp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding: 28px 0 36px;
    margin-bottom: 0;
}
@media (max-width: 860px) { .cp-hero { grid-template-columns: 1fr; } }

/* INFO columna izquierda */
.cp-hero-info { display: flex; flex-direction: column; gap: 14px; }
.cp-back { display: inline-flex; align-items: center; gap: 5px; color: #53a654; font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.cp-back:hover { text-decoration: underline; }
.cp-title { font-size: 1.9rem; font-weight: 800; color: #1a2e3b; margin: 0; line-height: 1.2; }
.cp-location { color: #777; font-size: 0.88rem; margin: 0; display: flex; align-items: center; gap: 5px; }
.cp-location i { color: #53a654; }
.cp-desc { font-size: 0.9rem; color: #555; line-height: 1.7; margin: 0; }

/* Chips */
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-chip { display: inline-block; width: auto; background: #edf7ee; color: #2d7a2e; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; border: 1px solid #b8ddb9; white-space: nowrap; }

/* Stats rápidas */
.cp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; }
@media (max-width: 480px) { .cp-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cp-stat:nth-child(2) { border-right: none; } }
.cp-stat { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 12px 8px; border-right: 1px solid #e8e8e8; text-align: center; }
.cp-stat:last-child { border-right: none; }
.cp-stat i { color: #53a654; font-size: 1rem; margin-bottom: 4px; }
.cp-stat-val { font-size: 1.1rem; font-weight: 800; color: #1a2e3b; line-height: 1; }
.cp-stat-label { font-size: 0.68rem; color: #999; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.04em; }

/* MEDIA columna derecha */
.cp-hero-media { display: flex; flex-direction: column; gap: 8px; }
.cp-hero-img { border-radius: 12px; aspect-ratio: 16/9; background-color: #f0f0f0; background-size: cover; background-position: center; transition: background-image 0.15s; }
.cp-hero-img--empty { background-color: #e8e8e8; }
.cp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
@media (max-width: 480px) { .cp-thumbs { grid-template-columns: repeat(4, 1fr); } }
.cp-thumb { width: 100%; aspect-ratio: 1; background-size: cover; background-position: center; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: 0.65; transition: opacity 0.15s, border-color 0.15s; }
.cp-thumb:hover, .cp-thumb.active { opacity: 1; border-color: #53a654; }

/* TABS */
.cp-tabs-wrap { margin-top: 32px; }
.cp-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; border-bottom: 2px solid #e8e8e8; margin-bottom: 24px; }
#cp-wrap .cp-tabs .cp-tab { background: none !important; border: none !important; border-bottom: 2px solid transparent !important; margin-bottom: -2px; padding: 10px 28px; font-size: 0.88rem !important; font-weight: 600 !important; color: #555 !important; cursor: pointer; transition: color 0.15s, border-color 0.15s; box-shadow: none !important; outline: none !important; }
#cp-wrap .cp-tabs .cp-tab:hover { color: #1a2e3b !important; }
#cp-wrap .cp-tabs .cp-tab.active { color: #53a654 !important; border-bottom: 2px solid #53a654 !important; }
.cp-tab-hidden { display: none !important; }

/* TÉCNICO y EMPRESAS — tabla label/valor */
.cp-tech-grid { display: table; width: 100%; border-collapse: collapse; border-radius: 10px; overflow: hidden; border: 1px solid #eee; }
.cp-tech-row { display: table-row; }
.cp-tech-row:nth-child(even) .cp-tech-label,
.cp-tech-row:nth-child(even) .cp-tech-val { background: #fafafa; }
.cp-tech-label { display: table-cell; padding: 9px 14px; font-size: 0.78rem; color: #888; width: 45%; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.cp-tech-val { display: table-cell; padding: 9px 14px; font-size: 0.88rem; color: #1a2e3b; font-weight: 600; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.cp-tech-row:last-child .cp-tech-label,
.cp-tech-row:last-child .cp-tech-val { border-bottom: none; }


/* MAPA */
#cp-map { width: 100%; height: 220px; border-radius: 10px; overflow: hidden; border: 1px solid #e5e5e5; }
.cp-no-map { color: #aaa; font-size: 0.9rem; padding: 40px 0; text-align: center; }

/* CONTACTAR CON EL GESTOR */
#cp-review-wrap, #cp-contact-wrap { margin-top: 80px; padding-top: 32px; border-top: 1px solid #e8e8e8; text-align: center; display: flex; justify-content: center; }
.cp-review-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; align-items: center; justify-content: center; }
.cp-review-modal-inner { background: #fff; border-radius: 12px; padding: 32px; max-width: 480px; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.cp-review-modal-inner h3 { margin: 0 0 20px; color: #1a2e3b; font-size: 1.1rem; }
.cp-review-modal-inner label { display: block; font-size: 0.82rem; color: #666; font-weight: 600; margin-bottom: 6px; margin-top: 16px; }
.cp-review-modal-inner select, .cp-review-modal-inner textarea { width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 8px 12px; font-size: 0.88rem; font-family: inherit; box-sizing: border-box; }
.cp-review-modal-inner textarea { resize: vertical; }
.cp-review-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.cp-review-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ERROR */
#cp-error { text-align: center; padding: 60px 20px; color: #888; }
.cp-back-btn { display: inline-block; margin-top: 16px; padding: 10px 24px; background: #53a654; color: #fff; border-radius: 6px; text-decoration: none; font-weight: 600; }

/* Botón contactar gestor */
.cp-contact-btn { background: #1a2e3b; border: none; color: #fff; padding: 10px 22px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.cp-contact-btn:hover { background: #2d4a5f; }

/* Botones del modal */
.cp-btn-cancel { background: #f1f3f5 !important; border: none !important; color: #1a2e3b !important; padding: 8px 20px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.cp-btn-cancel:hover { background: #e2e8f0; }
.cp-btn-submit { background: #1a2e3b; border: none; color: #fff; padding: 8px 20px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.cp-btn-submit:hover { background: #2d4a5f; }
.cp-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Textarea sin borde raro */
.cp-review-modal-inner textarea { border: 1.5px solid #e2e8f0 !important; border-radius: 8px !important; outline: none; transition: border-color 0.15s; }
.cp-review-modal-inner textarea:focus { border-color: #1a2e3b !important; }

/* Solicitudes */
.cp-solicitudes { display: flex; flex-direction: column; gap: 12px; }
.cp-solicitud-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 14px 16px; }
.cp-solicitud-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cp-solicitud-fecha { font-size: 0.8rem; color: #888; }
.cp-solicitud-estado { font-size: 0.75rem; font-weight: 600; padding: 2px 10px; border-radius: 12px; }
.cp-solicitud-email { font-size: 0.82rem; color: #555; margin: 0 0 6px; }
.cp-solicitud-email i { color: #53a654; margin-right: 4px; }
.cp-solicitud-msg { font-size: 0.88rem; color: #333; margin: 0; line-height: 1.5; }



.cp-review-modal-inner select { display: block !important; visibility: visible !important; opacity: 1 !important; position: static !important; clip: auto !important; width: 100% !important; height: 42px !important; border: 1.5px solid #e0e0e0 !important; border-radius: 6px !important; padding: 0 10px !important; font-size: 14px !important; font-family: inherit !important; box-sizing: border-box !important; background: #fafafa !important; color: #333 !important; appearance: auto !important; -webkit-appearance: menulist !important; margin-bottom: 0 !important; box-shadow: none !important; }
