/*
Theme Name: Worldeli
Theme URI: https://tudominio.com/
Author: Yue
Description: Tema personalizado para Restaurant Worldeli
Version: 1.0.1
Text Domain: worldeli
*/


/* =====================================================
   VARIABLES GENERALES
===================================================== */

:root {
    --accent: #f59e0b;
    --bg: #ffffff;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #475569;

    font-family: 'Inter', system-ui, sans-serif;
}


/* =====================================================
   RESET BÁSICO
===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--bg);

    color: var(--text);

    font-family: 'Inter', system-ui, sans-serif;

    line-height: 1.5;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1100px;

    margin: 0 auto;

    padding: 15px;
}


/* =====================================================
   CABECERA / VÍDEO
===================================================== */

.header-video {
    position: relative;

    width: 100%;

    height: 100vh;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;
}


.header-bg-video {
    position: absolute;

    top: 50%;

    left: 50%;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transform: translate(-50%, -50%);

    z-index: 0;
}


/*
 * Capa ligeramente oscura sobre el vídeo
 * para mejorar la lectura del texto.
 */
.header-video::after {
    content: '';

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.15);

    z-index: 1;
}


.header-content {
    position: relative;

    z-index: 2;

    color: #ffffff;

    text-align: center;

    padding: 40px;
}


.header-content h1 {
    margin: 0 0 10px;

    font-size: 36px;
}


.header-content p {
    margin: 0;

    color: #ffffff;

    font-size: 18px;
}


/* =====================================================
   SLIDER
===================================================== */

.slider-container {
    position: relative;

    overflow: hidden;

    width: 100%;

    margin: 0 auto;
}


.slider {
    display: flex;

    transition: transform 0.5s linear;
}


.slide {
    flex: 0 0 auto;

    width: calc(33.333% - 10px);

    margin-right: 10px;
}


.slide img {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;
}


/* =====================================================
   FLECHAS DEL SLIDER
===================================================== */

.prev,
.next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 10;

    padding: 10px;

    border: none;

    background: rgba(255, 0, 0, 0.7);

    color: white;

    cursor: pointer;
}


.prev {
    left: 10px;
}


.next {
    right: 10px;
}


.prev:hover,
.next:hover {
    background: rgba(255, 0, 0, 0.9);
}


/* =====================================================
   PUNTOS DEL SLIDER
===================================================== */

.dots-container {
    text-align: center;

    margin-top: 10px;
}


.dot {
    display: inline-block;

    width: 10px;

    height: 10px;

    margin: 0 5px;

    background: rgba(0, 0, 0, 0.3);

    border-radius: 50%;

    cursor: pointer;
}


.dot.active {
    background: red;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    display: grid;

    grid-template-columns: 1fr 420px;

    gap: 28px;

    align-items: center;

    padding: 28px 0;
}


.hero-card {
    background: var(--card);

    padding: 28px;

    border-radius: 18px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}


.hero h1 {
    font-size: 36px;

    margin: 0 0 12px;
}


.hero p {
    color: var(--muted);

    margin: 0 0 20px;
}


/*
 * En el HTML original este estilo estaba inline.
 */
.hero-welcome {
    color: var(--accent) !important;

    font-weight: 800;

    margin: 0 0 8px !important;
}


.hero-right {
    height: 380px;

    overflow: hidden;

    border-radius: 18px;

    background-size: cover;

    background-position: center;
}


/* =====================================================
   BOTONES
===================================================== */

.btn {
    display: inline-block;

    padding: 12px 18px;

    border-radius: 12px;

    font-weight: 700;

    text-decoration: none;

    transition: background 0.2s;
}


.btn-primary {
    background: var(--accent);

    color: #0f172a;
}


.btn-primary:hover {
    background: #fbbf24;
}


.btn-outline {
    border: 2px solid var(--accent);

    color: var(--accent);
}


.btn-outline:hover {
    background: var(--accent);

    color: #0f172a;
}


/* =====================================================
   SECCIONES
===================================================== */

.section {
    padding: 40px 0;
}


.section h2 {
    margin-bottom: 16px;

    font-size: 24px;
}


/* =====================================================
   TARJETAS / PLATOS
===================================================== */

.cards {
    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(240px, 1fr)
    );

    gap: 18px;
}


.card {
    background: var(--card);

    padding: 16px;

    border-radius: 12px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}


.card-row {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;
}


.card-row h3 {
    margin: 0;
}


.card .price {
    color: var(--accent);

    font-weight: 800;
}


.card p {
    color: var(--muted);
}


/* =====================================================
   GALERÍA
===================================================== */

.gallery {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 8px;
}


