#principal {
    border-bottom: 0px solid;
    border-image-slice: 1;
    border-width: 20px;
    border-image-source: linear-gradient( to right, black 0% 33.33%, var(--cian) 33.33% 66.66%, var(--verde) 66.66% 100%);
    line-height: 0;
    overflow: hidden;
}
.logo {

}
@media (max-width: 990px) {
	#principal .responsive {
	    width: 160%;
	}
	body {
		padding-top: 100px;
	}
	header {
		height: 78px;
		padding: 11px 0;
	}
}
@media (min-width: 991px) {
	body {
		padding-top: 150px;
	}
	header {
		height: 150px;
	}
}

/* ====== NOSOTROS ====== */
#nosotros .cont {
	display: flex;
	flex-direction: column;
	gap: 60px;
}
@media (min-width: 990px) {
	#nosotros .cont {
		flex-direction: row;
	}
	#nosotros .cont > div {
		width: 50%;
	}
}

/* ====== NOSOTROS ====== */

#nosotros {
    display: flex;
    align-items: center;
    padding: 60px 0;
}

#nosotros .cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

@media (min-width: 990px) {
    #nosotros .cont {
        flex-direction: row;
    }

    #nosotros .cont > div {
        width: 50%;
    }
}
/* ====== CLIENTES ====== */
#clientes .contmax {

}
#clientes .logos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}
#clientes .logos .client-logo {
}
#clientes .logos .client-logo:nth-child(odd) {
	background: #e0e0e0;
}
#clientes .logos .client-logo:nth-child(even) {
	background: #f5f5f5;
}
#clientes .testimonios .testimonio .int {
	background: url(../img/quote.jpg);
	background-position: top left;
	background-repeat: no-repeat;
	max-width: 470px;
	padding: 70px 0 0 60px;
	margin: 0 auto;
	font-size: 24px;
	color: #76777c;
}
#clientes .confian {
	display: flex;
	align-items: center;
	font-family: 'Dklemon';
	font-size: 20px;
	justify-content: flex-end;
}
#clientes .confian::after {
	content: "";
	display: inline-block;
	width: 40px;
	height: 40px;
	background: black;
	margin-left: 20px;
}
#clientes .logos,
#clientes .testimonios {
	width: 100%;
}
@media (min-width: 990px) {
	#clientes .logos {
		grid-template-columns: repeat(4, 1fr);
	}
	#clientes .contmax {
		display: flex;
		flex-direction: row;
		align-items: center;
		position: relative;
	}
	#clientes .logos {
		width: 40%;
	}
	#clientes .testimonios {
		width: 60%;
	}

	#clientes .confian {
		position: absolute;
		top: 0;
		right: 0;
	}
}
@media (min-width: 1200px) {
	#clientes .logos {
		grid-template-columns: repeat(5, 1fr);
	}
	#clientes .logos,
	#clientes .testimonios {
		width: 50%;
	}
}

#clientes .testimonios .testimonio .int .nombre {
	font-size: 27px;
	font-family: 'Sheldon';
	margin: 40px 0 10px;
}
#clientes .testimonios .testimonio .int .empresa {
	font-size: 39px;
	color: black;
	background: var(--cian);
	font-family: 'Sheldon';
	margin: 0;
	padding: 10px;
	display: inline-block;
}
#clientes .testimonios .testimonio .int .puesto {
	font-size: 15px;
	margin: 10px 0 0;
}

@media (max-width: 990px) {
	#clientes .testimonios .testimonio .int {
		background-size: 60px;
		background-position: 10px 10px;
		width: calc(100% - 100px);
		padding: 32px 40px 0 40px;
		font-size: 18px;
	}
	#clientes .testimonios .testimonio .int .nombre {
		margin: 20px 0 5px;
	}
}
/* ====== SERVICIOS ====== */
.comdis {
	position: relative;
}
.comdis::after {
	content: "";
	display: inline-block;
	width: 52px;
	height: 56px;
	background: url(../img/flecha-comdis.svg);
	position: absolute;
	left: 890px;
	top: 90px;
}
@media (max-width: 990px) {
	.comdis::after {
		display: none;
	}
}
.comdis h2::after {
	content: "";
	position: absolute;
	height: 36px;
	width: calc(10% - 10px);
	left: -10%;
	bottom: 10px;
	background: var(--verde);
}
.comdis p {
	font-family: 'Dklemon';
	font-size: 20px;
	color: black;
	margin: 0 0 40px;
}
#servicios {
	display: flex;
	align-items: center;
	padding: 60px 0;
}

