/* ==========================================================================
   PAMPA GLOBAL TRADE LLC
   Diseño base: 1920px · Container máximo: 1620px
   Tipografía: Gravita GEO (Light 300 / Medium 500 / Bold 700 / Black 900)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fuentes
   -------------------------------------------------------------------------- */
@font-face {
	font-family: "Gravita GEO";
	src: url("../fonts/GravitaGEO-Light.otf") format("opentype");
	font-weight: 300;
	font-display: swap;
}
@font-face {
	font-family: "Gravita GEO";
	src: url("../fonts/GravitaGEO-Medium.otf") format("opentype");
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "Gravita GEO";
	src: url("../fonts/GravitaGEO-Bold.otf") format("opentype");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "Gravita GEO";
	src: url("../fonts/GravitaGEO-Black.otf") format("opentype");
	font-weight: 900;
	font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Variables y reset
   -------------------------------------------------------------------------- */
:root {
	/* Colores */
	--navy:   #003C5A;
	--teal:   #117B9E;
	--yellow: #F1AD13;
	--grey:   #e8e8e8;
	--white:  #ffffff;
	--dark:   #1a1a1a;

	/* Layout */
	--container: 1620px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--logo-w: clamp(5rem, 12.5vw, 15rem); /* 240px a 1920px */
	--header-h:    clamp(5rem, 6.95vw, 8.3rem);   /* 133px a 1920px */
	--header-h-sm: clamp(3.6rem, 4.4vw, 5.2rem);  /* header reducido (scroll) */
	--logo-w-sm:   clamp(3.6rem, 5.2vw, 6.5rem);  /* logo reducido (scroll) */
	--section-space: clamp(3rem, 6vw, 7.5rem);

	/* Escala tipográfica fluida (valor máximo = tamaño en diseño 1920px) */
	--fs-hero:    clamp(2rem,   4.4vw, 5.4rem);
	--fs-h1:      clamp(2.6rem, 5.2vw, 6.2rem);
	--fs-h2:      clamp(2.2rem, 4.4vw, 5.2rem);
	--fs-lead:    clamp(1.15rem, 1.7vw, 2.1rem);
	--fs-card-t:  clamp(1.4rem, 1.9vw, 2.3rem);
	--fs-card-p:  clamp(1.05rem, 1.45vw, 1.85rem);
	--fs-step-t:  clamp(1.6rem, 2.1vw, 2.6rem);
	--fs-step-p:  clamp(1rem, 1.25vw, 1.5rem);
	--fs-btn:     clamp(1.1rem, 1.35vw, 1.65rem);
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	/* El scroll suave lo hace jQuery (main.js); esto es el respaldo sin JS */
	scroll-padding-top: var(--header-h-sm);
}

body {
	font-family: "Gravita GEO", Arial, sans-serif;
	font-weight: 300;
	color: var(--dark);
	background: var(--white);
	line-height: 1.25;
	-webkit-font-smoothing: antialiased;
	padding-top: var(--header-h); /* reserva el espacio del header fijo */
}

body.modal-open { overflow: hidden; }

img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   3. Componentes reutilizables
   -------------------------------------------------------------------------- */

/* Títulos de sección */
.title {
	font-size: var(--fs-h2);
	font-weight: 700;
	line-height: 1.1;
}
.title--teal   { color: var(--teal); }
.title--yellow { color: var(--yellow); }
.title--navy   { color: var(--navy); }

/* Signo "+" decorativo (cruz) */
.plus {
	display: inline-block;
	position: relative;
	width: 0.6em;
    height: 0.6em;
	vertical-align: top;
	margin-left: .12em;
}
.plus::before,
.plus::after {
	content: "";
	position: absolute;
	background: currentColor;
}
.plus::before { left: 0; top: 36%; width: 100%; height: 28%; }
.plus::after  { top: 0; left: 36%; height: 100%; width: 28%; }

.plus--small {
	width: .4em;
	height: .4em;
	margin: 0 .22em 0 0;
	vertical-align: middle;
}

/* Botones */
.btn {
	display: inline-block;
	padding: .95em 2.4em;
	font-size: var(--fs-btn);
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-align: center;
	transition: background-color .25s, color .25s;
}
.btn--light  { background: var(--white);  color: var(--teal); }
.btn--yellow { background: var(--yellow); color: var(--white); }
.btn--teal   { background: var(--teal);   color: var(--white); }

.btn--light:hover  { background: var(--yellow); color: var(--white); }
.btn--yellow:hover { background: var(--white);  color: var(--teal); }
.btn--teal:hover   { background: var(--navy); }

:focus-visible {
	outline: 3px solid var(--yellow);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--yellow) url(../img/header-bg.png) repeat-x top center;
	transition: box-shadow .3s;
}
.header.is-scrolled {
	--logo-w: var(--logo-w-sm);
	--hy-top: clamp(.3rem, .45vw, .6rem);
	box-shadow: 0 4px 18px rgba(0,0,0,.2);
}

