@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Pacifico&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-padding-top: 4rem;
    scroll-behavior: smooth;
    list-style: none;
    text-decoration: none;
}

:root {
    --primary-dark: #1e4027;
    --primary-light: #dbc8a5;
    --accent-gold: #d4af37;
    --cream: #f5f0e8;
    --green-medium: #2d5f3a;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--primary-dark);
    color: var(--primary-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Imágenes específicas */
.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
}

.carrito-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.resumen-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

/* ==================== NAVBAR ==================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(30, 64, 39, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

header.shadow {
    background: rgba(30, 64, 39, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 1rem 5%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    background: linear-gradient(135deg, #dbc8a5, #d4af37, #dbc8a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    filter: drop-shadow(0 2px 5px rgba(219, 200, 165, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 60px;
}

.navbar {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.navbar a:hover {
    background: linear-gradient(135deg, #dbc8a5, #d4af37);
    color: var(--primary-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(219, 200, 165, 0.4);
}

.header-icon {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-icon .bx,
#search-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbc8a5, #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(219, 200, 165, 0.3);
}

.header-icon .bx:hover,
#search-icon:hover {
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 10px 25px rgba(219, 200, 165, 0.5);
}

.cart-icon {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbc8a5, #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(219, 200, 165, 0.3);
    text-decoration: none;
}

.cart-icon:hover {
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 10px 25px rgba(219, 200, 165, 0.5);
}

.cart-icon .bx {
    color: var(--primary-dark);
    font-size: 1.4rem;
}

#carrito-cantidad {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #1e4027, #2d5f3a);
    color: #dbc8a5;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    box-shadow: 0 2px 10px rgba(30, 64, 39, 0.5);
    animation: pulse-cart 2s infinite;
}

@keyframes pulse-cart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

#menu-icon {
    color: var(--primary-light);
    font-size: 24px;
    z-index: 100001;
    cursor: pointer;
    display: none;
}

.search-box {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translate(-50%);
    background: rgba(219, 200, 165, 0.95);
    width: 100%;
    transition: all 0.3s ease;
}

.search-box.active {
    top: 110%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-box input {
    padding: 20px;
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: var(--primary-dark);
    background: transparent;
}

.search-box input::placeholder {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(30, 64, 39, 0.6);
}

/* ==================== HOME SECTION ==================== */
.home {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(30, 64, 39, 0.95), rgba(45, 95, 58, 0.9)),
                url(img/bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 120px 5% 50px;
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '☕';
    position: absolute;
    font-size: 400px;
    opacity: 0.05;
    right: -100px;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    pointer-events: none;
}

.home-text h1 {
    font-family: 'Pacifico', cursive;
    font-size: 4rem;
    background: linear-gradient(135deg, #dbc8a5, #d4af37, #dbc8a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: none;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    filter: drop-shadow(0 2px 10px rgba(219, 200, 165, 0.3));
}

.home-text p {
    font-size: 1.1rem;
    color: rgba(219, 200, 165, 0.9);
    margin: 0 0 2rem;
    line-height: 1.8;
    font-weight: 500;
}

.home-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    max-width: 500px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float-img 6s ease-in-out infinite;
}

@keyframes float-img {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 1.2rem 3rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #dbc8a5, #d4af37);
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(219, 200, 165, 0.3);
    border: none;
    display: inline-block;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(219, 200, 165, 0.5);
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 100px 5%;
    background: var(--cream);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(30, 64, 39, 0.2);
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-text h2 {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--green-medium);
    margin: 0 0 1.5rem;
    line-height: 1.8;
}

/* ==================== PRODUCTS SECTION ==================== */
.productos {
    padding: 100px 5%;
    background: linear-gradient(135deg, #1e4027, #2d5f3a);
}

.heading {
    text-align: center;
    margin-bottom: 4rem;
}

.heading h2 {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    background: linear-gradient(135deg, #dbc8a5, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.heading p {
    color: rgba(219, 200, 165, 0.8);
    font-size: 1.1rem;
}

.productor-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.productor-container .box {
    background: rgba(219, 200, 165, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(219, 200, 165, 0.2);
    position: relative;
    overflow: hidden;
}

.productor-container .box::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(219, 200, 165, 0.1));
    transition: all 0.3s ease;
}

.productor-container .box:hover::before {
    top: 0;
}

.productor-container .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.productor-container img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 20px;
    transition: all 0.3s ease;
}

.productor-container .box:hover img {
    transform: scale(1.1) rotate(5deg);
}

.productor-container .box h3 {
    color: var(--primary-light);
    font-size: 1.5rem;
    margin: 1rem 0;
    font-weight: 700;
}

.productor-container .box .producto-descripcion {
    color: rgba(219, 200, 165, 0.7);
    font-size: 0.95rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.productor-container .box .content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.productor-container .box .content span {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #dbc8a5, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.productor-container .box .content a {
    padding: 0.8rem 2rem;
    color: var(--primary-light);
    background: linear-gradient(135deg, #1e4027, #2d5f3a);
    border: none;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s ease;
}

.productor-container .box .content a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 64, 39, 0.5);
}

.no-productos {
    text-align: center;
    color: rgba(219, 200, 165, 0.7);
    font-size: 1.2rem;
    padding: 3rem;
    grid-column: 1 / -1;
}

/* ==================== CUSTOMER/REVIEWS SECTION ==================== */
.customer {
    padding: 100px 5%;
    background: var(--cream);
    text-align: center;
}

.customer h2 {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.customer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.customer-container .box {
    padding: 2.5rem;
    background: white;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(30, 64, 39, 0.1);
    transition: all 0.3s ease;
}

.customer-container .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 64, 39, 0.2);
}

