/* gallery14: fonts + layout + gallery in one file. Built from local_fonts.css, styles13.css and gallery13.css with every rule the page never uses removed. */

@font-face {
  font-family: "GothamNarrow-Bold";
  src: url("local_fonts/GothamNarrow-Bold.eot?#iefix") format("embedded-opentype"),  url("local_fonts/GothamNarrow-Bold.otf")  format("opentype"),
	     url("local_fonts/GothamNarrow-Bold.woff") format("woff"), url("local_fonts/GothamNarrow-Bold.ttf")  format("truetype"), url("local_fonts/GothamNarrow-Bold.svg#GothamNarrow-Bold") format("svg");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "GothamNarrow-Medium";
  src: url("local_fonts/GothamNarrow-Medium.eot?#iefix") format("embedded-opentype"),  url("local_fonts/GothamNarrow-Medium.otf")  format("opentype"),
	     url("local_fonts/GothamNarrow-Medium.woff") format("woff"), url("local_fonts/GothamNarrow-Medium.ttf")  format("truetype"), url("local_fonts/GothamNarrow-Medium.svg#GothamNarrow-Medium") format("svg");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "GothamNarrow-Book";
  src: url("local_fonts/GothamNarrow-Book.eot?#iefix") format("embedded-opentype"),  url("local_fonts/GothamNarrow-Book.otf")  format("opentype"),
	     url("local_fonts/GothamNarrow-Book.woff") format("woff"), url("local_fonts/GothamNarrow-Book.ttf")  format("truetype"), url("local_fonts/GothamNarrow-Book.svg#GothamNarrow-Book") format("svg");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Whitney-Book";
  src: url("local_fonts/Whitney-Book.eot?#iefix") format("embedded-opentype"),  url("local_fonts/Whitney-Book.otf")  format("opentype"),
	     url("local_fonts/Whitney-Book.woff") format("woff"), url("local_fonts/Whitney-Book.ttf")  format("truetype"), url("local_fonts/Whitney-Book.svg#Whitney-Book") format("svg");
  font-weight: normal;
  font-style: normal;
}

html, body {
    margin: 0px !important;
    height: 100%;
    text-align: left;
}

* {
    box-sizing: border-box;
}

a:link {
    transition: opacity 0.3s ease;
}

a:visited {
	color: black;  
	opacity:0.7;   
}

a:hover {
    color: black;  
 	text-decoration: underline;
 	opacity:0.7;
}

			#sm_buttons {
				top:0;
				vertical-align: top;
				z-index: 1001;
			}

				#linkedin_button {
					cursor:pointer;
				}

				#email_button {
					cursor:pointer;					
				}

#wrapper {
  height:100%;
}

#container_ext {
	height: 100%;
	background-color: white; 
}

			.container_int {
				height: 100%;
			}

						#aboutme {
							background-color: white;
						}

									#contents_aboutme {
										position: relative;
									}

												/*GOTHAM BOLD*/
												#nombre {
													font-family: "GothamNarrow-Bold";
												}

						.section {
							width: 100%;
							background-color: #F5F5F5;
						}

						.section.no_mtop {
							margin-top:0;	
						}

								/*GOTHAM MEDIUM*/
								.title_section {
									font-family: "GothamNarrow-Medium";
									color:red;
								}

								.subtitulo.separation {
									
								}

								/*WHITNEY BOOK*/	
								.bloque_txt {
									font-family: "Whitney-Book";
									
									vertical-align: top;
									color:#757575;	
								}

								.bloque_txt.short_mtop {
									
								}

								.bloque_txt.short_mbottom {

								}

								.one_video_div {

								}

								.one_img_div {  
									width: 100%;

								}

								.one_img_div img {
									width: 100%;
									max-width: 100%;
								}

								.two_img_div {  
									width: 100%;
									vertical-align: top;
									display: flex;
								}

								.two_img_one_div {
									width: calc(50% - 0.5rem);
								}

								.two_img_one_div.left {
									margin-right: 1rem;
									vertical-align: top;
								}

								.two_img_one_div.right {
									vertical-align: top;
								}

								.two_img_div img {
									width: 100%;
									max-width: 100%;
								}

								.three_img_div {  
									width: 100%;
									vertical-align: top;
									display: flex;
								}

								.three_img_one_div {
									width: calc(33.3% - 0.666rem);
								}

								.three_img_one_div.left {
									margin-right: 1rem;
									vertical-align: top;
								}

								.three_img_one_div.middle {
									margin-right: 1rem;
									vertical-align: top;
								}

								.three_img_one_div.right {
									vertical-align: top;
								}

								.three_img_one_div img {
									width: 100%;
									max-width: 100%;
								}

