:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1f2937;
  --primary: #2563eb;
  --muted: #6b7280;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #e5e7eb;
  --primary: #38bdf8;
  --muted: #94a3b8;
}

* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  /* appearance: none; */
}
*::selection {
background-color: yellow;
color: blue;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

header {
    
    background: url('fondoNegro.jpg') center/cover no-repeat;
    /* min-height: 200px; */
    height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(177, 174, 174, 0.7);
}
header:hover{
    backdrop-filter: blur(1rem);
    filter: grayscale(100%);
}
/* header {
  display:inline-flex;
  justify-content:space-between;
  width: 100%;  
  align-items: center;
  padding: 0.5rem 2rem;
  background: var(--card);
  box-shadow: 0 20px 10px rgba(0,0,0,.05);
  height: 10rem;
  
} */

.header-actions {
  display: flex;
  gap: 1rem;
  align-items:center;
}

#themeToggle {

  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

.like-container {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  cursor: pointer;
}

main {
  padding: 2rem;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
}

.form-section, .list-section {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
}

form input, form textarea {
  width: 100%;
  margin-bottom: .8rem;
  padding: .6rem;
  border-radius: 8px;
  border: 1px solid #ccc;

  caret-color: red;
  resize: both; /* También puedes usar 'vertical' y 'horizonta' */
}

form button {
  width: 100%;
  padding: .7rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg);
  padding: 1rem;
  border-radius: 12px;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

.card h3 {
  margin-top: 0;
}

.card-actions {
  display: flex;
  justify-content: space-between;
}

.card-actions button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
}

footer {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  
  
}
.centrado {
    /* width: 100vw; */
    width: 60vw;
    height: 100vh;
    display: flex;
    place-content: center;
    place-items: center;
    /* width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis */
}
.puntitos{
    width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}
input {
border: solid 1px blue;
}
input:placeholder-shown {
border: solid 3px green;
}
input:valid {
border: solid 5px green;
}
input:invalid {
border: solid 5px red;
}
p:not(:empty) {
border: solid 3px;
}
p:first-letter {
font-family: Georgia;
font-size: 4rem;
line-height: 1;
}

img {
width: 100%;
height: 100%;
object-fit: cover;
filter: drop-shadow(5px 5px 5px #222222);
}
.img2 {
float: left;
width: 150px;
margin: 20px;
shape-outside: url("output.png");
}
/* --Poner un filtro de color sobre una imagen */
.picturecolor{
    background: #00c2ff;   
}
.picturecolor img{    
    mix-blend-mode: multiply;
    filter: grayscale(100%);
}
.picturecolor img:hover{
    background: transparent;
    mix-blend-mode:normal;
    filter: none;
}
h2 {
font-size: 72px;
background: -webkit-linear-gradient(#eee, #333);
background-clip: text;
-webkit-text-fill-color: transparent;

}
.gradiente {
font-size: 5rem;
background: -webkit-linear-gradient(var(--primary), var(--text));
background-clip: text;
-webkit-text-fill-color: transparent;
}
h3{
/* Imagen de fondo: */
background: blue url('fondoNegro.jpg');
background-clip: text;
color: transparent;
font-size: 10rem;
}
.element {
/* filter: blur(1rem); */
height: 90%;
width: 90%;

}
.element:hover {
filter: blur(1rem);
height: 90%;
width: 90%;

}
.selectcolor {
/* filter: blur(1rem); */
height: 50px; 
background-color: red; 
text-align: left;
align-content: left;


}
div {
width: calc(100% - 100px);
height: calc(100vh - 200px);
}

svg {
  stroke: var(--primary); /* Cambia el color del icono */
  width: 32px;
  height: 32px;
  
}

input:in-range {
border: solid 1px green;
}
input:out-of-range {
border: solid 1px red;
}

*:fullscreen {
background-color: #faa;
}

.cards2 {
display: grid;
grid-template-columns:
repeat(auto-fit, minmax(200px, 1fr));
grid-gap: 1rem;
}

.range-container{
  display:content;
  gap: 2;
  border: 2px solid red;
  max-width: 50%; 
  height: 50px; 
  background-color: rgb(244, 244, 103); 
}
.range-wrapper {
  display: contents;
  align-items: center;
  gap: 10px;
}

#rangeOutput {
  min-width: 40px;
  text-align: center;
  font-weight: bold;
  color: #333;
}
.comida{
  display:content;
  
}