#servicios > .contmax {
	width: 100%;
}
.servicios {
	display: flex;
	flex-wrap: wrap;
}
.servicios .int {
	width: auto;
	font-size: 21px;
	text-align: center;
	position: relative;
	padding: 40px;
}

@media (min-width: 700px) {
	.servicios .int {
		width: calc(50% - 80px);
	}
}
@media (min-width: 1300px) {
	.servicios .int {
		width: calc(25% - 80px);
	}
}
.servicios .int h3 {
	font-family: 'Sheldon';
	font-weight: 100;
	font-size: 38px;
	text-align: left;
	margin: 0 0 60px 100px;
}
.servicios .int h3::before {
	content: "/ ";
}
.servicios .int img {
	position: absolute;
	top: 0;
	left: 0;
	background: #ffffff88;
}
.servicios .int::before {
	content: "";
	width: 36px;
	height: 36px;
	position: absolute;
	bottom: 0;
	right: 0;
}
.servicios .int.fondoverde::before {
	background: var(--cian);
}
.servicios .int.fondocian::before {
	background: black;
}
.servicios .int.fondonegro::before {
	background: var(--gris);
}
.servicios .int.fondogris::before {
	content: none;
}

/* ====== PROYECTOS ====== */
#proyectosGrid{
	display:grid;
	grid-template-columns:repeat(2, minmax(0,1fr));
	gap:0;
}
#proyectosGrid > * {
	min-width:0;
}

#proyectosGrid .proy-hero {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px;
	background: #fff;
}
#proyectosGrid .proy-hero p {
	font-family: 'Dklemon';
	font-size: 20px;
}
#proyectosGrid .proy-hero .kicker{
	font-size:.95rem;
	line-height:1.2;
	margin-top:.5rem;
	letter-spacing:.02em;
}

/* Cards */
.proy-card {
	display:block;
	background:#fff;
	text-decoration:none;
	position: relative;
	overflow:hidden;
}
.proy-card .thumb {
	aspect-ratio:1/1;
	background:#f2f2f2;
	overflow:hidden;
}
.proy-card .thumb img {
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
}
.proy-card .txt {
	position: relative;
	padding:12px 8px 16px;
	color: black;
}
.proy-card h3 {
	font-family: 'Sheldon';
	font-size: 30px;
	margin: 0;
}
.proy-card h3::before {
	content: "/ ";
}
.proy-card .cliente {
	font-family: 'Sheldon';
	font-size: 26px;
	padding: 5px;
	display: inline-block;
	background: var(--verde);
}
.proy-card .resumen {
	margin:6px 0 0;
	font-size:21px;
}
/* Desktop con hover (solo dispositivos con hover) */
@media (hover:hover) and (min-width:1200px) {
	.proy-card {
		--hover-scale: 1.07;
	}

	.proy-card .txt {
		position: absolute;
		left: 0; right: 0; bottom: 0;
		transform: translateY(100%);
		padding: 16px 14px 18px;
		color:#fff;
		background:
		linear-gradient(to top, rgba(0,0,0,.96) 0%, rgba(0,0,0,.72) 55%, rgba(0,0,0,0) 100%);
		transition: transform .35s ease;
		will-change: transform;
	}
	.proy-card .txt .cliente { opacity:.9; }
	.proy-card .txt .resumen { margin-top:8px; opacity:.95; }

	.proy-card .thumb img{
		transition: transform .45s ease;
		will-change: transform;
	}

	/* Hover/focus: sube el panel y escala la imagen */
	.proy-card:hover .txt,
	.proy-card:focus-within .txt {
		transform: translateY(0%);
	}
	.proy-card:hover .thumb img,
	.proy-card:focus-within .thumb img{
		transform: scale(var(--hover-scale));
	}
}

