/*
Paleta de colores

Rosa Empolvado Satinado
#CFA0A8;

Rosa Palo Claro
#E4C2C8;

Champagne Perlado
#F2E8D8;

Blanco Iridiscente Frío
#EDEFF1;

*/

/* Reset básico */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

/* Estilo general de la página */
body {
    font-family: "Delius", cursive;
    font-weight: 400;
    font-style: normal;
	background-image: url(../media/diamantes_fondo.png);
	/*background-color: #edeff1 !important;*/
	background-attachment: fixed;
	color: #cfa0a8 !important;
	line-height: 1.6;
	text-align: center;
}

body a:link, body a:visited {
	text-decoration: none;
	color: #cfa0a8 !important;
}

body a:hover, body a:active {
	text-decoration: none;
	color: #e4c2c8 !important;
}

/* Header */
header {
	text-align: center;
	background-color: #e4c2c8;
	color: white;
	padding: 20px 0;
}

header .logo h1 {
	font-size: 2.5rem;
}

header .logo p {
	font-size: 1.2rem;
}

/* Sección de Proyectos */
.projects {
	margin-top: 40px;
	text-align: center;
}

.projects h2 {
	font-size: 2rem;
	margin-bottom: 20px;
}

.project-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

.project-card {
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	width: 250px;
	text-align: center;
	padding: 20px;
	transition: transform 0.3s;
}

.project-card img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	margin-bottom: 15px;
}

.project-card h3 {
	font-size: 1.5rem;
	margin-bottom: 10px;
}

.project-card p {
	font-size: 1rem;
	margin-bottom: 15px;
	color: #777;
}

.project-card a {
	display: inline-block;
	padding: 10px 20px;
	background-color: #007bff;
	color: white;
	text-decoration: none;
	border-radius: 5px;
	font-size: 1rem;
	transition: background-color 0.3s;
}

.project-card a:hover {
	background-color: #0056b3;
}

.project-card:hover {
	transform: translateY(-10px);
}


.login-container {
	background: #edeff1;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
	width: 100%;
	max-width: 400px;
	text-align: center;
}

.login-container h2 {
	margin-bottom: 20px;
}

.login-container input {
	width: 100%;
	padding: 10px;
	margin: 8px 0;
	box-sizing: border-box;
}

.login-container button {
	background-color: #cfa0a8;
	color: 	#edeff1;
	padding: 10px;
	width: 100%;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

.login-container button:hover {
	background-color: #e4c2c8;
}

.error {
	color: red;
	margin-top: 10px;
}

.quicksand-normal {
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.lexend-normal {
  font-family: "Lexend", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.delius-regular {
  font-family: "Delius", cursive;
  font-weight: 400;
  font-style: normal;
}

#header-menu {
	background-image: url('../media/flores_arriba.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;   /* Anclado a la izquierda */
    right: 0;  /* Anclado a la derecha */
    width: 100%;
    margin: 0 auto; /* Lo centra si la pantalla es más grande que 1020px */
    display: flex;
    justify-content: center;
}

/*animar menu al perder foco*/

/* The keyframes */
@keyframes grow-progress {
	0% {
		opacity: 1;
	}

	10% {
		opacity: 0;
	}
    100% {
        opacity: 0;
    }
}

/* Create scroll-timeline on the root */
html {
	scroll-timeline: --page-scroll block;
}

/* Attach the animation using an anonymous Scroll Progress Timeline */
#header-menu {
	animation: grow-progress auto linear;
	animation-timeline: --page-scroll;
}

/*termina animar menu*/


/* Contenedor del menú */
.menu-diamante ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5px;
    padding: 0;
    flex-wrap: wrap; /* <--- ESTO ES LA CLAVE: permite que bajen si no caben */
    margin: 0;
}

/* Los items de la lista deben poder encogerse */
.menu-diamante li {
    flex: 1; /* Cada diamante ocupa el mismo espacio */
    max-width: 110px; /* Evita que en pantallas grandes se vean gigantes */
}

/* Estado Normal del Botón */
.btn-diamante {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;  /* Ajusta al ancho de tu imagen */
    height: 156px; /* Ajusta al alto de tu imagen */
    text-decoration: none;
    /*float: left;*/
    
    /* Imagen de fondo normal */
    background-image: url('../media/diamantes_menu.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease; /* Suaviza el cambio */
}

/* Texto en estado normal */
.btn-diamante span {
    color: #CFA0A8; /* Rosa empolvado */
    font-family: 'Delius', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Estado HOVER (Al pasar el mouse) */
.btn-diamante:hover {
    /* Cambia la imagen de fondo */
    background-image: url('../media/diamante05.png');
    transform: scale(1.05); /* Pequeño efecto de aumento */
}

.btn-diamante:hover span {
    color: #CFA0A8; /* El texto cambia a blanco o el color que prefieras */
}

/* Estado ACTIVE (Al hacer clic) */
.btn-diamante:active {
    background-image: url('../media/diamante04.png');
    transform: scale(0.95); /* Efecto de pulsación */
}

.diamante {
	background-image: url('../media/diamantes01.png');
	display: block;
	min-width: 234px;
	min-height: 312px;
	max-width: 234px;
	max-height: 312px;
	margin: 0 auto;
}

.diamante p {
	position: absolute;
	font-size: 1em;
	display: inline-block;
	justify-content: center;
	align-items: center;
	display: flex;
	flex-direction: column;
	width: 234px;
	height: 312px;
	margin-left: 0px !important;
}


.fondo-diamante {
	background-image: url('../media/diamante_mediano.png');
    background-repeat: no-repeat;
    
    /* CAMBIO 1: 'contain' asegura que el diamante se vea completo sin recortes */
    background-size: contain; 
    background-position: center;

    /* CAMBIO 2: En lugar de un alto fijo, usamos un ancho relativo */
    width: 100%;
    max-width: 600px; /* Evita que crezca demasiado en computadoras */
    
    /* CAMBIO 3: Mantiene la proporción 375x499 (ajusta según tu imagen real) */
    aspect-ratio: 375 / 499; 

    /* CAMBIO 4: Centrado de contenido interno */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* Centra el contenedor mismo */
}

.fondo-diamante img {
    max-width: 90%; /* Ajusta este % para que la foto encaje dentro del marco del diamante */
    height: auto;
    object-fit: cover;
    /* Si el diamante es vertical, esto asegura que la foto se vea bien */
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); 
}

.div-abajo {
	display: block;
	max-width: 100%;
	min-height: 150px !important;
	background-image: url('../media/flores_abajo.png');
	background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto;
}

.div-arriba {
	display: block;
	max-width: 100%;
	min-height: 150px !important;
	background-image: url('../media/flores_arriba.png');
	background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto;
}

/* DIVISORES DE FLORES */
/*
.div-abajo, .div-arriba {
    width: 100%;
    max-width: 1024px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
}

.div-abajo { background-image: url('../media/flores_abajo.png'); }
.div-arriba { background-image: url('../media/flores_arriba.png'); }*/

.centrar {
	text-align: center;
}

.centrado {
	text-align: center;
	margin: 0 auto;
}

.centrado img {
	max-width: 90%;
	margin: 0 auto;
}
