* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
[id] {
  scroll-margin-top: 130px;
}
html {
  scroll-behavior: smooth;
}
:root {
	--rojo: #ad0816;
	--gris: #e8e8e8;
	--gris-claro: #f4f4f4;
}
.rojo {
	color: var(--rojo);
}
body {
	font-family: "Montserrat", sans-serif;
	font-size: 18px;
}

h1, h2, h3, h4 {
	font-family: "Zilla Slab", serif;
	font-weight: 700;
	color: var(--rojo);
	margin: 0.3em 0 0.5em;
}
h1 {
	font-size: 2.5rem;
}
h2 {
	font-size: 2rem;
}
h3 {
	font-size: 1.5rem;
}
h4 {
	font-size: 1rem;
}
.container {
	width: 90%;
	max-width: 1200px;
	margin: auto;
}

.header {
	background: var(--gris);
	padding: 30px 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	z-index: 10;
}
.header .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}
.header .logo img {
	width: 250px;
	height: auto;
}
.menu-toggle {
	cursor: pointer;
	color: white;
	background: var(--rojo);
	position: fixed;
	right: 0;
	top: 30px;
	border-radius: 5px 0 0 5px;
	padding: 20px 15px 5px;
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: right 1s ease;
	box-shadow: 0px 2px 5px black;
}
.nav-abierto .menu-toggle {
	right: 340px;
}

/* Aplica animación a las barras */
.menu-toggle .bar {
	fill: white;
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform-origin: center;
}

/* Estado animado */
.nav-abierto .menu-toggle .top {
	transform: translateY(6px) rotate(45deg);
}

.nav-abierto .menu-toggle .middle {
	opacity: 0;
}

.nav-abierto .menu-toggle .bottom {
	transform: translateY(-6px) rotate(-45deg);
}

.nav {
	position: fixed;
	top: 0;
	right: 0;
	background: #000000d4;
	width: 340px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	padding: 100px 30px 30px;
	min-width: 340px;
	height: 100vh;
	transform: translateX(340px);
	transition: transform 1s ease;
}
.nav-abierto .nav {
	transform: translateX(0);
}

.nav ul {
	list-style: none;
	padding: 0;
}
.nav > ul {
	margin: 0 0 30px;
}
.nav ul.submenu {
	margin-top: 15px;
	padding-top: 10px;
	border-top: 1px solid #ffffff61;
}

.nav li {
	border-bottom: 1px solid #ffffff61;
	padding: 15px 0;
}
.nav .submenu li {
	border-bottom: none;
	padding: 5px 0 5px 15px;
}

.nav a {
	display: block;
	text-decoration: none;
	color: white;
	transition: color 0.5s ease;
}
.nav a:hover {
	color: var(--rojo);
}

.language-selector select {
	background: transparent;
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	padding: 5px 30px 5px 10px;
	color: white;

	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;

	background-image: url("data:image/svg+xml;charset=UTF-8,<svg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'><polyline points='30,50 70,90 110,50' fill='white' stroke='white' stroke-width='15' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 12px 12px;

	outline: none !important;
}

.hero {
	position: relative;
	width: 100%;
	height: 50vh;
	background-size: cover;
	background-position: center;
	transition: background-image 1s ease-in-out;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	color: white;
	text-align: center;
}

.hero img {
	width: 100%;
	height: auto;
}

.hero-text {
	background: var(--rojo);
	color: white;
	padding: 10px 20px;
	border-radius: 0 0 10px 10px;
	font-size: 18px;
	transform: translateY(100%);
}
.hero-text h1 {
	font-family: "Montserrat", sans-serif;
	font-weight: 400;
	color: white;
	font-size: 24px;
}

.intro {
	background: var(--gris);
	font-size: 22px;
}
.intro .container {
    padding: 150px 0 60px 110px;
    display: flex;
    justify-content: space-around;
    gap: 80px;
    background-image: url(http://nieto.com.ar/img/n-roja.svg);
    background-repeat: no-repeat;
	background-position: 0 61%;
    background-size: 90px;
    flex-direction: column;
}
.intro .container > * {
	position: relative;
}
.intro .container > *:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	left: 0;
	bottom: -40px;
	width: 100%;
	height: 1px;
	background: var(--rojo);
}

.areas-practica {
	padding: 40px 0;
}

.areas-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 2fr));
	gap: 20px;
	margin-top: 20px;
}

a.area-item {
	background-color: var(--gris-claro);
	padding: 20px;
	border-radius: 10px;
	font-size: 17px;
	text-decoration: none;
	transition: background .5s ease;
	color: black;
}
a.area-item * {
	transition: color .5s ease;
}
.area-item a {
	color: black;
}
.area-item:hover {
	background: var(--rojo);
	color: white;
}

.area-item h3 {
	margin-bottom: 10px;
	color: #999;
}
.area-item:hover h3 {
	color: white;
}

.clientes {
	background-color: #a7a7a7;
	background-image: url("http://nieto.com.ar/img/mapa.png?v=1");
	background-size: auto 200px;
	background-repeat: no-repeat;
	background-position: center bottom 40px;
	color: white;
	padding: 40px 0 280px;
	text-align: center;
	font-size: 18px;
}
.clientes h2 {

}