.stars .bx {
    color: var(--accent-gold);
    font-size: 1.5rem;
}

.customer-container .box p {
    font-size: 1rem;
    color: var(--green-medium);
    line-height: 1.6;
    margin: 1.5rem 0;
}

.customer-container .box h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 1rem 0 0.5rem;
}

.customer-container .box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-gold);
    margin-top: 1rem;
    box-shadow: 0 5px 20px rgba(30, 64, 39, 0.2);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-dark);
    padding: 50px 5%;
    border-top: 1px solid rgba(219, 200, 165, 0.2);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-box {
    margin-bottom: 0;
}

.footer-box h2,
.footer-box h3 {
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-box p {
    color: rgba(219, 200, 165, 0.8);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-box ul {
    padding: 0;
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 0.8rem;
}

.footer-box ul li a {
    color: rgba(219, 200, 165, 0.8) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-box ul li a:hover {
    color: var(--accent-gold) !important;
    padding-left: 5px;
}

.footer a {
    color: rgba(219, 200, 165, 0.8) !important;
    text-decoration: none !important;
}

.footer a:hover {
    color: var(--accent-gold) !important;
}

.footer-box li {
    color: rgba(219, 200, 165, 0.8);
    list-style: none;
}

.footer-box .social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-box .social a {
    width: 45px;
    height: 45px;
    background: rgba(219, 200, 165, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    transition: all 0.3s ease;
    font-size: 1.3rem;
    text-decoration: none;
}

.footer-box .social a:hover {
    background: linear-gradient(135deg, #dbc8a5, #d4af37);
    color: var(--primary-dark);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 5px 20px rgba(219, 200, 165, 0.4);
}

.footer-box .contacto {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-box .contacto span {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(219, 200, 165, 0.8);
    transition: all 0.3s ease;
}

.footer-box .contacto span:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-box .contacto i {
    color: var(--accent-gold);
    font-size: 1.2rem;
    width: 25px;
}

.copyright {
    text-align: center;
    padding: 2rem;
    color: rgba(219, 200, 165, 0.6);
    border-top: 1px solid rgba(219, 200, 165, 0.1);
    background: var(--primary-dark);
    font-size: 0.9rem;
}

.copyright p {
    margin: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
    header {
        padding: 1rem 3%;
    }
    
    .home {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 150px 5% 50px;
    }
    
    .home-text h1 {
        font-size: 3rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    header {
        padding: 1rem 3%;
    }
    
    section {
        padding: 50px 3%;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 3%;
    }
    
    #menu-icon {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(30, 64, 39, 0.98);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1rem;
        transition: all 0.4s ease;
    }
    
    .navbar.active {
        right: 0;
    }
    
    .navbar a {
        width: 100%;
        display: block;
        padding: 1rem;
    }
    
    .home {
        grid-template-columns: 1fr;
        padding: 120px 5% 50px;
    }
    
    .home-text h1 {
        font-size: 2.5rem;
    }
    
    .home-text p {
        font-size: 1rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .heading h2 {
        font-size: 2rem;
    }
    
    .productor-container {
        grid-template-columns: 1fr;
    }
}

/* ==================== ESTILOS PERFIL ==================== */
.profile {
    padding: 120px 5% 50px;
    min-height: 100vh;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--accent-gold);
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-info h1 {
    color: var(--accent-gold);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--accent-gold);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-light);
}

.profile-bio,
.profile-stats,
.profile-skills {
    margin-bottom: 2rem;
}

.profile-bio h2,
.profile-skills h2 {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.profile-bio p {
    color: var(--primary-light);
    line-height: 1.6;
    font-size: 1.1rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--accent-gold);
}

.stat h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--primary-light);
    font-size: 1.5rem;
    font-weight: bold;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill h3 {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.skill-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-light));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.edit-profile-btn {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.edit-profile-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.logout-btn {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* ==================== ESTILOS COMPRA ==================== */
.checkout-section {
    padding: 120px 5% 50px;
    min-height: 100vh;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-header {
    text-align: center;
    margin-bottom: 3rem;
}

.checkout-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
}

.progress-step.active {
    color: var(--accent-gold);
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.progress-step.active .step-icon {
    background: var(--accent-gold);
}

.progress-line {
    width: 50px;
    height: 2px;
    background: var(--primary-light);
}

.checkout-header h1 {
    color: var(--accent-gold);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.checkout-header p {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.checkout-sidebar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.resumen-header h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resumen-item:last-child {
    border-bottom: none;
}

.resumen-item-info h4 {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.resumen-item-info p {
    color: var(--primary-light);
    font-size: 0.9rem;
    opacity: 0.8;
}

.resumen-item-precio p {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.1rem;
}

.resumen-totales {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--accent-gold);
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

.total-line.total-final {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.resumen-seguridad {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--primary-light);
    font-size: 0.9rem;
}

.checkout-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-section {
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.section-title h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--primary-light);
    font-size: 1rem;
    opacity: 0.8;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--primary-light);
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.metodos-pago {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metodo-pago {
    position: relative;
}

.metodo-pago input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.metodo-pago label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.metodo-pago input[type="radio"]:checked + label,
.metodo-pago.selected label {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.metodo-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.metodo-info {
    display: flex;
    flex-direction: column;
}

.metodo-titulo {
    color: var(--primary-light);
    font-weight: bold;
    font-size: 1.1rem;
}

.metodo-descripcion {
    color: var(--primary-light);
    font-size: 0.9rem;
    opacity: 0.8;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.2rem;
}

.checkbox-group label {
    color: var(--primary-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-group a {
    color: var(--accent-gold);
    text-decoration: underline;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.carrito-vacio {
    text-align: center;
    color: var(--primary-light);
    font-style: italic;
    padding: 2rem;
}

/* ==================== PÁGINA EDITAR PERFIL ==================== */
.editar-perfil {
    padding: 8rem 5% 4rem;
    background: linear-gradient(135deg, #1e4027, #2d5f3a);
    min-height: 100vh;
}

.editar-perfil-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 3rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.editar-perfil-container h1 {
    text-align: center;
    color: var(--primary-light);
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    font-family: 'Pacifico', cursive;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--primary-light), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== CONTENEDOR DE IMAGEN DE PERFIL ==================== */
.profile-image-container {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

#profile-image-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

#profile-image-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.profile-image-upload-label {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold), #f4d03f);
    color: var(--primary-dark);
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.profile-image-upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.profile-image-upload-label i {
    margin-right: 0.5rem;
}

/* ==================== FORMULARIOS ==================== */
#editar-perfil-form {
    display: grid;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==================== FILA DE FORMULARIOS ==================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group.half-width {
    margin: 0;
}

/* ==================== RANGES (SLIDERS) ==================== */
.form-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    padding: 0;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--accent-gold), #f4d03f);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.form-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.6);
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--accent-gold), #f4d03f);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
}

.range-value {
    display: inline-block;
    margin-left: 1rem;
    padding: 0.3rem 0.8rem;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

/* ==================== BOTÓN DE ENVÍO ==================== */
#editar-perfil-form .btn {
    margin-top: 2rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--accent-gold), #f4d03f);
    color: var(--primary-dark);
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    justify-self: center;
    min-width: 250px;
}

#editar-perfil-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

#editar-perfil-form .btn:active {
    transform: translateY(-1px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .editar-perfil-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .editar-perfil-container h1 {
        font-size: 2.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #profile-image-preview {
        width: 120px;
        height: 120px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .editar-perfil {
        padding: 6rem 3% 2rem;
    }
    
    .editar-perfil-container {
        padding: 1.5rem;
    }
    
    .editar-perfil-container h1 {
        font-size: 1.8rem;
    }
    
    #profile-image-preview {
        width: 100px;
        height: 100px;
    }
}

/* ==================== SECCIÓN CARRITO ==================== */
.carrito {
    padding: 6rem 5% 3rem;
    background: linear-gradient(135deg, #1e4027, #2d5f3a);
    min-height: 80vh;
}

.carrito-contenido {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carrito-contenido h2 {
    text-align: center;
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: 'Pacifico', cursive;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#carrito-productos {
    margin-bottom: 1.5rem;
    min-height: 150px;
}

#carrito-total {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    border: 2px solid var(--accent-gold);
}

.carrito-acciones {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.carrito-acciones button,
.carrito-acciones .btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 160px;
}

#vaciar-carrito {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

#vaciar-carrito:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}

#comprar-carrito {
    background: linear-gradient(135deg, var(--accent-gold), #f4d03f);
    color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

#comprar-carrito:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* ==================== ESTILOS ESPECÍFICOS DEL CARRITO ==================== */
.carrito-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.carrito-item:last-child {
    border-bottom: none;
}

.carrito-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.carrito-item-imagen {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--accent-gold);
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.carrito-item-detalles {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.carrito-item-detalles h3 {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
}

.carrito-item-precio {
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: bold;
}

.cantidad-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cantidad {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-cantidad:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.cantidad {
    color: var(--primary-light);
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.precio {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.1rem;
}

.eliminar-producto {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eliminar-producto:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.carrito-acciones {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-carrito {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-confirmar {
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-size: 1.2rem;
    padding: 1.2rem 2rem;
}

.btn-confirmar:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-confirmar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-vaciar {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-vaciar:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
}

.btn-continuar {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-continuar:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    z-index: 10000;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification-success {
    background: #28a745;
    color: white;
}

.notification-error {
    background: #dc3545;
    color: white;
}

.notification-info {
    background: #17a2b8;
    color: white;
}

/* Botones de agregar al carrito */
.agregar-carrito {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.agregar-carrito:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Responsive para carrito */
@media (max-width: 768px) {
    .carrito-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .carrito-item-detalles {
        align-items: center;
    }
    
    .cantidad-controls {
        justify-content: center;
    }
    
    .carrito-acciones {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .checkout-sidebar {
        position: static;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    header {
        padding: 0.8rem 2%;
    }
    
    .home-text h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}



