* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Playfair Display', Georgia, serif;
}

body {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #e6e6e6;
    min-height: 100vh;
}

:root {
    --gold-light: #f7e05e;
    --gold: #d4af37;
    --gold-dark: #aa8c2e;
    --amber: #f0b27a;
    --dark-bg: #0a0f1f;
    --shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ========== NAVBAR - AZUL ZAFIRO ========== */
.navbar {
    background: rgba(13, 43, 102, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 3rem;
    color: var(--gold);
    letter-spacing: 4px;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.logo-text p {
    font-size: 1rem;
    font-style: italic;
    color: #c9c9c9;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #e6e6e6;
    font-weight: 500;
    transition: 0.3s;
    cursor: pointer;
    font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

.cart-icon {
    font-size: 1.3rem;
    position: relative;
    cursor: pointer;
    color: #e6e6e6;
}

.cart-count {
    background: var(--gold);
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    position: absolute;
    top: -10px;
    right: -15px;
    color: #1a1a2e;
    font-weight: bold;
}

/* ========== PÁGINAS ========== */
.page {
    display: none;
    padding: 2rem 5%;
    animation: fade 0.3s ease;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    margin: 1rem 5%;
}

.active-page {
    display: block;
}

@keyframes fade {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url('images/esmeralda.png') center/cover;
    height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    color: white;
    border-radius: 30px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    padding: 5rem 2rem 3rem 2rem;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h2 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 15px black;
    color: var(--gold);
}

.hero-content p {
    font-size: 1.5rem;
    font-style: italic;
    text-shadow: 1px 1px 5px black;
    color: white;
}

.btn-gold {
    background: var(--gold);
    border: none;
    padding: 0.8rem 2rem;
    margin-top: 1rem;
    font-weight: bold;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
    color: #1a1a2e;
    font-size: 1rem;
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: white;
    transform: scale(1.05);
}

.hero .btn-gold {
    margin-bottom: 2rem;
}

#home h2 {
    color: #1e3c72;
    border-bottom: 2px solid #b8860b;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* ========== CARRITO ========== */
#cart-items {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.cart-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: bold;
    color: var(--gold);
}

.cart-item-price {
    color: var(--gold-light);
}

.cart-item-remove {
    background: rgba(212, 175, 55, 0.2);
    border: none;
    color: #ff6666;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    transition: 0.3s;
}

.cart-item-remove:hover {
    background: #ff6666;
    color: white;
}

#cart-total {
    text-align: right;
    margin-top: 1rem;
}

#cart-total h3 {
    background: linear-gradient(135deg, #1e3c72, #0a2a4a);
    color: white !important;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.3rem;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--gold);
}

/* ========== PÁGINAS LEGALES ========== */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h2 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.legal-page h3 {
    color: #1e3c72;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.legal-page p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

.legal-page ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
    color: #333;
}

/* ========== SECCIÓN SOBRE NOSOTROS ========== */
.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h2 {
    font-size: 2.5rem;
    color: var(--gold);
}

.about-subtitle {
    font-size: 1.2rem;
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
}

.about-section {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.about-section.reverse {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--gold);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #333;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.4s;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* ========== MISIÓN Y VISIÓN ========== */
.mision-vision-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.mision-card, .vision-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: transform 0.3s;
}

.mision-card:hover, .vision-card:hover {
    transform: translateY(-5px);
}

.mision-card i, .vision-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.mision-card h3, .vision-card h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mision-card p, .vision-card p {
    color: #333;
    line-height: 1.6;
}

/* ========== SERVICIOS CON BOTONES ALINEADOS ========== */
.servicios-section {
    margin: 4rem 0;
}

.servicios-section h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.servicio-card {
    background: white;
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--gold);
}

.servicio-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.servicio-card h4 {
    color: #2c5e2e;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.servicio-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
    flex: 1;
}

.servicio-precio {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1a1a2e;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    align-self: center;
}

