/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
	background-color: #fffef8;
}

ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/** end reset css**/
body {
	max-width: 1140px;
	margin:auto;
	font-family: 'Work Sans' ;
	font-size: 14px;
	padding-bottom: 80px; 
}

/* #body-login {
	 max-height: 700px; 
  	border: 1px solid red; 
} */

header {
	display: flex;
	justify-content: space-between;
	margin: 50px 0
}
section {
	margin: 50px 0
}

h1{
	display: flex;
	flex-direction: column;
	font-family: 'Syne';
	font-size: 22px;
	font-weight: 800;
	color: #B1663C
}

h1 > span {
	font-family: 'Work Sans';
	font-size:10px;
	letter-spacing: 0.1em;
;
}

h2 {
	font-family: 'Syne';
	font-weight: 700;
	font-size: 30px;
	color: #1D6154
}

#categories {
	display: flex;
	gap: 30px;
	justify-content: center;
}

#categories li {
	font-family: 'Syne';
	color: #1D6154;
	border: 2px solid #1D6154;
	padding: 5px 30px; 
	border-radius: 15px;
	margin-bottom: 25px;
}

#categories li:first-child {
  color: white;
  background-color: #1D6154;
}

#categories li:not(:first-child):hover {
  color: white;
  background-color: #1D6154;
}

nav ul {
	display: flex;
	align-items: center;
	list-style-type: none;

}
nav li {
	padding: 0 10px;
	font-size: 1.2em;
}

li:hover {
	color: #B1663C;
}

a {
    text-decoration: none;
    color: inherit;
}

#introduction {
	display: flex;
	align-items: center;
}
#introduction figure {
	flex: 1
}
#introduction img {
	display: block;
	margin: auto;
	width: 80%;
}

#introduction article {
	flex: 1
}
#introduction h2 {
	margin-bottom: 1em;
}

#introduction p {
	margin-bottom: 0.5em;
}

#login-section {
	display: flex;
	justify-content: center;
}

#portfolio h2, #login h2 {
	text-align: center;
	margin-bottom: 1em;
}

#project-edit-section {
	display: flex;
	gap: 30px;
	justify-content: center;
}

.edit-project-icon,
.delete-icon, 
#categories > li 
{
  cursor: pointer;
}

#project-edit-section p {
	margin-top: 10px;
	color: black;
	font-size: 15px;
	margin-right: 5px;
}

.gallery {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-column-gap: 20px;
	grid-row-gap: 20px;
}

.gallery img {
	object-fit: cover; 
	width: 100%;
	height: 100%;

}

#contact {
	width: 50%;
	margin: auto;
}
#contact > * {
	text-align: center;

}
#contact h2{
	margin-bottom: 20px;
}
#contact form, #login form {
	text-align: left;
	margin-top:30px;
	display: flex;
	flex-direction: column;
}

#login form {
	gap: 20px;
}

input[type="email"], input[type="password"], input[type="text"], .form-control {
	min-width: 379px;
	min-height: 51px;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	background-color: #ffffff;
    }

input[type="submit"] {
    width: 120px;
    height: 40px;
    background-color: #2f4f3f; /* verde oscuro similar al de la imagen */
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

#contact input {
	height: 50px;
	font-size: 1.2em;
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}
#contact label {
	margin: 2em 0 1em 0;
}
#contact textarea {
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}

input[type="submit"]{
	font-family: 'Syne';
	font-weight: 700;
	color: white;
	background-color: #1D6154;
	margin : 2em auto ;
	width: 180px;
	text-align: center;
	border-radius: 60px ;
}

footer { 
	position: fixed;
	left: 0;
	bottom: 0;
	background-color: white;
	width: 100%;
}
footer nav ul {
	display: flex;
	justify-content: flex-end;
	margin: 2em
}

#modal-photogallery, #modal-addphoto {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00000080;
  z-index: 2;
}


.modal-content {
  display: flex;
  flex-direction: column;
  position: absolute;
  max-width: 630px;
  max-height: 750px;
  background-color: #fff;
  border-radius: 10px;
  padding: 60px 100px; 
  box-sizing: border-box;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

.modal-content .add-photo {
  margin-bottom: 30px;
}

.btn-primary {
	display: flex;
	justify-content: center;
	align-items: center; 
	font-family: 'Syne';
    font-weight: 700;
    color: white;
    background-color: #1D6154;
    margin: auto;
	margin-top: 50px; /* Debatilbe = GAP ? */
    width: 193px;
	height: 35px;
    border-radius: 60px;
	border: none;
}

#uploadPhoto {
	width: 420px;
	height: 169px;
}

#uploadPhoto {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background-size: 40px;
  border: 2px #ccc;
  border-radius: 8px;
  margin-bottom: 20px;
  /* padding: 40px; */
}
#uploadPhoto:empty {
  background-color: #f6f6f6;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 60px 0;
}

#model-buttom-content {
	display: flex;
}

.photo-grid img {
  width: auto;
  height: auto;
  max-width: 76.86px;
  max-height: 102.57px;
  height: 100%;
  width: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.photo-grid .grid-wrapper {
  position: relative;
  display: inline-block;
  margin: 0;
}

.photo-grid .grid-wrapper .delete-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  color: white;
  cursor: pointer;
  background-color: black;
  padding: 5px;
  z-index: 2;
}

#modal-addphoto .photo-grid {
	flex-direction: column;
	align-items: center;
}

form.add-photo { 
	display: flex;
	flex-direction: column;
	gap: 15px;
}


/* Ocultamos el input real */
#uploadPhoto {
  display: none;
}


.photo-upload-box {
  max-width: 420px;
  width: 100%;
  height: 160px;
  border: 2px dashed #ddd;
  background-color: #f6f6f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-bottom: 20px;
}

.photo-upload-box:hover {
  border-color: #999;
  background-color: #f0f0f0;
}

.photo-upload-box img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.photo-upload-box span {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.photo-upload-box small {
  font-size: 12px;
  color: #888;
  margin-top: 5px;
}