.gallery img {
    width: 100%;

    height: 200px;

    object-fit: cover;

    border-radius: 8px;
}


/* =====================================================
   AMBIENTE INTERIOR
===================================================== */

.ambiente {
    position: relative;

    min-height: 420px;

    overflow: hidden;

    border-radius: 18px;

    background-size: cover;

    background-position: center;

    color: var(--text);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


.ambiente-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    background: linear-gradient(
        to bottom right,
        rgba(15, 23, 42, 0.7),
        rgba(15, 23, 42, 0.5)
    );
}


.ambiente-texto {
    max-width: 700px;

    text-align: center;

    color: #ffffff;
}


.ambiente-texto .tagline {
    margin-bottom: 8px;

    color: var(--accent);

    font-weight: 800;
}


.ambiente-texto h2 {
    margin-bottom: 12px;

    font-size: 28px;
}


.ambiente-texto p {
    color: #ffffff;

    font-size: 16px;
}


/* =====================================================
   GALERÍA DE IMÁGENES FLOTANTES
===================================================== */

.floating-gallery {
    position: relative;

    height: 360px;

    overflow: hidden;

    background: white;
}


.floating-container {
    position: absolute;

    inset: 0;
}


.float-img {
    position: absolute;

    width: 220px;

    height: 150px;

    object-fit: cover;

    border-radius: 14px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);

    animation: float 10s ease-in-out infinite alternate;
}


.img1 {
    top: 40px;

    left: 10%;

    animation-delay: 0s;
}


.img2 {
    top: 100px;

    left: 40%;

    animation-delay: 2s;
}


.img3 {
    top: 60px;

    right: 10%;

    animation-delay: 4s;
}


.img4 {
    bottom: 40px;

    left: 25%;

    animation-delay: 1s;
}


@keyframes float {

    from {
        transform: translateY(0) rotate(0deg);
    }

    to {
        transform: translateY(-20px) rotate(2deg);
    }

}


/* =====================================================
   TEXTO CENTRAL GALERÍA FLOTANTE
===================================================== */

.floating-overlay {
    position: relative;

    top: 50%;

    z-index: 2;

    transform: translateY(-50%);

    text-align: center;

    color: var(--text);
}


.floating-title {
    margin-bottom: 8px;

    color: white;

    font-size: 36px;

    font-weight: 800;
}


.floating-subtitle {
    color: white;

    font-size: 18px;
}


/*
 * Overlay para mejorar el contraste.
 */
.floating-gallery::after {
    content: '';

    position: absolute;

    inset: 0;

    z-index: 1;

    background-color: rgba(0, 0, 0, 0.1);
}


/* =====================================================
   CONTACTO
===================================================== */

.contact-link {
    color: var(--accent);

    text-decoration: none;
}


.contact-link:hover {
    text-decoration: underline;
}


.contact-address {
    margin-top: 10px;

    color: var(--muted);
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    width: 100%;

    margin-top: 40px;

    padding: 28px 0;

    box-sizing: border-box;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    background-color: #b22a2a;

    color: #ffffff;

    font-size: 14px;
}


.footer-inner {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

    max-width: 1100px;

    margin: 0 auto;

    padding: 0 15px;
}


.footer-info {
    color: white;

    font-size: 16px;
}


.footer-copyright {
    color: white;

    font-size: 16px;
}


/* =====================================================
   ANIMACIÓN TEXTO
===================================================== */

.slider-text-anim {
    opacity: 0;

    animation: fadeText 1s ease forwards;
}


@keyframes fadeText {

    from {
        opacity: 0;

        transform: translateY(20px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =====================================================
   RESPONSIVE - TABLET
===================================================== */

@media (max-width: 1024px) {

    .slide {
        width: calc(50% - 10px);
    }

}


@media (max-width: 980px) {

    .hero {
        grid-template-columns: 1fr;
    }


    .hero-right {
        height: 240px;
    }


    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =====================================================
   RESPONSIVE - MÓVIL
===================================================== */

@media (max-width: 768px) {

    .float-img {
        width: 160px;

        height: 110px;
    }


    .floating-title {
        font-size: 28px;
    }


    .floating-subtitle {
        font-size: 14px;
    }

}


@media (max-width: 600px) {

    .slide {
        width: 100%;

        margin-right: 0;
    }

}


@media (max-width: 520px) {

    .container {
        padding: 16px;
    }


    .header-content {
        padding: 20px;
    }


    .header-content h1 {
        font-size: 30px;
    }


    .gallery {
        grid-template-columns: 1fr;
    }


    .footer-inner {
        padding: 0 16px;
    }


    .card-row {
        gap: 10px;
    }

}