/* Accesibilidad: respetar “reduced motion” */
@media (prefers-reduced-motion: reduce) {
	.proy-card .txt,
	.proy-card .thumb img{ transition: none !important; }
}


/* TABLET (4 columnas, cabecera arriba ocupando todo) */
@media (min-width:768px){
	#proyectosGrid{
		grid-template-columns:repeat(4, minmax(0,1fr));
	}
	#proyectosGrid .proy-hero{
		padding:28px;
	}
}

/* DESKTOP (5 columnas) */
@media (min-width:1200px){
	#proyectosGrid{
		grid-template-columns:repeat(5, minmax(0,1fr));
		grid-auto-flow:dense;
	}
	#proyectosGrid .proy-hero {
		grid-column: 4 / -1;
		grid-row: 1;
		position: relative;
		aspect-ratio: 2 / 1;
		padding: 0;
	}
	#proyectosGrid .proy-hero .inner {
		position: absolute;
		inset: 28px;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	#proyectosGrid a.proy-card:nth-of-type(1){ grid-column:1; grid-row:1; }
	#proyectosGrid a.proy-card:nth-of-type(2){ grid-column:2; grid-row:1; }
	#proyectosGrid a.proy-card:nth-of-type(3){ grid-column:3; grid-row:1; }
}


/* ====== CONTACTOS ====== */
.diga {
	position: relative;
}
.diga::after {
	content: "";
	display: inline-block;
	width: 52px;
	height: 56px;
	background: url(../img/flecha-comdis.svg);
	position: absolute;
	left: 210px;
	top: 70px;
}
.diga h2 {
	font-family: 'Sheldon';
	font-weight: 100;
	font-size: 160px;
	color: var(--verde);
	margin: 0;
	line-height: 0.9;
}
.diga h2::before {
	content: "DIGA:";
}
.diga h2::after {
	content: "";
	position: absolute;
	height: 36px;
	width: calc(10% - 10px);
	left: -10%;
	bottom: 10px;
	background: var(--verde);
}
.formyredes {
	display: flex;
}

#contacto form {
	width: 60%;
	background: var(--verde);
	padding: 40px;
	position: relative;
	margin-top: 20px;
}
#contacto form::after {
	content: "";
	display: block;
	width: 36px;
	height: 36px;
	position: absolute;
	background: var(--cian);
	top: -36px;
	right: -36px;
}
#contacto form .grupo {
	display: flex;
	margin-bottom: 20px;
}
#contacto form label {
	font-family: 'Sheldon';
	font-weight: 100;
	font-size: 38px;
	width: 120px;
	display: inline-block;
}
#contacto form label::before {
	content: "/ ";
}
#contacto form input,
#contacto form textarea {
	border: 0;
	padding: 10px;
	width: calc(100% - 120px);
	background: #FFFFFF88;
	font-family: Roboto, sans-serif;
	resize: none;
}
#contacto .enviar {
	position: absolute;
	background: black;
	color: var(--verde);
	font-family: 'Sheldon';
	font-size: 38px;
	padding: 0 20px;
	bottom: -20px;
	right: -36px;
	cursor: pointer;
}
#contacto .enviar:hover {
	color: var(--cian);
}
.redes {
	margin-left: 36px;
	margin-top: 36px;
}
.redes a {
	display: flex;
	color: black;
	text-decoration: none;
	margin-bottom: 10px;
}
.redes a svg {
	width: 26px;
	height: 26px;
	background: black;
	padding: 5px;
	margin-right: 5px;
}
.redes a svg path{
	fill: white;
}

.contactos {
	display: flex;
	flex-wrap: wrap;
}
.contactos .int {
	width: 100%;
	font-size: 21px;
	text-align: center;
	position: relative;
	padding: 70px 0 30px;
	display: block;
	text-decoration: none;
	color: black;
	font-weight: 500;
}
.contactos .int.fondonegro {
	color: white;
}
@media (min-width: 700px) {
	.contactos .int {
		width: calc(100%/3);
	}
}
.contactos .int::before {
	content: "";
	width: 36px;
	height: 36px;
	position: absolute;
	bottom: 0;
	right: 0;
}
.contactos .int svg {
	height: 200px;
}
.contactos .int svg path {
	fill: black;
}
.contactos .int.fondonegro svg path {
	fill: white;
}
.contactos .int.fondoverde::before {
	background: var(--cian);
}
.contactos .int.fondocian::before {
	background: black;
}
.contactos .int.fondonegro::before {
	content: none;
}
#contacto {
	display: flex;
	flex-direction: column;
	min-height: calc(100dvh - var(--head-h));
	padding: 0;
}

