/* styles.css - Creaciones Cid 2026 - Dorado Elegante, Negro Profundo y Beige Suave */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #FAF5F0 0%, #FDF8F2 100%);
    color: #111111;
    line-height: 1.7;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 100%);
    color: #D4AF37;
    padding: 4.5rem 1.5rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(15,15,15,0.5);
}

header::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(circle at 30% 20%, rgba(212,175,55,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin: 0;
    text-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

.logo-text .creaciones { color: #D4AF37; }
.logo-text .cid       { color: #E8C39E; }

.subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: #C9A96E;
    margin: 1rem 0 1.8rem;
    opacity: 0.92;
}

nav a {
    color: #C9A96E;
    text-decoration: none;
    margin: 0 2rem;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.35s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0; height: 2.5px;
    bottom: -8px; left: 0;
    background: #D4AF37;
    transition: width 0.45s ease;
}

nav a:hover::after { width: 100%; }
nav a:hover {
    color: #E8C39E;
    transform: translateY(-3px);
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    color: #D4AF37;
    text-align: center;
    font-size: 3.5rem;
    margin: 4.5rem 0 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px; height: 4px;
    background: linear-gradient(90deg, #C9A96E, #D4AF37);
    bottom: -15px; left: 50%; transform: translateX(-50%);
    border-radius: 2px;
}

.form-card {
    background: #FFFFFF;
    border-radius: 1.8rem;
    padding: 3.2rem;
    box-shadow: 0 18px 60px rgba(15,15,15,0.12);
    margin-bottom: 4.5rem;
    border: 1px solid rgba(212,175,55,0.15);
    transition: all 0.45s ease;
}

.form-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(15,15,15,0.18);
}

.form-group {
    margin-bottom: 2.4rem;
}

.form-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2F2F2F;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.3rem 1.6rem;
    border: 1px solid #D9C8A8;
    border-radius: 1.2rem;
    font-size: 1.1rem;
    background: #FFFCF5;
    transition: all 0.35s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 5px rgba(212,175,55,0.12);
    outline: none;
}

.btn {
    background: linear-gradient(135deg, #D4AF37 0%, #E8C39E 100%);
    color: #0F0F0F;
    padding: 1.3rem 2.8rem;
    border: none;
    border-radius: 1.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.45s ease;
    box-shadow: 0 8px 25px rgba(212,175,55,0.28);
}

.btn:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 15px 45px rgba(212,175,55,0.45);
}

.btn-danger {
    background: linear-gradient(135deg, #9B2D30 0%, #B33A40 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(155,45,48,0.3);
}

.info-box {
    background: #FFF8F0;
    border-radius: 1.4rem;
    padding: 2.2rem;
    text-align: center;
    margin: 3rem 0;
    border: 1px solid #E8C39E;
    font-size: 1.3rem;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.order-card {
    background: #FFFFFF;
    border-radius: 1.6rem;
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 40px rgba(15,15,15,0.1);
    border-left: 8px solid #D4AF37;
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.order-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 70px rgba(15,15,15,0.18);
}

.order-card .pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card .arrow {
    font-size: 2rem;
    color: #D4AF37;
    transition: transform 0.4s ease;
}

.order-card.expanded .arrow {
    transform: rotate(180deg);
}

.pedido-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s ease, opacity 0.5s ease;
    opacity: 0;
}

.pedido-details.expanded {
    max-height: 2500px;
    opacity: 1;
}

.status-tag {
    padding: 0.7rem 1.5rem;
    border-radius: 3rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin-left: 1.2rem;
}

.faltan-rojo     { background: #9B2D30; color: white; }
.completo-verde  { background: #4A7043; color: white; }
.pendiente-naranja { background: #C76A16; color: white; }

.test-button {
    background: linear-gradient(135deg, #9B2D30 0%, #B33A40 100%);
    color: white;
    padding: 1.6rem 4.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    width: fit-content;
    margin: 4rem auto;
    text-align: center;
    box-shadow: 0 12px 35px rgba(155,45,48,0.35);
    transition: all 0.45s ease;
}

.test-button:hover {
    transform: translateY(-7px) scale(1.05);
    box-shadow: 0 25px 60px rgba(155,45,48,0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .logo-text { font-size: 4.2rem; }
    .section-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    header { padding: 3.5rem 1.2rem 2.5rem; }
    .logo-text { font-size: 3.4rem; }
    .form-card, .order-card { padding: 2.2rem 1.8rem; }
    .test-button { padding: 1.3rem 3.2rem; font-size: 1.3rem; }
    nav a { margin: 0 1.2rem; font-size: 1.05rem; }
}
footer {
    background: #0F0F0F;
    color: #C9A96E;
    text-align: center;
    padding: 3rem 1.5rem;
    margin-top: 6rem;
    border-top: 1px solid #333333;
}

.footer-content p {
    margin: 0.6rem 0;
    font-size: 0.95rem;
}

.footer-links a {
    color: #D4AF37;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #E8C39E;
}
.logo-link {
    display: block;
    text-align: center;
    margin: 1.5rem auto 1.8rem;
    max-width: 450px;           /* ← Ajusta este valor según el tamaño real de tu imagen */
}

.logo-image {
    width: 100%;
    height: auto;
    max-height: 140px;          /* limita altura para que no rompa el header en móviles */
    display: block;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5));
}

@media (max-width: 768px) {
    .logo-link {
        max-width: 320px;
        margin: 1.2rem auto 1.5rem;
    }
}
.card-actions {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.btn-edit, .btn-delete, .btn-ship {
    padding: 0.7rem 1.4rem;
    border-radius: 0.6rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.btn-edit { background:#1976d2; color:white; }
.btn-delete { background:#c62828; color:white; }
.btn-ship { background:#8e24aa; color:white; }
.btn-edit:hover, .btn-delete:hover, .btn-ship:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.card-header, .card-summary {
    cursor: pointer;
}
.card-summary {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: #444;
}
.card-summary div {
    margin-bottom: 0.4rem;
}
.faltan { color:#c62828; font-weight:bold; }
.completo { color:#2e7d32; font-weight:bold; }