/* falta unificar estilos con style.css, recordar hacerlo antes del viernes, estupido carlos no lo inifico >:( */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}
:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #f472b6;
    --preview-primary: #4f46e5;
    --preview-text: #1f2937;
    --preview-background: #ffffff;
}
body {
    background: #f9fafb;
    color: var(--preview-text);
overflow-x: hidden;
max-width: 100%;
}
button {      
      touch-action: manipulation;

}
.hero {
    max-width: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(45, 212, 191, 0.1) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleFloat 3s ease-in-out infinite;
}
.hero p {
    font-size: 1.25rem;
    color: #666;
}
.floating-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}
.circle {
    position: absolute;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 50%;
    opacity: 0.1;
    animation: floatAround 20s infinite linear;
}
@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(100px, 50px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}
@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.customizer-section {
    padding: 4rem 2rem;
    margin: 0 auto;
}
.customizer-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.controls-panel {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.control-group {
    margin-bottom: 1.5rem;
}
.control-group h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}
.color-picker {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
    touch-action: manipulation;

}
.color-option:hover {
    transform: scale(1.1);
}
.color-option.active {
    border-color: var(--primary);
}
.preview-container {
    max-width: 100vw;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.device-preview {
    position: relative;
    padding: 20px;
    border: 10px solid #333;
    border-radius: 50px;
    margin: 2rem auto;
    max-width: 430px;
    max-height: 932px;
}
.menu-preview {
    max-width: 100%;
    margin: 0 auto;
    background: var(--preview-background);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.menu-header {
    background: var(--preview-background);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.logo-containeres {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--preview-primary);
    background: #f0f0f0;
    cursor: pointer;
    transition: transform 0.3s;
    touch-action: manipulation;

}
.logo-containeres:hover {
    transform: scale(1.05);
}
.logo-containeres img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.menu-title-card {
    background: white;
    padding: 1rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
}
.menu-title {
font-size: 2.5rem;
font-weight: bold;
background: var(--preview-primary);  
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-transform: uppercase;
letter-spacing: 2px;
}
.search-bar {
    margin: 1rem auto;
    max-width: 500px;
    padding: 0 1rem;
}
.search-bar input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
}
.category-header {
text-align: center;
margin: 2rem 0 1rem;
padding: 1rem;
background: var(--preview-primary); 
color: white;
border-radius: 10px;
margin: 1.5rem 1rem;
position: relative;
z-index: 1;
overflow: hidden;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
}
.menu-items {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
border: 1px solid rgba(0,0,0,0.1);
}
.menu-items:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.item-image {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    position: relative;
}
.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.item-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff4500, #ff6b6b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}
.item-content {
    padding: 1rem;
}
.item-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--preview-text);
}
.item-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}
.item-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--preview-primary);
    color: white;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}