.cotizar-servicio-btn {
    margin-top: auto;
    width: 100%;
    background: #2c5e2e;
    color: white;
    border: none;
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.cotizar-servicio-btn:hover {
    background: #1e4020;
    transform: scale(1.02);
}

/* ========== NUESTRO EQUIPO ========== */
.equipo-section {
    margin: 4rem 0;
}

.equipo-section h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.equipo-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.8;
    color: #1e3c72;
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.equipo-card {
    background: white;
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.equipo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: var(--gold);
}

.equipo-card i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.equipo-card h4 {
    color: #2c5e2e;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.equipo-card .cargo {
    color: var(--gold);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.equipo-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #1e3c72;
}

/* ========== TESTIMONIOS ========== */
.testimonios-section {
    margin: 4rem 0;
}

.testimonios-section h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonio-card {
    background: white;
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: var(--gold);
}

.testimonio-card i.fa-quote-left {
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.testimonio-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #1e3c72;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonio-card h4 {
    color: #2c5e2e;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.estrellas {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 2px;
}

/* ========== ARTESANÍA CON PROPÓSITO ========== */
.artesania-section {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 30px;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.artesania-section h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.artesania-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.8;
    color: #333;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.valor-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: var(--gold);
}

.valor-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.valor-card h4 {
    color: #2c5e2e;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.valor-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.artesania-outro {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    font-style: italic;
    color: #333;
}

/* ========== TABLA DE VALORES ========== */
.valores-tabla {
    margin: 3rem 0;
}

.valores-tabla h3 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

.tabla-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.tabla-item {
    display: flex;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: background 0.3s;
}

.tabla-item:last-child {
    border-bottom: none;
}

.tabla-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.valor-nombre {
    width: 200px;
    font-weight: bold;
    color: var(--gold);
}

.valor-desc {
    flex: 1;
    color: #555;
}

/* ========== INVITACIÓN FINAL ========== */
.about-invitation {
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border-radius: 30px;
    padding: 3rem;
    margin-top: 3rem;
}

.about-invitation i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.about-invitation p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    color: #333;
}

.invitation-slogan {
    font-size: 1.3rem;
    color: var(--gold-light);
    margin: 1.5rem 0;
}

/* ========== PRODUCTOS ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.product-card:hover { 
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-color: var(--gold);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.product-info {
    padding: 1.2rem;
    color: #333;
}

.product-info h3 {
    color: #2c5e2e;
    margin-bottom: 0.5rem;
}

.price {
    color: #b8860b;
    font-weight: bold;
    font-size: 1.3rem;
}

.btn-add {
    background: rgba(44, 94, 46, 0.8);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    margin-top: 0.8rem;
    cursor: pointer;
    color: white;
    transition: 0.3s;
}

.btn-add:hover {
    background: #2c5e2e;
    transform: scale(1.02);
}

.fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(100, 100, 100, 0.85);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.fav-btn:hover {
    transform: scale(1.1);
    background: rgba(80, 80, 80, 0.95);
}

.fav-btn i {
    font-size: 1.2rem;
    transition: all 0.2s;
}

.fav-btn i.fa-regular,
.fav-btn i.fa-heart-o {
    color: white;
}

.fav-btn i.fa-solid,
.fav-btn i.fa-heart {
    color: #ff4d4d;
}

/* ========== FILTROS ========== */
.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

select, input {
    padding: 0.7rem 1rem;
    border-radius: 30px;
    border: 1px solid var(--gold);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

select option {
    background: white;
    color: #333;
}

input::placeholder {
    color: #aaa;
}

/* ========== FORMULARIOS ========== */
#contact-form, #checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 1rem 0;
}

#contact-form input, #contact-form textarea,
#checkout-form input {
    padding: 0.8rem;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: white;
    color: #333;
}

#contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* ========== TOAST NOTIFICACIONES ========== */
#toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gold);
    color: #1a1a2e;
    padding: 12px 20px;
    border-radius: 40px;
    z-index: 2000;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-weight: bold;
}

/* ========== PANEL ADMIN ========== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    padding: 1rem;
    border-radius: 20px;
    text-align: center;
    color: #333;
}

.stat-card h4 {
    color: var(--gold);
}

.chart-container {
    background: white;
    padding: 1rem;
    border-radius: 20px;
    margin: 1rem 0;
}

canvas { 
    max-height: 300px; 
    width: 100% !important; 
}

/* ========== FOOTER - AZUL ZAFIRO ========== */
footer {
    background: linear-gradient(135deg, #08204d 0%, #0c2e6b 50%, #061838 100%);
    color: #e6e6e6;
    padding: 3rem 5% 1rem;
    margin-top: 3rem;
    position: relative;
    border-top: 2px solid var(--gold);
}

footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), transparent);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-logo-text h3 {
    font-size: 1.8rem;
    color: var(--gold);
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer-logo-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #b0b0b0;
    margin: 5px 0 0 0;
}

