/*
 =====================================================
  CLOVER — Estilos personalizados del proyecto
  Consolida los bloques <style> de todas las páginas
  para mantener el código limpio y ordenado.

  Secciones:
  0. Utilidades globales
  1. Páginas de servicio (común a las 5)
  2. Servicios relacionados (include compartido)
  3. Nosotros
  4. Portafolio
  5. Contacto
 =====================================================
*/

/* ───────────────────────────────────────────────
   0. UTILIDADES GLOBALES
   ─────────────────────────────────────────────── */
/* Solo lectura por screen readers, oculto visualmente (accesible) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─────────────────────────────────────────────────
   1. PÁGINAS DE SERVICIO
   Usado en: diseno-de-stands, fabricacion-y-produccion,
   montaje-y-desmontaje, diseno-grafico,
   activaciones-y-espacios-comerciales
   ───────────────────────────────────────────────── */

/* Checklist en 2 columnas */
.features-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 24px;
	margin: 12px 0 20px;
}
.features-2col .list-type { margin: 0; }

/* Cita destacada con borde verde */
.stand-3d-quote {
	border-left: 4px solid #2db87e;
	background: #f5faf8;
	padding: 18px 22px;
	margin: 22px 0;
	border-radius: 0 6px 6px 0;
}
.stand-3d-quote p {
	font-size: 14px;
	color: #555;
	line-height: 1.75;
	font-style: italic;
	margin: 0;
}

/* Pills / etiquetas de tipos */
.stand-types {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 26px;
}
.stand-types .type-pill {
	background: #f0f8f4;
	border: 1px solid rgba(45, 184, 126, 0.35);
	color: #1a6b47;
	border-radius: 20px;
	padding: 5px 15px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

/* Etiqueta de subsección */
.section-subtitle {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	color: #999;
	margin: 22px 0 10px;
	font-weight: 600;
}

/* Tamaño del h5 en títulos de página */
.title h5 { font-size: 40px !important; }

/* CTA sidebar verde */
.sidebar-cta {
	background: #2db87e;
	border-radius: 4px;
	padding: 26px 20px;
	margin-bottom: 22px;
	text-align: center;
}
.sidebar-cta h4 {
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
	margin: 0 0 10px;
}
.sidebar-cta p {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 0 18px;
	line-height: 1.65;
}
.sidebar-cta .btn-white {
	display: block;
	background: #fff;
	color: #2db87e;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 3px;
	-webkit-transition: background 0.2s;
	transition: background 0.2s;
}
.sidebar-cta .btn-white:hover { background: #e8f8f1; }

/* Lista de servicios — sidebar */
.sidebar-services {
	border: 1px solid #ececec;
	border-radius: 4px;
	padding: 18px 20px;
	margin-bottom: 22px;
	background: #fff;
}
.sidebar-services h5 {
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #bbb;
	margin: 0 0 14px;
}
.sidebar-services ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.sidebar-services ul li { border-bottom: 1px solid #f2f2f2; }
.sidebar-services ul li:last-child { border-bottom: none; }
.sidebar-services ul li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 13px;
	color: #666;
	text-decoration: none;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
}
.sidebar-services ul li a:hover { color: #2db87e; }
.sidebar-services ul li a .fa { color: #2db87e; font-size: 14px; }

/* Grid circular de trabajos — sidebar */
#trabajos-grid li {
	position: relative;
	width: calc(33.33% - 3.4px);
	padding-bottom: calc(33.33% - 3px);
	margin-right: 5px;
	margin-bottom: 10px;
	box-sizing: border-box;
	float: left;
	z-index: 1;
}
#trabajos-grid li:nth-child(3n+3) { margin-right: 0; }
#trabajos-grid .container {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	overflow: hidden;
	margin: 0;
	border-radius: 50%;
	border: 1px solid #ebebeb;
}
#trabajos-grid li span {
	top: 0;
	left: 0;
	margin: 4px;
	border-radius: 50%;
	box-sizing: border-box;
	position: absolute;
	overflow: hidden;
	width: calc(100% - 8px);
	height: calc(100% - 8px);
}
#trabajos-grid li span img {
	height: 100%;
	width: auto;
	position: absolute;
	top: 0;
	left: 0;
}
#trabajos-grid li a {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	position: absolute;
	background-color: rgba(0, 231, 180, 0.9);
	opacity: 0;
	z-index: 50;
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}
#trabajos-grid li a:hover { opacity: 1; }
#trabajos-grid li a:after,
#trabajos-grid li a:before {
	position: absolute;
	top: 50%;
	left: 50%;
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	border-top: 2px solid white;
	border-right: 2px solid white;
	-webkit-transform: translate(-50%, -50%) rotate(45deg);
	transform: translate(-50%, -50%) rotate(45deg);
}
#trabajos-grid li a:before {
	margin-left: 5px;
	-webkit-transform: translate(-100%, -50%) rotate(45deg);
	transform: translate(-100%, -50%) rotate(45deg);
}