.contacto {
	background: var(--gris);
	padding: 40px 0;
	font-size: 18px;
}
.contacto .info {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}
.contacto .datos {
	display: flex;
	justify-content: center;
	flex-direction: column;
	margin-bottom: 50px;
	position: relative;
	z-index: 3;
	flex-wrap: wrap;
	gap: 10px;
}
.contacto .datos.data {
	width: 100%;
}
.contacto .datos .dato {
	display: flex;
	gap: 10px;
	color: black;
	align-items: center;
}
.contacto .datos div.dato {
	flex-direction: column;
	align-items: flex-start;
}
.contacto .datos a.dato {
	text-decoration: none;
	font-weight: bold;
	transition: color .5s;
}
.contacto .datos a.dato:hover {
	color: var(--rojo);
}
.contacto .dato img {
	width: 40px;
	height: 40px;
}
.vcard {
    width: 150px;
    display: block;
    color: black;
    box-shadow: 3px 3px 3px 1px #0000006b;
    border-radius: 20px;
    line-height: 0;
    overflow: hidden;
}
.vcard img {
	width: 100%;
	height: auto;
}

.mapa iframe {
	width: 100%;
	height: 300px;
}

.footer {
	background: white;
	padding: 20px 0;
	font-size: 20px;
}
.footer .container {
	display: flex;
}
.footer img {
	width: 110px;
	height: auto;
}
.banner {
	height: 400px; /* o el alto que desees */
	overflow: hidden;
}
.banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;         /* cubre el contenedor sin deformarse */
	object-position: center;   /* recorte desde el centro */
	display: block;
}
.areas-de-practica .body {
    padding: 0 0 50px 0;
}
.areas-de-practica .body p,
.profesional p {
    margin-bottom: 10px;
}
.areas-de-practica .servicios {
	padding: 50px 0;
}
ul:not(.menu):not(.submenu) {
    padding-left: 13px;
}
ul:not(.menu):not(.submenu) li {
    list-style-image: url(http://nieto.com.ar/img/flecha.svg);
    padding: 0 0 7px 10px;
}
.profesional {
	display: flex;
	flex-direction: column;
	gap: 0px;
	margin-bottom: 20px;
}
.profesional .foto {
	border-left: none;
	border-right: none;
	border-bottom: 10px solid white;
	line-height: 0;
	max-height: 300px;
	overflow: hidden;
}
.profesional .foto img {
	border-left: 20px solid var(--rojo);
	object-fit: cover;
	object-position: center;
	display: block;
	mix-blend-mode: multiply;
}
.nosotros .container {
	padding: 60px 0;
}
.flex {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
}
.grisclaro {
	background: var(--gris-claro);
}
@media (min-width: 768px) {
	.flex {
		flex-wrap: nowrap;
	}
	.intro {
		flex-direction: row;
	}

	.intro .intro-block {
		width: 45%;
	}

	.areas-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.hero {
		align-items: center;
	}
	.hero-text {
		max-width: 620px;
		position: absolute;
		bottom: 80px;
		width: 90%;
		left: 50%;
		transform: translateY(0);
		transform: translateX(-50%);
		border-radius: 10px;
	}
	.hero-text h1 {
		font-size: 36px;
	}
	.intro .container {
		padding: 120px 0 60px;
		background-position: center 31px;
		flex-direction: row;
	}
	.intro .container > *:not(:last-child)::after {
		right: -40px;
		top: 0;
		bottom: auto;
		left: auto;
		width: 1px;
		height: 100%;
	}
	.clientes {
		background-size: 100% auto;
		padding: 40px 0 calc(30% + 80px);
	}
	.contacto .datos.data {
		width: auto;
	}
	.profesional {
		flex-direction: row;
		gap: 40px;
	}
	.profesional .foto {
		border-left: 20px solid var(--rojo);
		border-right: 10px solid white;
		border-bottom: none;
		line-height: 0;
		max-height: initial;
		max-width: 400px;
		display: flex;
		align-items: flex-end;
	}
	.profesional .foto img {
		border-left: 10px solid white;
	}
	.profesional .txtprof {
		max-width: calc(100% - 430px);
	}
}
@media (min-width: 1220px) {
	body {
		padding-top: 130px;
	}
	.menu-toggle {
		display: none; /* oculta el ícono en desktop */
	}
	.header {
		position: fixed;
		width: 100%;
		top: 0;
		box-shadow: 3px 3px 10px #00000066;
	}
	.nav {
		display: block;
		position: static;
		width: auto;
		height: auto;
		background: none;
		box-shadow: none;
		padding: 0;
		transform: none;
	}
	.nav ul {
		display: flex;
		gap: 20px;
		margin: 0;
	}
	.nav li {
		border: none;
		padding: 0;
	}
	.nav a {
		font-size: 20px;
		color: black;
	}
	.language-selector {
		position: absolute;
		right: 0;
		top: 0;
	}
	/* Submenu con animación */
	.nav ul.submenu {
		position: absolute;
		flex-direction: column;
		top: 100%;
		left: -30px;
		gap: 10px;
		background: var(--gris);
		padding: 0 20px;
		width: 250px;
		border-radius: 0 0 5px 5px;
		box-shadow: 5px 20px 3px #00000044;
		overflow: hidden;

		/* Estados iniciales */
		max-height: 0;
		opacity: 0;
		pointer-events: none;
		padding-top: 0;
		padding-bottom: 0;

		transition:
			max-height 0.4s ease,
			opacity 0.3s ease,
			padding 0.3s ease;
	}

	.nav ul li.con-submenu {
		position: relative;
	}

	.nav ul li.con-submenu::after {
		content: '';
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		height: 30px; /* ajustá si necesitás más espacio */
	}

	/* Hover extendido */
	.nav ul li.con-submenu:hover > ul.submenu {
		max-height: 500px;
		opacity: 1;
		padding-top: 20px;
		padding-bottom: 20px;
		pointer-events: auto;
	}
	.language-selector select {
		color: black;
		background-image: url("data:image/svg+xml;charset=UTF-8,<svg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'><polyline points='30,50 70,90 110,50' fill='none' stroke='%23333' stroke-width='15' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	}
	.clientes {
		background-size: 1200px auto;
		padding: 40px 0 420px;
	}
}