.item-button:hover {
    background: var(--secondary);
}
.color-card {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    cursor: pointer;
    position: relative;
}
.color-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.color-label {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: var(--preview-text);
    pointer-events: none;
}
.color-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd;
    pointer-events: none;
}
.color-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    transition: background 0.3s;
    cursor: pointer;
}
.slider:hover {
    background: var(--primary);
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}
.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}
.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}
.gradient-history {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.gradient-history .color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
}
.gradient-history .color-option:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}
@media (max-width: 768px) {
.hero {
    padding: 4rem 1rem;
}

.hero h1 {
    line-height: 1.2;
    padding: 0 1rem;
    
    
}

.hero p {
    padding: 0 1rem;
}

.customizer-section {
    padding: 2rem 1rem;
}

.controls-panel {
    padding: 1rem;
}

.customizer-grid {
    gap: 1rem;
}

.menu-preview {
    margin: 0 auto;
    max-width: 100%;
}

.logo-container {
    width: 120px;
    height: 120px;
}

.menu-title-card {
    padding: 0.5rem 1rem;
    transform: translateY(-10px);
}

.category-header h3 {
    padding: 0.5rem;
}

.item-button {
    padding: 0.75rem;
}

.color-picker {
    flex-wrap: wrap;
    justify-content: center;
}

.color-card {
    width: 100%;
    margin-bottom: 1rem;
}

input[type="text"], 
input[type="search"], 
select {
    font-size: 1rem;
}

.device-preview {
    border-width: 8px;
    padding: 10px;
    margin: 1rem auto;
    max-width: 100%;
}

.menu-grid {
    gap: 0.75rem;
    padding: 0.75rem;
}

.item-price {
    padding: 0.5rem 1rem;
}
}
@media (max-width: 480px) {
.hero h1 {
    padding: 0 0.5rem;
}

.menu-title {
    font-size: 2rem;
}

.controls-panel .control-group h3 {
    font-size: 1.25rem;
}

.color-option {
    width: 30px;
    height: 30px;
}

.device-preview {
    max-width: 100%;
}

.search-bar input {
    padding: 0.75rem;
}
}
@media (max-width: 768px) {
.customizer-grid {
    grid-template-columns: 1fr;
}

.preview-container {
    order: -1;
    margin-bottom: 2rem;
    .device-notch {
    width: 120px;
    height: 20px;
}

.status-bar {
    font-size: 10px;
    padding: 0 10px;
}
}

.service-card {
        margin: 1rem 0;
    }
    .editor-title-card {
padding: 1.5rem;
margin-bottom: 1.5rem;
}
.editor-title-card h2 {
font-size: 2rem;
}
.editor-title-card p {
font-size: 1rem;
}
}

.bg-color-card .color-preview {
border: 2px solid rgba(0,0,0,0.1);
}
#bgColorPreview {
transition: background-color 0.3s ease;
border: 2px solid rgba(0,0,0,0.1);
}
.device-notch {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 150px;
height: 25px;
background: #333;
border-radius: 0 0 15px 15px;
z-index: 2;
}
.status-bar {
position: absolute;
top: 10px;
left: 15px;
right: 0;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 15px;
color: rgb(0, 0, 0);
font-size: 12px;
font-family: system-ui, -apple-system, sans-serif;
z-index: 1;
}
.status-bar .right-items {
display: flex;
align-items: center;
gap: 5px;
}
.status-bar .battery {
display: flex;
align-items: center;
gap: 3px;
}
.services {
    padding: 5rem 0;
}
.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
}
.container {
    max-width: 100vw;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}
.editor-title-card {
grid-column: 1 / -1;
background: linear-gradient(135deg, var(--primary), var(--secondary));
padding: 2rem;
border-radius: 20px;
margin-bottom: 2rem;
text-align: center;
box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
border: 2px solid rgba(255,255,255,0.1);
z-index: 9999;
}
.editor-title-card h2 {
font-size: 2.5rem;
color: white;
margin-bottom: 1rem;
text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.editor-title-card p {
color: rgba(255,255,255,0.9);
font-size: 1.1rem;
max-width: 600px;
margin: 0 auto;
}
.floating-back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background:  linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 999999;
}
.floating-back-button:hover {
    background:  linear-gradient(45deg, var(--accent), var(--primary));

    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
.dish-editor {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.dish-control h4 {
    color: var(--preview-text);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.dish-control input[type="text"],
.dish-control textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'Segoe UI', sans-serif;
}
.dish-control textarea {
    height: 80px;
    resize: vertical;
}
#dishSelector {
    width: 100%;
    margin-bottom: 1.5rem;
    background: var(--preview-primary);
    color: white;
    border: none;
    cursor: pointer;
}
.image-upload-preview {
    cursor: pointer;
    border: 2px dashed #ddd;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.image-upload-preview:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}
.preview-container {
    width: 100%;
    height:200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
#dishImagePreview {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.dish-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.toggle-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}
.toggle-button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.dish-editor {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.dish-editor.active {
    max-height: 1000px;
    opacity: 1;
    padding: 1.5rem;
    margin-top: 0.5rem;
}