#contacto .contacto-contenido {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
#contacto .contacto-trampa {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0 !important;
}
@media (max-width:768px){
	.formyredes {
		flex-direction: column;
	}
	#contacto form {
	    width: calc(100% - 40px);
	    padding: 20px;
	}
	#contacto .enviar {
		right: 20px;
	}
	.redes {
		margin-left: 0;
	}
	#contacto form::after {
		right: 0;
	}
}
#contacto footer {
	flex-shrink: 0;
}
footer {
    position: relative;
    background: #000;
    color: #aaa;
    text-align: center;
    padding: 45px 16px;
    font-size: 14px;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--verde) 0 50%,
        var(--cian) 50% 100%
    );
}

/* NOSOTROS — Entrada */

#nosotros .cont > div {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.2, .7, .2, 1);
}

#nosotros.is-active .cont > div {
    opacity: 1;
    transform: translateY(0);
}

#nosotros .cont > div:nth-child(2) {
    transition-delay: .18s;
}

/* Pequeña vibración ocasional del 20 años */

@keyframes nosotros-brisa {
    0%, 94%, 100% {
        transform: translate(0, 0);
    }
    96% {
        transform: translate(1px, -1px);
    }
    98% {
        transform: translate(-1px, 1px);
    }
}

#nosotros.is-active .cont > div:first-child img {
    animation: nosotros-brisa 6s ease-in-out 1s infinite;
}

@media (prefers-reduced-motion: reduce) {
    #nosotros .cont > div {
        opacity: 1;
        transform: none;
        transition: none;
    }

    #nosotros .cont > div:first-child img {
        animation: none;
    }
}
/* NOSOTROS — ilustración inline y entrada escalonada */
#nosotros .cont { width:90%; }
#nosotros .nosotros-ilustracion { flex: 0 1 50%; min-width:0; }
#nosotros .anios-svg { display:block; width:100%; height:auto; overflow:visible; }
@media (max-width:989px) {
  #nosotros .cont > .nosotros-ilustracion { flex:none; width:100%; max-width:none; }
  #nosotros .cont > div:nth-child(2) { width:100%; min-width:0; }
}
/* Los elementos se revelan al entrar la sección. Los rellenos permanecen quietos. */
#nosotros .anios-svg #_x32_0fill,
#nosotros .anios-svg #aniosfill,
#nosotros .anios-svg #_x32_0stroke,
#nosotros .anios-svg #aniosstroke,
#nosotros .anios-svg #flecha,
#nosotros .anios-svg #fondo-verde,
#nosotros .anios-svg #anios-texto,
#nosotros .anios-svg #cuadrado-cian,
#nosotros .anios-svg #plusverde,
#nosotros .anios-svg #plusnegro { opacity:0; }
@keyframes bondi-nosotros-aparece { from {opacity:0} to {opacity:1} }
@keyframes bondi-nosotros-registro {
  0% {opacity:0; transform:translate(-2px,2px)}
  45% {opacity:1; transform:translate(1px,-1px)}
  75% {opacity:1; transform:translate(-.5px,.5px)}
  100% {opacity:1; transform:translate(0,0)}
}
@keyframes bondi-nosotros-flecha {
  from {opacity:0;transform:translate(-8px,5px)}
  to {opacity:1;transform:translate(0,0)}
}
#nosotros.is-active .anios-svg #_x32_0fill {animation:bondi-nosotros-aparece .48s ease 0s both}
#nosotros.is-active .anios-svg #aniosfill {animation:bondi-nosotros-aparece .5s ease .12s both}
#nosotros.is-active .anios-svg #_x32_0stroke {animation:bondi-nosotros-registro .58s ease-out .25s both}
#nosotros.is-active .anios-svg #aniosstroke {animation:bondi-nosotros-registro .62s ease-out .34s both}
#nosotros.is-active .anios-svg #plusverde,
#nosotros.is-active .anios-svg #plusnegro {animation:bondi-nosotros-aparece .4s ease .30s both}
#nosotros.is-active .anios-svg #flecha {animation:bondi-nosotros-flecha .55s ease-out .4s both}
#nosotros.is-active .anios-svg #fondo-verde {animation:bondi-nosotros-aparece .45s ease .5s both}
#nosotros.is-active .anios-svg #anios-texto {animation:bondi-nosotros-aparece .45s ease .62s both}
#nosotros.is-active .anios-svg #cuadrado-cian {animation:bondi-nosotros-aparece .4s ease .75s both}
@media (prefers-reduced-motion:reduce) {
 #nosotros .anios-svg #_x32_0fill,#nosotros .anios-svg #aniosfill,
 #nosotros .anios-svg #_x32_0stroke,#nosotros .anios-svg #aniosstroke,
 #nosotros .anios-svg #flecha,#nosotros .anios-svg #fondo-verde,
 #nosotros .anios-svg #anios-texto,#nosotros .anios-svg #cuadrado-cian,
 #nosotros .anios-svg #plusverde,#nosotros .anios-svg #plusnegro {opacity:1!important;animation:none!important}
}

