:root {
    --primary: #d63384;      /* Rosa fuerte */
    --primary-hover: #be185d;
    --bg-pink: #fff0f5;      /* Fondo suave */
    --glass: rgba(255, 255, 255, 0.95);
    --text: #4a4a4a;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray: #6b7280;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-pink);
    color: var(--text);
    margin: 0; padding-bottom: 50px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
a { text-decoration: none; }

/* --- SECCIÓN HERO (PORTADA) --- */
.hero-wrapper {
    position: relative; width: 100%; height: 85vh; min-height: 500px;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('fotofondo.jpeg');
    background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: white; border-radius: 0 0 50px 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); margin-bottom: 60px; overflow: hidden;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-content { animation: fadeInUp 1s ease-out; padding: 20px; max-width: 800px; }
.hero-title { font-size: 4.5rem; margin: 0; font-weight: 800; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.5rem; margin: 20px 0 40px 0; font-weight: 300; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }
.btn-hero {
    background: #6b7280; color: var(--primary); padding: 15px 40px; font-size: 1.2rem;
    border-radius: 50px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: all 0.3s; display: inline-block;
}
.top-nav { position: absolute; top: 20px; right: 20px; z-index: 10; }
.btn-login-glass {
    background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px); color: white;
    border: 1px solid rgba(255,255,255,0.4); padding: 8px 20px; border-radius: 30px;
    font-size: 0.9rem; transition: 0.3s;
}

/* --- GRID Y TARJETAS --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: var(--glass); border-radius: 20px; padding: 0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.8);
    overflow: hidden; transition: transform 0.3s; display: flex; flex-direction: column;
}
.card-img-container { width: 100%; height: 250px; background: #f3f3f3; }
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { margin: 0 0 10px 0; color: var(--primary); }
.card-text { color: #666; flex-grow: 1; margin-bottom: 20px; }

/* --- BOTONES SOCIALES ESTÉTICOS --- */
.social-buttons-container {
    display: flex; gap: 10px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee;
}
.btn-social {
    flex: 1; display: inline-flex; justify-content: center; align-items: center;
    padding: 10px 15px; border-radius: 50px; color: white !important; font-weight: 600;
    text-decoration: none; font-size: 0.9rem; border: none; cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-social i { margin-right: 6px; font-size: 1.1rem; }

/* WhatsApp Style */
.btn-what { background: #25D366; }
.btn-what:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4); background: #20bd5a; }

/* Instagram Style */
.btn-insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.btn-insta:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(214, 36, 159, 0.4); filter: brightness(1.1); }

/* --- ADMIN STYLES --- */
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-actions { display: flex; gap: 10px; align-items: center; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.card-admin { background: var(--glass); border-radius: 20px; padding: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 20px; }

/* --- FORMULARIOS --- */
.form-group { margin-bottom: 20px; }
input[type="text"], textarea, input[type="email"], input[type="password"], input[type="date"] {
    width: 100%; padding: 12px; border: 2px solid #e5e7eb; border-radius: 12px;
    background: #f9fafb; font-size: 1rem; box-sizing: border-box; transition: all 0.3s; font-family: inherit;
}
input:focus, textarea:focus { background: white; border-color: var(--primary); outline: none; }
.file-upload-wrapper {
    width: 100%; height: 120px; border: 2px dashed #cbd5e1; border-radius: 15px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; background: #f8fafc; color: #64748b; transition: all 0.3s;
}

/* --- BOTONES GENERALES --- */
.btn { padding: 10px 20px; border-radius: 50px; border: none; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: white; }
.btn-primary { background: var(--primary); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); padding: 8px 12px; font-size: 0.9rem; }
.btn-warning { background: var(--warning); padding: 8px 12px; font-size: 0.9rem; }
.btn-gray { background: var(--gray); padding: 8px 12px; font-size: 0.9rem; }
.cake-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.cake-item img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; margin-right: 10px; }

/* --- MEDIA QUERIES (CELULARES) --- */
@media (max-width: 768px) {
    .container { padding: 15px; width: 90%; }
    .hero-wrapper { height: auto; min-height: 60vh; background-attachment: scroll; border-radius: 0 0 30px 30px; }
    .hero-title { font-size: 2.8rem; line-height: 1.1; }
    .top-nav { position: relative; top: 0; right: 0; justify-content: center; margin-bottom: 20px; display: flex; gap: 10px; }
    .btn-login-glass { background: rgba(0,0,0,0.3); font-size: 0.8rem; padding: 8px 15px; }
    .login-container { width: 100% !important; padding: 20px !important; }
    .admin-header { flex-direction: column; gap: 15px; text-align: center; }
    .admin-actions { flex-direction: column; width: 100%; }
    .admin-actions .btn { width: 100%; }
    .admin-grid { grid-template-columns: 1fr; }
    .cake-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cake-item > div:first-child, .cake-item > div:last-child { width: 100%; display: flex; gap: 10px; }
    .cake-item .btn { flex: 1; justify-content: center; }
    .social-buttons-container { flex-direction: column; } /* Botones sociales apilados en pantallas muy chicas */
}