/* ─────────────────────────────────────────────────
   2. SERVICIOS RELACIONADOS (include compartido)
   ───────────────────────────────────────────────── */

/* Espacio sobre el carousel de servicios relacionados */
.related-projects .title { margin-bottom: 26px; }

/* Nombre del servicio debajo de cada tarjeta */
.rel-service-name {
	font-size: 12px;
	text-align: center;
	padding: 10px 6px 2px;
	color: #555;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* ─────────────────────────────────────────────────
   3. NOSOTROS
   ───────────────────────────────────────────────── */

/* Lista ¿Por qué Clover? en 2 columnas sobre fondo oscuro */
.why-clover-list {
	column-count: 2;
	column-gap: 30px;
}
.why-clover-list.list-type li {
	color: rgba(255, 255, 255, 0.88);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	break-inside: avoid;
	text-align: left;
}
.why-clover-list.list-type li:last-child { border-bottom: none; }

/* Oculta decoraciones innecesarias del título parallax */
.innovation .innovation-header::before,
.innovation .innovation-header::after { display: none !important; }
.innovation .slash-line { display: none; }

/* Checklist de diferenciadores */
.differentiators-list {
	list-style: none;
	padding: 10px 0 0;
	margin: 0;
}
.differentiators-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid #efefef;
	font-size: 14px;
	color: #666;
	line-height: 1.4;
}
.differentiators-list li:last-child { border-bottom: none; }
.differentiators-list li i {
	color: #2db87e;
	font-size: 17px;
	flex-shrink: 0;
}

/* Grid de 5 servicios con flex */
.services-5col {
	display: flex;
	justify-content: center;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 10px;
	padding: 20px 0 0;
	clear: both;
}
.services-5col .item-example {
	float: none !important;
	flex: 1 1 165px;
	max-width: 200px;
	width: auto !important;
	padding: 20px 12px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
}
.services-5col .item-example .button {
	margin-top: auto;
	padding-top: 6px;
}

/* Fondo alternado para sección servicios */
#servicios-nosotros { background: #f8f8f8; }

/* Thumbnail de imagen de servicio */
.services-5col .service-thumb {
	display: block;
	width: 100%;
	height: 130px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 14px;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}
.services-5col a:hover .service-thumb { opacity: 0.85; }

/* Título de sección centrado */
.section-title-centered {
	text-align: center;
	float: none;
	width: 100%;
	margin-bottom: 20px;
}

/* ─────────────────────────────────────────────────
   4. PORTAFOLIO
   ───────────────────────────────────────────────── */