/* CONTACTO — entrada */

#contacto .formyredes form,
#contacto .redes a {
    opacity: 0;
    transform: translateY(20px);
}

#contacto.is-active .formyredes form {
    animation: contacto-entrada .65s ease-out .15s both;
}

#contacto.is-active .redes a {
    animation: contacto-entrada .55s ease-out both;
}

#contacto.is-active .redes a:nth-child(1) {
    animation-delay: .55s;
}

#contacto.is-active .redes a:nth-child(2) {
    animation-delay: .7s;
}

#contacto.is-active .redes a:nth-child(3) {
    animation-delay: .85s;
}

@keyframes contacto-entrada {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #contacto .formyredes form,
    #contacto .redes a {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

/* V6 — Proyectos en la home: composición centrada, dos filas en escritorio.
   El ancho se adapta también a la altura útil del viewport. */
@media (min-width:1200px) and (min-height:650px) {
  #proyectos { display:flex; align-items:center; justify-content:center; }
  #proyectos > .cont {
    width:min(90%, calc((100dvh - var(--head-h) - 36px) * 2.5));
    max-width:1600px;
    margin-inline:auto;
  }
  #proyectosGrid { grid-template-columns:repeat(5,minmax(0,1fr)); }
  #proyectosGrid .proy-card .thumb { aspect-ratio:1; }
  #proyectosGrid .proy-hero { aspect-ratio:2/1; }
}
@media (min-width:1200px) and (max-height:649px) {
  #proyectos { padding-block:20px; }
  #proyectos > .cont { width:min(90%,1050px); margin-inline:auto; }
}
@media (min-width:768px) and (max-width:1199px) {
  #proyectos { display:flex; align-items:center; padding-block:24px; }
  #proyectos > .cont { width:min(90%,980px); margin-inline:auto; }
}
@media (max-width:767px) {
  #proyectos { padding-block:30px; }
  #proyectos > .cont { width:90%; margin-inline:auto; }
}
/* V6 — Entrada escalonada, solo una vez por visita y con JS habilitado. */
#proyectos.proyectos-motion-ready:not(.proyectos-revealed) #proyectosGrid > * {
  opacity:0; transform:translateY(20px);
}
#proyectos.proyectos-motion-ready.proyectos-revealed #proyectosGrid > * {
  animation:bondiProyEntrar .55s both cubic-bezier(.2,.75,.22,1);
  animation-delay:var(--proy-delay,0ms);
}
@keyframes bondiProyEntrar {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}
@media (prefers-reduced-motion:reduce) {
  #proyectos.proyectos-motion-ready:not(.proyectos-revealed) #proyectosGrid > * { opacity:1; transform:none; }
  #proyectos.proyectos-motion-ready.proyectos-revealed #proyectosGrid > * { animation:none; }
}