/* Medidas del diseño (artboard 1920px):
   - alto del header: 133px  · franja decorativa superior: 24px
   - logo: 240px de ancho, a 124px del borde izquierdo y 24px del borde superior
   - banderas: a 38px del borde derecho
   El header ocupa todo el ancho (no usa el container de 1620px); en pantallas
   mayores a 1920px los márgenes laterales siguen alineados al container. */
.header {
	--hx-left:  max(var(--gutter), calc((100% - var(--container)) / 2 - 1.6rem));
	--hx-right: max(1.25rem,       calc((100% - var(--container)) / 2 - 7rem));
	--hy-top:   clamp(.5rem, 1.25vw, 1.5rem);
}

.header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: none;
	min-height: var(--header-h);
	padding: var(--hy-top) var(--hx-right) 0 var(--hx-left);
	transition: min-height .35s ease, padding .35s ease;
}
.header.is-scrolled .header__inner { min-height: var(--header-h-sm); }

.header__brand {
	display: flex;
	align-items: center;
	/* Reserva el espacio del logo (fuera del flujo) + separación hasta el texto */
	padding-left: calc(var(--logo-w) + clamp(.6rem, 2.1vw, 2.6rem));
	transition: padding-left .35s ease;
}
.header__logo {
	position: absolute;
	left: var(--hx-left);
	top: var(--hy-top);
	width: var(--logo-w);
	height: auto;
	z-index: 2;
	transition: width .35s ease, top .35s ease;
}
.header__name {
	font-size: clamp(1rem, 2.1vw, 2.5rem);
	font-weight: 900;
	color: var(--navy);
	white-space: nowrap;
	transition: font-size .35s ease;
}
.header.is-scrolled .header__name { font-size: clamp(.95rem, 1.6vw, 1.9rem); }

/* Navegación */
.nav {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.4vw, 3rem);
}
.nav__list {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.4vw, 3rem);
}
.nav__link {
	font-size: clamp(.7rem, .85vw, 1.05rem);
	font-weight: 500;
	text-transform: uppercase;
	color: var(--white);
	transition: color .2s;
}
.nav__link--strong { color: var(--white); font-weight: 700; }
.nav__link:hover   {  color: var(--navy); }

.lang { display: flex; gap: .6rem; }
.lang__item img { width: clamp(1.4rem, 1.7vw, 2rem); opacity: .6; transition: opacity .2s; }
.lang__item.is-active img,
.lang__item:hover img { opacity: 1; }

/* Botón hamburguesa (solo móvil) */
.header__toggle {
	display: none;
	width: 2.6rem;
	height: 2.6rem;
	flex-direction: column;
	justify-content: center;
	gap: .4rem;
	padding: .5rem;
}
.header__toggle span {
	display: block;
	height: 3px;
	background: var(--navy);
	transition: transform .25s, opacity .25s;
}
.header__toggle.is-open span:nth-child(1) { transform: translateY(.7rem) rotate(45deg); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; }
.header__toggle.is-open span:nth-child(3) { transform: translateY(-.7rem) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(26rem, 57vw, 70rem);
	overflow: hidden;
	background: #0a5f86;
	color: var(--white);
}
.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: center;
	will-change: transform;
	animation: heroZoom 30s ease-out forwards; /* zoom in muy lento */
}
@keyframes heroZoom {
	from { transform: scale(1); }
	to   { transform: scale(1.12); }
}
.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	align-items: end;
	gap: 2rem;
	padding-bottom: clamp(1.5rem, 2.6vw, 3.2rem);
}
.hero__title {
	font-size: var(--fs-hero);
	font-weight: 700;
	line-height: 1.15;
}
.hero__text {
	font-size: var(--fs-lead);
	font-weight: 300;
	line-height: 1.2;
}

