@font-face {
    font-family: 'Tsukimi Rounded';
    src: url('../resources/fonts/OpenSans-Regular.ttf') format('opentype');
}

body {
    margin: 0;
    font-family: "Tsukimi Rounded";
}

/*Partes comunes*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    /* alto para que esté encima */
    background-color: white;
    padding: 1rem 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #eee;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    position: relative;      /* referencia para la imagen absoluta */
    width: auto;            /* tamaño fijo del contenedor */
    height: 40px;            /* alto fijo igual que antes */
    overflow: visible;       /* que se vea lo que sobresalga */
    padding-left: 10px;
}

.logo img {
    position: absolute;      /* sacamos la imagen del flujo */
    top: 50%;                /* centrado vertical */
    left: 50%;               /* centrado horizontal */
    height: 50px;            /* más grande que el contenedor */
    width: auto;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: translate(-50%, -50%) scale(1.2); /* crecer al hacer hover */
}

.search-form {
    flex: 1;
    max-width: 800px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid #ccc;
    font-family: "Tsukimi Rounded";
}

.user-area {
    display: flex;
    gap: 1rem;
}

.login-btn {
    background-color: #ff6b2d;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-family: "Tsukimi Rounded";
}

.cuenta-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    font-family: "Tsukimi Rounded";
    transition: 0.3s;
}

.cuenta-btn:hover {
    color: #ff6b2d;
}

.footer {
    background-color: #0e1523;
    color: #ccc;
    font-family: "Tsukimi Rounded";
    padding: 40px 30px;
}

.footer-top {
    font-family: "Tsukimi Rounded";
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-logo-section {
    max-width: 250px;
}

.footer-logo {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
}

.footer-logo-section p {
    font-family: "Tsukimi Rounded";
    font-size: 15px;
    line-height: 1.6;
    color: #ccc;
}

.footer-social {
    font-family: "Tsukimi Rounded";
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-social i {
    font-family: "Tsukimi Rounded";
    font-size: 18px;
    background: #1c2431;
    padding: 10px;
    border-radius: 50%;
    color: #ccc;
    transition: background 0.3s;
}

.footer-social i:hover {
    background: #2c3e50;
}

.footer-section {
    min-width: 150px;
}

.footer-section h3 {
    font-family: "Tsukimi Rounded";
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
}

.footer-section a {
    font-family: "Tsukimi Rounded";
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-divider {
    border: none;
    border-top: 1px solid #222c3c;
    margin: 30px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.footer-legal a {
    font-family: "Tsukimi Rounded";
    color: #ccc;
    text-decoration: none;
    margin-right: 10px;
}

.footer-legal a:hover {
    color: #fff;
}

.legal-links {
    font-family: "Tsukimi Rounded";
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-payments {
    display: flex;
    gap: 15px;
    font-size: 24px;
    color: #ccc;
}

/*Fin de las partes comunes*/

.nav {
    margin-top: 90px;
    margin-bottom: 10px;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    position: relative;
    border-bottom: 3px solid transparent;
    /* espacio reservado */
    padding-bottom: 3px;
    transition: border-color 0.3s;
}

nav a:hover {
    color: #0e1523;
    border-bottom: 3px solid #c0c0c2;
    padding-bottom: 3px;
    /* separa el texto de la línea */
}

/* Sección Hero */
.hero {
    position: relative;
    padding: 4rem 2rem;
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    /* evita que cosas se desborden */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 1rem;
    margin: 0 auto;
    /* centra horizontalmente */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.explorar-btn {
    background-color: #ff6b2d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.crear-cuenta-btn {
    background: white;
    color: #333;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* Imagen de fondo */
.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Capa oscura encima de la imagen */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* Categorías */
.categorias-titulo {
    margin-left: 10px;
    font-family: "Tsukimi Rounded";
    font-size: 2rem;
    font-weight: 800;
    color: #1c1c1c;
    margin: 2rem 0 1rem 0;
    padding-left: 20px;
}

.categorias-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0 20px 40px 20px;
}

.categoria-card {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.categoria-card:hover {
    transform: scale(1.05);
}

.categoria-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categoria-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.recetas-grid {
    margin-top: 73px;
    margin-left: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem;
    font-family: san;
    max-width: 1400px;
}

.receta-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s;
}

.receta-card:hover {
    transform: translateY(-5px);
}

.receta-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.receta-info {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-grow: 1;
}

.receta-titulo {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    color: #333;
    font-family: "Tsukimi Rounded";
}

.receta-tiempo,
.receta-personas {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-family: "Tsukimi Rounded";
}