/* Intro de la sección portafolio */
.portfolio-intro {
	padding: 30px 0 10px;
	max-width: 720px;
}
.portfolio-intro h2 {
	font-size: 20px;
	font-weight: 500;
	color: #222;
	margin-bottom: 12px;
	line-height: 1.3;
}
.portfolio-intro h2 span { color: #2db87e; }
.portfolio-intro p {
	font-size: 14px;
	color: #666;
	line-height: 1.75;
	margin: 0;
}

/* Filtro TODOS — iguala al tamaño de los demás filtros */
.portfolio .portfolio-filter .all-iso-item {
	float: none !important;
	font-size: inherit !important;
	line-height: inherit !important;
	font-weight: inherit !important;
	color: #e5e5e5;
	margin-left: 4px;
}
.portfolio .portfolio-filter .all-iso-item.active {
	color: #00e7b4 !important;
}

/* Lightbox del portafolio (home) — overlay decorativo; el clic pasa a la imagen */
.main-page .isotope .item .portfolio-hover {
	pointer-events: none;
}
.main-page .isotope .item:hover .portfolio-hover {
	opacity: 1;
}
.main-page .isotope .item a.fancy {
	display: block;
	height: 100%;
}

/* Lightbox del portafolio (página portafolio.php) — mismo criterio que en home */
.portfolio-columns .isotope .item .portfolio-hover {
	pointer-events: none;
}
.portfolio-columns .isotope .item:hover .portfolio-hover {
	opacity: 1;
}
.portfolio-columns .isotope .item a.fancy {
	display: block;
	height: 100%;
}

/* ─────────────────────────────────────────────────
   5. CONTACTO
   ───────────────────────────────────────────────── */

/* Filas del formulario */
.contact-form-row {
	display: flex;
	gap: 0 4%;
	margin-bottom: 18px;
}
.contact-form-row > p {
	flex: 1;
	margin: 0;
}
@media (max-width: 767px) {
	.contact-form-row-3 {
		flex-wrap: wrap;
	}
	.contact-form-row-3 > p {
		flex: 1 1 100%;
	}
}

/* Neutraliza el sistema de grid del template dentro del form */
#feedback-form {
	margin-left: 0 !important;
}
#feedback-form .message-form-author,
#feedback-form .message-form-telefono,
#feedback-form .message-form-email,
#feedback-form .message-form-website,
#feedback-form .message-form-estado {
	float: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	margin-right: 0 !important;
	clear: none !important;
	margin-bottom: 0 !important;
}
/* El template solo da estilo de caja (borde/alto/padding) a .message-form-email/author/website input;
   .message-form-telefono es un campo nuevo y necesita la misma caja explicitamente */
#feedback-form .message-form-telefono input {
	width: 100%;
	border: 1px solid #ebebeb;
	height: 38px;
	margin-bottom: 15px;
	padding: 10px;
	box-sizing: border-box;
	font-size: 15px;
	font-family: inherit;
	color: #6d6d6d;
	outline: none;
	background: #fff;
}
#feedback-form .message-form-telefono input:focus {
	border-color: #2db87e;
}
#feedback-form .message-form-message {
	margin-left: 0 !important;
	clear: both !important;
	width: 100% !important;
	float: none !important;
}
#feedback-form label {
	display: block;
	font-size: 13px;
	color: #888;
	margin-bottom: 6px;
	line-height: 1.4;
}

/* Select Estado — estilo consistente con los inputs */
.message-form-estado label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	color: #888;
}
.message-form-estado select {
	width: 100% !important;
	height: 38px;
	padding: 0 30px 0 10px;
	line-height: 38px;
	border: 1px solid #ebebeb;
	background: #fff;
	color: #6d6d6d;
	font-size: 15px;
	font-family: inherit;
	box-sizing: border-box;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23aaa'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	cursor: pointer;
}
.message-form-estado select:focus { border-color: #2db87e; }

/* Links de teléfono / WhatsApp — hover sin subrayado, leve incremento de color */
.contact-link {
	color: inherit;
	text-decoration: none;
	-webkit-transition: color 0.25s ease;
	transition: color 0.25s ease;
}
.contact-link--phone:hover { color: #2db87e; }
.contact-link--whatsapp:hover { color: #25D366; }

/* ---- Instagram Feed — Portafolio ---- */
.instagram-feed-wrapper {
	padding: 0 0 60px;
}
.instagram-cta {
	margin-top: 40px;
	text-align: center;
}
.btn-instagram {
	display: inline-block;
	padding: 14px 36px;
	background: #E1306C;
	color: #fff !important;
	border-radius: 4px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: background 0.3s ease;
}
.btn-instagram:hover {
	background: #c1255d;
	color: #fff !important;
}
.btn-instagram .fa {
	margin-right: 8px;
}