/* --------------------------------------------------------------------------
   6. Conocé
   -------------------------------------------------------------------------- */
.about {
	background: var(--navy) url(../img/conoce-bg.png) no-repeat top center;
	color: var(--white);
	padding-block: clamp(2.5rem, 4.5vw, 5.5rem) clamp(3rem, 6vw, 7.5rem);
}
.about__title {
	font-size: var(--fs-h1);
	font-weight: 700;
	line-height: 1;
	margin-bottom: clamp(2rem, 4vw, 5rem);
}
.about__title .plus { vertical-align: top; margin-top: -.12em; margin-left: 0.2em; }

.about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 4vw, 5rem);
}
.about__col p {
	font-size: var(--fs-lead);
	font-weight: 500;
	line-height: 1.2;
	max-width: 30ch;
}
.about__col p + p   { margin-top: 1.6em; }
.about__col .btn    { margin-top: clamp(1.5rem, 2.4vw, 3rem); min-width: min(100%, 14em); }

/* --------------------------------------------------------------------------
   7. Productos
   -------------------------------------------------------------------------- */
.products {
	background: url(../img/productos-bg.png) no-repeat top center;
	padding-block: clamp(2.5rem, 4.5vw, 5.5rem) clamp(3rem, 7vw, 8rem);
}
.products .title { margin-bottom: clamp(1.5rem, 2.4vw, 3rem); }

.products .plus { 
	vertical-align: bottom;
    margin-bottom: 0.3em;
    margin-left: 0px;
    width: 0.5em;
    height: 0.5em;

}

.products__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.5rem, 2.4vw, 3rem) clamp(1rem, 2.4vw, 3rem);
	align-items: start;
}

.card__img {
	width: 100%;
	aspect-ratio: 213 / 147;
	object-fit: cover;
	transition: transform 1.1s cubic-bezier(.22, .61, .36, 1);
}

/* Contenedor que recorta la imagen mientras hace zoom */
.card__media {
	overflow: hidden;
	margin-bottom: clamp(.8rem, 1.2vw, 1.5rem);
}
@media (hover: hover) {
	.card:hover .card__img { transform: scale(1.08); }
}
.card__title {
	font-size: var(--fs-card-t);
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: .6em;
}
.card__text {
	font-size: var(--fs-card-p);
	font-weight: 300;
	line-height: 1.2;
	max-width: 17em;
}

/* Caja CTA */
.cta {
	grid-column: span 2;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-self: stretch;
	min-height: clamp(16rem, 24vw, 29rem);
	padding: clamp(1.5rem, 3vw, 3.5rem);
	background: var(--teal);
	color: var(--white);
}
.cta__close {
	position: absolute;
	top: .6rem;
	right: 1.2rem;
	font-size: clamp(2rem, 2.8vw, 3.4rem);
	line-height: 1;
}
.cta__title {
	font-size: clamp(1.7rem, 2.9vw, 3.5rem);
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
	max-width: 14em;
	margin-top: clamp(.5rem, 1vw, 1.5rem);
}
.cta .btn {
	align-self: center;
	width: min(100%, 24em);
	margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   8. Trabajemos juntos
   -------------------------------------------------------------------------- */
.work {
	background: var(--navy) url(../img/trabajemos-bg.png) no-repeat top center;
	color: var(--white);
	padding-block: clamp(2.5rem, 4.5vw, 5.5rem) clamp(2.5rem, 4.5vw, 5.5rem);
}
.work .title { margin-bottom: clamp(1.5rem, 3vw, 3.5rem); }

.work__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.5rem, 3vw, 4rem);
}
.step__icon {
	height: clamp(3.5rem, 5.2vw, 6.5rem);
	width: auto;
	margin-bottom: clamp(1rem, 1.8vw, 2.2rem);
}
.step__title {
	font-size: var(--fs-step-t);
	font-weight: 700;
	line-height: 1.1;
	min-height: 3.3em;
	max-width: 10em;
}
.step__text {
	font-size: var(--fs-step-p);
	font-weight: 500;
	line-height: 1.25;
	max-width: 22em;
}