/* date table (aiforblind) */
.date_table_div { width:100%; margin-top:2rem; }
.date_table { width:100%; border-collapse:collapse; font-family:"Whitney-Book";  font-size:1.15rem; line-height:1.45rem; }
.date_table th { font-family:"GothamNarrow-Bold"; font-weight:normal;  padding:0 1.2rem 0.8rem 0; border-bottom:2px solid black; }
.date_table td { padding:0.85rem 1.2rem 0.85rem 0; border-bottom:1px solid #D0D0D0; vertical-align:top; }
.date_table th:first-child, .date_table td:first-child, .date_table th:last-child, .date_table td:last-child { white-space:nowrap; }
.date_table th:last-child, .date_table td:last-child { padding-right:0; }
.date_table tr.me td { color:#E5243B; font-family:"GothamNarrow-Bold"; }
@media (max-width: 599.98px) {
	.date_table_div { margin-top:1.3rem; }
	.date_table { font-size:0.85rem; line-height:1.15rem; }
	.date_table th, .date_table td { padding-right:0.6rem; }
	.date_table th:first-child, .date_table td:first-child, .date_table th:last-child, .date_table td:last-child { white-space:normal; }
}

/* reserve 16:9 space for videos so the page doesn't jump while they load */
.one_video_div video { aspect-ratio: 16 / 9; }

/* then.this.happened. self-generating doodle block */
#tth_doodle_block { position: relative; width: 100%; height: 16rem; margin-top: 1rem; background: #0c2828; overflow: hidden; }
#tth_doodle_block canvas { display: block; }
.tth_doodle_label { position: absolute; left: 1rem; bottom: 0.8rem; font-family: Menlo, Consolas, monospace; font-size: 0.7rem; color: rgba(255,255,255,0.5); pointer-events: none; }

/* ===================== gallery13: responsive sizing =====================
   Replaces styles_0 / 480 / 600 / 1024 / 1440 / 1600.css.
   Sizes scale smoothly between a phone (393px wide) and a desktop (1024px wide):
   below 393 they keep the phone value, above 1024 the desktop value.
   Layout breakpoints left: 600 (phone tables), 979 (panel full screen below 980px). */
html { font-size: clamp(12px, 10.754px + 0.317vw, 14px); line-height: 1rem; }

.container_int {
  width: 85%;
  margin-left: 5%;
}

#nombre {
  line-height: clamp(36.0px, 21.8px + 3.6133vw, 58.8px);
  padding-bottom: clamp(0.0px, 3.895px + -0.3803vw, 2.4px);
}

.section {
  padding-top: clamp(36.0px, 6.105px + 7.607vw, 84.0px);
  padding-bottom: clamp(36.0px, 6.105px + 7.607vw, 84.0px);
  margin-top: clamp(18.0px, 3.052px + 3.8035vw, 42.0px);
  margin-bottom: clamp(18.0px, 3.052px + 3.8035vw, 42.0px);
}
.title_section {
  font-size: clamp(20.4px, 13.923px + 1.6482vw, 30.8px);
  line-height: clamp(24.0px, 18.021px + 1.5214vw, 33.6px);
  margin-bottom: 0.3rem;
}
.subtitulo {
  font-size: clamp(13.2px, 9.214px + 1.0143vw, 19.6px);
  line-height: clamp(18.48px, 14.295px + 1.065vw, 25.2px);
}

.subtitulo.separation {
  margin-top: clamp(24.0px, -2.034px + 6.6244vw, 65.8px);
}
.bloque_txt {
  font-size: clamp(12.0px, 8.574px + 0.8716vw, 17.5px);
  line-height: clamp(15.0px, 10.391px + 1.1727vw, 22.4px);
  margin-top: clamp(13.2px, 9.214px + 1.0143vw, 19.6px);
}
.bloque_txt.short_mtop {
  margin-top: clamp(0.28px, 3.136px + -0.2789vw, 2.04px);
}
.bloque_txt.short_mbottom {
  margin-bottom: 0.8rem;
}

.one_video_div {
  margin-top: clamp(15.6px, 7.877px + 1.9651vw, 28.0px);
}
.one_img_div {
  margin-top: clamp(15.6px, 7.877px + 1.9651vw, 28.0px);
}
.two_img_div {
  margin-top: clamp(15.6px, 7.877px + 1.9651vw, 28.0px);
  margin-bottom: clamp(7.2px, 2.965px + 1.0777vw, 14.0px);
}
.three_img_div {
  margin-top: clamp(15.6px, 7.877px + 1.9651vw, 28.0px);
  margin-bottom: clamp(7.2px, 2.965px + 1.0777vw, 14.0px);
}

/* layout-only rules (unused on the current page) keep a step, moved from 1024 to the 900 breakpoint */
@media (min-width: 900px) {
  .container_int {
    width: 77%;
    margin-left: auto;
    margin-right: auto;
  }

}

/* PROTOTYPE 2: one chronological gallery of all projects, tagged WORK / PERSONAL */
#projects_grid { display: grid;    }
.pcard { cursor: pointer; }
.pcard_media { position: relative;  aspect-ratio: 16 / 9; background: #e4e4e4; overflow: hidden; }
.pcard_media video, .pcard_media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pcard_tag { font-family: "GothamNarrow-Medium"; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9a9a9a;  }

.pcard:hover .pcard_title { text-decoration: underline; }

.pcard_media .pcard_thumb { position: absolute; inset: 0; transition: opacity 0.25s; }
.pcard_media .pcard_empty { font-family: "GothamNarrow-Medium"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9a9a9a; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }   /* cards without a video or still ("In progress") */
.pcard.playing .pcard_thumb { opacity: 0; }

.pcard_tag { margin-top: 1rem; }
.pcard_title { margin-top: 0.35rem; }
.pcard_sub { margin-top: 0.4rem; }

/* gallery8b: cards follow the window width */
#projects .container_int, #aboutme .container_int { width: auto !important;  margin-left: 4vw !important; margin-right: 4vw !important; }

/* same left margin for every block (home, projects, bio, awards, conferences) */
#bio .container_int, #awards .container_int, #conferences .container_int { width: auto !important;  margin-left: 4vw !important; margin-right: 4vw !important; }

/* gallery11: Claude-style split — thumbnails left, project panel right with a title bar (expand / close) */
body.claude_layout { --pw: 55vw; }
body.claude_layout #container_ext { transition: padding 0.3s cubic-bezier(0.2,0.8,0.2,1);  }
body.claude_layout.panel_open #container_ext { padding-right: var(--pw); }

body.panel_open .pcard_sub { display: none; }

.pbtn { border: 0; background: transparent; color: #8a8a8a; width: 2.3rem; height: 2.3rem; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; }
.pbtn:hover { background: #f0f0f0; color: #222; }

#project_panel { position: fixed; z-index: 1003; top: 0; bottom: 0; right: 0; left: calc(100vw - var(--pw)); display: flex; flex-direction: column; background: #fff; border-left: 1px solid #e2e2e2; 
  transform: translateX(100%); visibility: hidden; transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), left 0.3s cubic-bezier(0.2,0.8,0.2,1), visibility 0s linear 0.3s; }
body.panel_open #project_panel { transform: none; visibility: visible; transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), left 0.3s cubic-bezier(0.2,0.8,0.2,1), visibility 0s; }
body.panel_open.panel_expanded #project_panel { left: 0; border-left: 0; }
.panel_bar { flex: none; display: flex; align-items: center; gap: 0.2rem; height: 3.4rem; padding: 0 0.7rem 0 1.4rem; border-bottom: 1px solid #eee; }
.panel_title { flex: 1; min-width: 0; font-family: "GothamNarrow-Medium"; font-size: 1.05rem; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel_body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
#project_panel .section {  margin: 0; padding-top: 0; padding-bottom: 0; background: transparent; }
#project_panel .container_int { width: auto !important; max-width: 1100px !important; margin: 0 auto !important; padding: 2rem 3rem 4rem 3rem;  }

/* draggable divider */
/* divider: the panel's own 1px left border, dark grey while hovering or dragging (thin vertical red reads purple on some screens).
   #panel_resizer is an 11px hit area centred on that border (whole-pixel offsets, so the grip and its lines are centred exactly). */
#panel_resizer { position: absolute; top: 0; bottom: 0; left: -6px; width: 11px; z-index: 5; cursor: col-resize; touch-action: none; color: #555; }
#panel_resizer:hover, body.pdrag #panel_resizer { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='8' shape-rendering='crispEdges'%3E%3Crect width='1' height='8' fill='%23e2e2e2'/%3E%3C/svg%3E") 5px top / 2px 8px repeat-y; }   /* hover line: same grey as the border, 2px (SVG) */
#panel_resizer::before { content: ""; position: absolute; top: 50%; left: 0; width: 11px; height: 28px; margin-top: -14px; border-radius: 6px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.28); }   /* grip */
#panel_resizer::after { content: ""; position: absolute; top: 50%; left: 3px; width: 5px; height: 10px; margin-top: -5px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='10' shape-rendering='crispEdges'%3E%3Crect width='2' height='10' fill='%23e2e2e2'/%3E%3Crect x='3' width='2' height='10' fill='%23e2e2e2'/%3E%3C/svg%3E") no-repeat; }
#panel_resizer:hover::after, body.pdrag #panel_resizer::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='10' shape-rendering='crispEdges'%3E%3Crect width='2' height='10' fill='%23888'/%3E%3Crect x='3' width='2' height='10' fill='%23888'/%3E%3C/svg%3E"); }   /* hover: darker grey (#888), same 2px size */
body.panel_expanded #panel_resizer { display: none; }
body.pdrag, body.pdrag * { cursor: col-resize !important; user-select: none !important; -webkit-user-select: none !important; }
body.pdrag #project_panel, body.pdrag #container_ext { transition: none !important; }
body.pdrag video { pointer-events: none; }

@media (max-width: 979px) {
  body.claude_layout { --pw: 100vw !important; }
  #panel_resizer { display: none; }
  body.claude_layout.panel_open #container_ext { padding-right: 0; }
  #project_panel { border-left: 0; }
  .panel_expand { display: none !important; }
  #project_panel .container_int { padding: 1.5rem 1.2rem 3rem 1.2rem; }
}

#contents_aboutme { padding-top: clamp(1.6rem, 3.5vw, 3.5rem) !important; }
#contents_aboutme #sm_buttons {   display: flex;  margin-top: 1.1rem;   }
#contents_aboutme #sm_buttons .sm_button {  margin-top: 0 !important;  }

/* rounded corners on thumbnails, videos and images */
.pcard_media { border-radius: 10px; }
#project_panel video, #project_panel img { border-radius: 10px; }

/* title bar breadcrumb */
.panel_title .pt_meta {  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9a9a9a; }

/* LinkedIn / Email as pill buttons (option A) */
a.sm_pill { display: inline-flex; align-items: center;   border: 1px solid #d4d4d4; border-radius: 999px;  text-decoration: none; line-height: 1.2rem; transition: border-color 0.15s, color 0.15s, background 0.15s; }
a.sm_pill:hover { border-color: red; color: red; }
a.sm_pill svg { flex: none; }

/* icon-only round buttons */
a.sm_pill.sm_icon { width: 2.2rem; height: 2.2rem;  gap: 0; justify-content: center;  color: #555; }
a.sm_pill.sm_icon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.sm_pill.sm_icon:hover { color: red; border-color: red; }
#contents_aboutme #sm_buttons { gap: 0.5rem; }

/* gallery11c: clearer "selected" outline; with a project open: 50/50 split, equal side padding, bigger cards */
.pcard.active .pcard_media {  outline-offset: 5px; }
body.claude_layout { --pw: 50vw; }

/* project details as a meta row (option A) */
.meta_row { display: grid; grid-auto-flow: row dense;   margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #e2e2e2; }

.meta_label { font-family: "GothamNarrow-Medium"; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9a9a9a; margin-bottom: 0.35rem; }
.meta_value { font-family: "Whitney-Book"; font-size: 1.05rem; line-height: 1.5rem; color: #333; }
.meta_value a { color: #333;  text-underline-offset: 3px; text-decoration-color: #bbb; }
.meta_value a:hover { color: red; text-decoration-color: red; }

/* meta row stacked: one detail below the other */
.meta_row { grid-template-columns: 1fr !important; gap: 1.05rem; }

/* selected card like Google Images: the whole card (thumb + text) gets a soft background, no outline */
.pcard {    transition: background 0.2s; }

/* thumbnails never below ~420px wide (captions stay readable); more room around the selected card */
#projects_grid { grid-template-columns: repeat(auto-fill, minmax(410px, 1fr)); column-gap: 3.4rem; row-gap: 3.4rem; }

.pcard { padding: 1rem; margin: -1rem; border-radius: 20px; }
@media (max-width: 599.98px) { #projects_grid, body.panel_open #projects_grid { grid-template-columns: 1fr; } }

/* phone landscape: 2 columns so a card fits the screen height */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 600px) {
  #projects_grid, body.panel_open #projects_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.4rem; row-gap: 2.4rem; }
}

/* panel bar: show the WORK / year path again, without the project title */
.panel_title { visibility: visible; }

/* path in the panel bar lines up with the project content (same left padding) */
#project_panel { container-type: inline-size; }
.panel_bar { padding-left: max(3rem, calc((100cqw - 1100px) / 2 + 3rem)); }
@media (max-width: 979px) { .panel_bar { padding-left: 1.2rem; } }
/* selected card: option A (red ring + white + shadow) with red title */
.pcard.active { background: #fff !important;  }
.pcard.active .pcard_title { color: red; }

 .pcard:hover { box-shadow: 0 0 0 3px #fff; } .pcard:hover .pcard_title { text-decoration: none; }

/* gap buttons → Projects, white : grey : Projects-to-thumb = 1 : 2 : 1 (phone 10/20/10, desktop 23/47/23) */
#aboutme { padding-bottom: clamp(10px, 1.696px + 2.113vw, 23.333px); }
#projects { padding-top: clamp(20px, 3.391px + 4.2261vw, 46.667px); }
#projects_grid { margin-top: clamp(6.4px, -1.821px + 2.0919vw, 19.6px); }
/* white space after the last section = white separator between sections */
#conferences { margin-bottom: clamp(36px, 6.105px + 7.607vw, 84px); }
/* subtitle style in GothamNarrow-Medium */
.subtitulo { font-family: "GothamNarrow-Medium"; }
/* header name and subtitle stay on one line on narrow phones */
#nombre { font-size: min(clamp(36px, 23.544px + 3.1696vw, 56px), 9.15vw); }
#contents_aboutme .subtitulo { font-size: min(clamp(13.2px, 9.214px + 1.0143vw, 19.6px), 3.25vw); }

/* Technologies as monospace chips (built in gallery14.js) */
.meta_chips { margin-bottom: -6px; }
.tchip { display: inline-block; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.78rem; line-height: 1.2; color: #333; background: #ececec; border-radius: 4px; padding: 3px 7px; margin: 0 6px 6px 0; }