.footer-col h4 {
    color: var(--gold-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b0b0b0;
    margin-bottom: 0.8rem;
}

.contact-info li i {
    width: 25px;
    color: var(--gold);
    font-size: 1.1rem;
}

/* ========== REDES SOCIALES - UNA SOLA LÍNEA CON X ========== */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-icons a i {
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icons a:hover i {
    transform: scale(1.1);
}

/* Tooltips para redes sociales */
.social-icons a::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: var(--gold);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.social-icons a:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -25px;
}

/* Colores originales de cada red social - ACTUALIZADO: X */
.social-icons a .fa-facebook-f { color: #1877f2; }
.social-icons a:hover .fa-facebook-f { color: white; background: #1877f2; border-radius: 50%; padding: 8px; }

.social-icons a .fa-instagram { color: #e4405f; }
.social-icons a:hover .fa-instagram { color: white; background: linear-gradient(45deg, #f09433, #d62976, #962fbf); border-radius: 50%; padding: 8px; }

.social-icons a .fa-x-twitter { color: #ffffff; }
.social-icons a:hover .fa-x-twitter { color: white; background: #000000; border-radius: 50%; padding: 8px; }

.social-icons a .fa-pinterest { color: #e60023; }
.social-icons a:hover .fa-pinterest { color: white; background: #e60023; border-radius: 50%; padding: 8px; }

.social-icons a .fa-youtube { color: #ff0000; }
.social-icons a:hover .fa-youtube { color: white; background: #ff0000; border-radius: 50%; padding: 8px; }

.social-icons a .fa-tiktok { color: #ffffff; }
.social-icons a:hover .fa-tiktok { color: white; background: linear-gradient(45deg, #00f2ea, #ff0050); border-radius: 50%; padding: 8px; }

.social-icons a .fa-whatsapp { color: #25D366; }
.social-icons a:hover .fa-whatsapp { color: white; background: #25D366; border-radius: 50%; padding: 8px; }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: #888;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .navbar { 
        flex-direction: column; 
        gap: 15px; 
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .logo-text {
        text-align: center;
    }
    
    .logo-img {
        height: 70px;
    }
    
    .logo-text h1 {
        font-size: 2.5rem;
    }
    
    .logo-text p {
        font-size: 0.85rem;
    }
    
    .hero {
        height: 60vh;
        padding: 3rem 1.5rem 2rem 1.5rem;
    }
    
    .hero-content h2 { 
        font-size: 2rem; 
    }
    
    .hero-content p { 
        font-size: 1rem; 
    }
    
    #home h2 {
        font-size: 1.4rem;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        grid-column: span 2;
    }
    
    .footer-logo-img {
        height: 65px;
    }
    
    .footer-logo-text {
        text-align: center;
    }
    
    .footer-logo-text h3 {
        font-size: 1.5rem;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-col {
        text-align: center;
    }
    
    .contact-info li {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .page {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .fav-btn {
        width: 32px;
        height: 32px;
    }
    
    .fav-btn i {
        font-size: 1rem;
    }
    
    .about-image img {
        height: 280px;
    }
    
    .mision-card, .vision-card {
        padding: 1.5rem;
    }
    
    .servicio-card {
        padding: 1.2rem;
    }
    
    .servicio-card i {
        font-size: 2rem;
    }
    
    .social-icons a::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-logo {
        grid-column: span 1;
    }
    
    .footer-logo-img {
        height: 55px;
    }
    
    .footer-logo-text h3 {
        font-size: 1.3rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-img {
        height: 55px;
    }
    
    .logo-text h1 {
        font-size: 2rem;
    }
    
    .hero {
        height: 55vh;
        padding: 2rem 1rem 1.5rem 1rem;
    }
    
    #home h2 {
        font-size: 1.2rem;
    }
    
    .tabla-item {
        flex-direction: column;
    }
    
    .valor-nombre {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* ========== PÁGINA DE INICIO ========== */
#home {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    min-height: calc(100vh - 70px);
}

#home .hero-content h2 {
    color: #ffd966;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

#home .hero-content p {
    color: white;
}

/* ========== TÍTULOS ESPECÍFICOS ========== */
#catalog h2,
#contact h2,
#account h2 {
    color: #1e3c72;
}

#account div strong,
#account > div {
    color: #1e3c72;
    font-size: 1rem;
    margin-bottom: 1rem;
}

#account h3 {
    color: #1e3c72;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#my-orders div,
#favorites-list .product-info {
    color: #333;
}

#contact p {
    color: #1e3c72;
    font-size: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#contact p i {
    color: var(--gold);
    width: 25px;
}

#my-orders div {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.8rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    color: #1e3c72;
    border-left: 3px solid var(--gold);
}

#product-detail h3 {
    color: #e74c3c;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid #e74c3c;
    padding-left: 1rem;
}

/* ========== PANEL ADMINISTRATIVO - TEXTOS AZULES ========== */

/* Títulos principales del admin */
#admin h2, #admin h3 {
    color: #1e3c72 !important;
}

/* Tarjetas de estadísticas */
.admin-stats .stat-card {
    background: white;
    padding: 1rem;
    border-radius: 20px;
    text-align: center;
    color: #1e3c72 !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.admin-stats .stat-card h4 {
    color: var(--gold) !important;
}

.admin-stats .stat-card p {
    color: #1e3c72 !important;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Productos más vistos, más agregados al carrito, búsquedas populares */
#topViewed div, #topCart div, #topSearches div {
    color: #1e3c72 !important;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--gold);
}

/* Pedidos recientes */
#recentOrders div {
    color: #1e3c72 !important;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--gold);
}

/* Etiqueta del filtro de período */
#admin label {
    color: #1e3c72 !important;
    font-weight: bold;
}

/* Select del período */
#periodFilter {
    background: white;
    color: #1e3c72;
    border: 1px solid var(--gold);
    padding: 0.5rem;
    border-radius: 8px;
}

/* Gráficos - títulos y etiquetas */
.chart-container {
    background: white;
    padding: 1rem;
    border-radius: 20px;
    margin: 1rem 0;
}

/* Mejorar visibilidad de los gráficos */
canvas {
    max-height: 300px;
    width: 100% !important;
}
/* ... todo tu CSS existente ... */

/* ========== MEJORAS EN EL CARRITO ========== */

/* Contenedor principal del carrito */
#cart-items {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Cada producto en el carrito */
.cart-item {
    background: white;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--gold);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cart-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Información del producto */
.cart-item-info {
    flex: 2;
}

/* Nombre del producto */
.cart-item-title {
    font-weight: bold;
    color: #2c5e2e;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

/* Precio unitario */
.cart-item-price {
    color: #b8860b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Controles de cantidad */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
}

.quantity-btn {
    background: #e0e0e0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.2s;
}

.quantity-btn:hover {
    background: var(--gold);
    color: #1a1a2e;
    transform: scale(1.05);
}

.quantity-value {
    font-weight: bold;
    font-size: 1rem;
    min-width: 30px;
    text-align: center;
    color: #1e3c72;
}

/* Precio subtotal */
.cart-item-subtotal {
    font-weight: bold;
    color: #1e3c72;
    font-size: 1.1rem;
    min-width: 120px;
    text-align: right;
}

/* Botón eliminar */
.cart-item-remove {
    background: rgba(220, 53, 69, 0.1);
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: 0.2s;
}

.cart-item-remove:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.02);
}

/* Total del carrito */
#cart-total {
    text-align: right;
    margin-top: 1.5rem;
}

#cart-total h3 {
    background: linear-gradient(135deg, #1e3c72, #0a2a4a);
    color: white;
    padding: 1rem 1.8rem;
    border-radius: 40px;
    font-size: 1.3rem;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid var(--gold);
}
/* ========== TÍTULO DEL CARRITO - VERSIÓN DESTACADA ========== */

#cart h2 {
    color: #1e3c72 !important;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #1e3c72, #0a2a4a);
    color: white !important;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--gold);
}