.work .step img {
    width: 210px;
    height: 140px;
    text-align: center;
    margin: 0em auto 3.3em auto;
}

/* --------------------------------------------------------------------------
   9. Novedades
   -------------------------------------------------------------------------- */
.news {
	padding-block: clamp(1.5rem, 2.4vw, 3rem) clamp(2rem, 3.5vw, 4.5rem);
}
.news .title { font-size: clamp(2.2rem, 3.8vw, 4.6rem); }
.news__text {
	margin-top: .4em;
	font-size: var(--fs-lead);
	font-weight: 300;
}

#novedades .title--navy {
	color:#117B9E !important;
}

/* --------------------------------------------------------------------------
   10. Contacto
   -------------------------------------------------------------------------- */
.contact {
	background: var(--grey);
	padding-block: clamp(2rem, 3.5vw, 4.5rem);
}
.contact__grid {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: clamp(1.5rem, 3.5vw, 4.5rem);
	align-items: start;
}

.contact__box {
	position: relative;
	min-height: clamp(18rem, 26vw, 32rem);
	padding: clamp(1.5rem, 3vw, 3.8rem);
	background: var(--yellow);
	color: var(--white);
}
.contact__close {
	position: absolute;
	top: .4rem;
	right: 1rem;
	font-size: clamp(1.4rem, 1.6vw, 2rem);
	line-height: 1;
}
.contact__title {
	font-size: clamp(2.2rem, 3.6vw, 4.4rem);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-top: clamp(.5rem, 1vw, 1.2rem);
	margin-bottom: clamp(1rem, 2vw, 2.4rem);
}
.contact__text {
	font-size: clamp(1.2rem, 1.9vw, 2.3rem);
	font-weight: 300;
	line-height: 1.25;
}

/* Formulario */
.form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(.6rem, 1vw, 1.2rem) clamp(1rem, 1.4vw, 1.7rem);
}
.form__field--full { grid-column: 1 / -1; }

