* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8d6 50%, #ffd7c4 100%);
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px;
}

header {
    background: linear-gradient(135deg, #d4a574 0%, #c49060 100%);
    color: white;
    padding: 25px 0;
    box-shadow: 0 4px 20px rgba(196, 144, 96, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

header h1 {
    text-align: center;
    font-size: 2.8em;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInDown 0.8s ease;
    color: #fff;
}

#carrito-icono {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 1.2em;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    transition: background 0.3s ease;
    font-weight: 600;
}

#carrito-icono:hover {
    background: rgba(0, 0, 0, 0.2);
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

nav ul li a:hover {
    background: white;
    color: #d4a574;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.5);
}

main {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

#inicio, #productos, #contacto, #login, #registro, #carrito {
    display: none;
    animation: fadeIn 1s ease;
}

#inicio.active {
    display: block;
}

.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.hero-section h2 {
    font-size: 3em;
    color: #c49060;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.imagen-principal {
    max-width: 800px;
    height: 500px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(196, 144, 96, 0.3);
    background: linear-gradient(135deg, #f5dcc8 0%, #e6cdb4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #d4a574;
}

.imagen-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imagen-principal-placeholder {
    color: #999;
    font-size: 1.2em;
    padding: 40px;
    text-align: center;
}

.quienes-somos {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(196, 144, 96, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

.quienes-somos h3 {
    font-size: 2.5em;
    color: #d4a574;
    margin-bottom: 25px;
    text-align: center;
}

.quienes-somos p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #666;
    text-align: justify;
    margin-bottom: 20px;
}

#productos.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-content: center;
}

.productos-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
}

.productos-header h2 {
    font-size: 2.5em;
    color: #d4a574;
    margin-bottom: 15px;
}

.productos-header p {
    font-size: 1.2em;
    color: #888;
}

.postre {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(196, 144, 96, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #f5dcc8;
}

.postre::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.1), transparent);
    transition: left 0.5s ease;
}

.postre:hover::before {
    left: 100%;
}

.postre:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 144, 96, 0.3);
    border-color: #d4a574;
}

.imagen-container {
    background: linear-gradient(135deg, #f5dcc8 0%, #e6cdb4 100%);
    height: 220px;
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px dashed #d4a574;
}

.imagen-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.imagen-placeholder {
    color: #999;
    font-size: 0.9em;
    text-align: center;
    padding: 20px;
}

.postre:hover .imagen-container {
    transform: scale(1.05);
}

.postre h2 {
    font-size: 1.6em;
    color: #c49060;
    margin-bottom: 12px;
    font-weight: 600;
}

.postre p {
    color: #777;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.precio {
    font-size: 1.8em;
    color: #d4a574;
    font-weight: bold;
    margin: 15px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

button {
    background: linear-gradient(135deg, #d4a574 0%, #c49060 100%);
    border: none;
    padding: 14px 30px;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(196, 144, 96, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 144, 96, 0.5);
    background: linear-gradient(135deg, #c49060 0%, #b37f4d 100%);
}

button:active {
    transform: translateY(0);
}

#contacto.active {
    display: block;
}

.contacto-container {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(196, 144, 96, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.contacto-container h2 {
    font-size: 2.5em;
    color: #d4a574;
    margin-bottom: 30px;
    text-align: center;
}

.contacto-info {
    font-size: 1.2em;
    line-height: 2;
    color: #666;
}

.contacto-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contacto-info strong {
    color: #c49060;
    min-width: 120px;
}

.formulario-seccion {
    padding: 60px 20px;
    text-align: center;
}

.formulario-seccion.active {
    display: block;
}

.formulario-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(196, 144, 96, 0.2);
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid #f5dcc8;
}

.formulario-container h2 {
    font-size: 2em;
    color: #d4a574;
    margin-bottom: 30px;
}

.formulario-container label {
    display: block;
    text-align: left;
    margin: 15px 0 5px;
    color: #6d5637;
    font-weight: 600;
}

.formulario-container input[type="email"],
.formulario-container input[type="password"],
.formulario-container input[type="text"],
.formulario-container input[type="tel"] { /* Se agregó 'tel' aquí */
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.formulario-container input:focus {
    border-color: #d4a574;
    outline: none;
    box-shadow: 0 0 5px rgba(212, 165, 116, 0.5);
}

.formulario-container button[type="submit"] {
    margin-top: 15px;
}

.enlace-alternativo {
    margin-top: 25px;
    font-size: 1em;
    color: #888;
}

.enlace-alternativo a {
    color: #c49060;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.enlace-alternativo a:hover {
    color: #d4a574;
    text-decoration: underline;
}

.carrito-detalle {
    max-width: 600px;
}

#items-carrito {
    text-align: left;
    margin-bottom: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.item-carrito {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #f5dcc8;
    color: #6d5637;
}

.item-carrito span {
    font-weight: 600;
}

.resumen-carrito {
    text-align: right;
    font-size: 1.4em;
    font-weight: bold;
    color: #c49060;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 2px solid #d4a574;
}

.carrito-vacio {
    text-align: center;
    color: #999;
    padding: 20px;
}

footer {
    background: linear-gradient(135deg, #8b6f47 0%, #6d5637 100%);
    color: white;
    text-align: center;
    padding: 25px 0;
    position: absolute;
    width: 100%;
    bottom: 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

footer p {
    font-size: 0.95em;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    #carrito-icono {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
    }
    header h1 {
        font-size: 2em;
    }
    nav ul {
        gap: 8px;
    }
    nav ul li a {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .hero-section h2 {
        font-size: 2em;
    }
    .quienes-somos {
        padding: 30px 20px;
    }
    .imagen-principal {
        height: 300px;
    }
    #productos {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contacto-container {
        padding: 30px 20px;
    }
}