.form label {
	display: block;
	margin-bottom: .25rem;
	font-size: clamp(.85rem, 1vw, 1.2rem);
	font-weight: 500;
	color: #444;
}
.form input,
.form textarea {
	width: 100%;
	padding: .6em .8em;
	font: inherit;
	font-size: clamp(.95rem, 1.1vw, 1.3rem);
	font-weight: 300;
	background: #e8e8e8;
	border: 1px solid #999;
	border-radius: 0;
	resize: vertical;
}
.form input:focus,
.form textarea:focus {
	outline: 0;
	border-color: var(--teal);
	box-shadow: 0 0 0 2px rgba(17, 122, 160, .3);
}
.form .is-error { border-color: #c0392b; background: #fff5f4; }

.form__error {
	display: block;
	margin-top: .3rem;
	font-size: clamp(.8rem, .95vw, 1.1rem);
	font-weight: 500;
	color: #c0392b;
}
.form__error:empty { display: none; }

/* Campo trampa anti-spam: invisible para personas */
.form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.btn.is-loading { opacity: .65; pointer-events: none; }

.form__actions {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.5rem;
	margin-top: clamp(.6rem, 1.4vw, 1.8rem);
}
.form__actions .btn { min-width: clamp(10rem, 18vw, 22rem); }

/* --------------------------------------------------------------------------
   10b. Modal de confirmación
   -------------------------------------------------------------------------- */
.modal {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s, visibility .25s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(4, 65, 107, .75);
}
.modal__dialog {
	position: relative;
	width: min(100%, 36rem);
	padding: clamp(2rem, 4vw, 3.2rem) clamp(1.5rem, 3vw, 3rem);
	background: var(--white);
	text-align: center;
	border-top: .6rem solid var(--yellow);
	transform: translateY(1.2rem);
	transition: transform .25s;
}
.modal.is-open .modal__dialog { transform: none; }

.modal__close {
	position: absolute;
	top: .4rem;
	right: .9rem;
	font-size: 2.2rem;
	line-height: 1;
	color: var(--navy);
}
.modal__icon {
	display: none;
	width: 4.5rem;
	height: 4.5rem;
	margin: 0 auto 1.2rem;
}
.modal--success .modal__icon--success,
.modal--error .modal__icon--error { display: block; }

.modal__title {
	font-size: clamp(1.6rem, 2.2vw, 2.2rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--navy);
	margin-bottom: .6rem;
}
.modal__text {
	font-size: clamp(1.05rem, 1.3vw, 1.3rem);
	line-height: 1.3;
	margin-bottom: 1.8rem;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.footer {
	background: #086E93;
	color: var(--white);
	padding-block: clamp(1rem, 1.6vw, 2rem);
}
.footer__inner {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: .8rem clamp(1.5rem, 4vw, 5rem);
}
.footer__link {
	display: inline-flex;
	align-items: center;
	gap: .7em;
	font-size: clamp(.85rem, 1vw, 1.2rem);
	font-weight: 500;
	transition: color .2s;
}
.footer__link svg { width: 1.6em; height: 1.6em; flex: none; position: relative;
    top: 0.1em; }
.footer__link:hover { color: var(--yellow); }

/* --------------------------------------------------------------------------
   12. Aparición suave de elementos (fade-in al hacer scroll)
   Solo se activa si hay JS (clase "js" en <html>); main.js agrega .is-visible
   -------------------------------------------------------------------------- */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(1rem);
	transition: opacity 1s ease, transform 1s cubic-bezier(.22, .61, .36, 1);
}
.js [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}
.js [data-reveal].is-revealed { transition: none; }

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

/* ---- Tablet landscape ---- */
@media (max-width: 1100px) {
	.header__toggle { display: flex; }

	.nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 1.2rem;
		padding: 1.5rem var(--gutter) 2rem;
		background: var(--navy);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-.8rem);
		transition: opacity .25s, transform .25s, visibility .25s;
	}
	.nav.is-open { visibility: visible; opacity: 1; transform: none; }

	.nav__list { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
	.nav__link { font-size: 1.1rem; color: var(--white); }
	.nav__link:hover { color: var(--yellow); }
	.nav__link--strong { color: var(--yellow); }
	.lang__item img { width: 2rem; }
}

/* ---- Tablet portrait ---- */
@media (max-width: 860px) {
	.hero__inner { grid-template-columns: 1fr; gap: 1rem; }
	.hero__text  { max-width: 28em; }

	.about__grid { grid-template-columns: 1fr; }
	.about__col p { max-width: none; }

	.products__grid { grid-template-columns: repeat(2, 1fr); }
	.cta { grid-column: 1 / -1; }

	.work__grid { grid-template-columns: 1fr; }
	.work .title { width:100%; text-align:center; } 
	.step__title { min-height: 0; margin-bottom: .6em; max-width: none; text-align:center; }
	.step__text  { max-width: none;  text-align:center; }

	.contact__grid { grid-template-columns: 1fr; }
	.contact__box  { min-height: 0; }
}

/* ---- Móvil ---- */
@media (max-width: 560px) {
	.header__name { white-space: normal; line-height: 1; }

	.products__grid { grid-template-columns: 1fr; }
	.card__text { max-width: none; }

	.form { grid-template-columns: 1fr; }
	.form__actions { flex-direction: column; align-items: stretch; }
	.form__actions .btn { width: 100%; }

	.footer__inner { justify-content: flex-start; }
}

/* Accesibilidad: respeta preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
	.hero__bg { animation: none; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.card:hover .card__img { transform: none; }
}
