/* ===================================
   Variables de Colores
   =================================== */
:root {
    --bordo: #8B2E3A;
    --bordo-oscuro: #6B1E2A;
    --verde-seco: #8B9B7E;
    --verde-claro: #A8B89B;
    --nude: #e8c9ad;
    --rosa-viejo: #C4A4A0;
    --rosa-claro: #D8C0BC;
    --blanco: #FEFEFE;
    --negro: #2C2C2C;
}

/* ===================================
   Reset
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--negro);
    background: var(--blanco);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===================================
   Páginas Internas (Compartido)
   =================================== */
.page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--nude) 0%, var(--rosa-claro) 100%);
    padding: 150px 20px 50px;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--blanco);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(139, 46, 58, 0.15);
    animation: fadeInScale 0.6s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.page-content h1 {
    font-size: 3.5rem;
    color: var(--bordo);
    margin-bottom: 30px;
    text-align: center;
}

.page-content p {
    font-size: 1.2rem;
    color: var(--negro);
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.7;
}

.back-btn {
    display: inline-block;
    background: var(--bordo);
    color: var(--blanco);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
    width: fit-content;
}

.back-btn:hover {
    background: var(--bordo-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 46, 58, 0.3);
}

@media (max-width: 768px) {
    .page-content {
        padding: 40px 30px;
    }

    .page-content h1 {
        font-size: 2.5rem;
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: #f1c2b8;
    color: white;
    padding: 20px 0px;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 60px;
}

.footer-menu {
    display: flex;
    gap: 40px;
    flex: 1;
}

.footer-column h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2em;
    margin-bottom: 15px;
    color: white;
}

.footer-column h4 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column h4 a:hover {
    color: white;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--rosa-viejo);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0px;
}

.footer-contact h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2em;
    margin-bottom: 15px;
    color: white;
    text-shadow: #2C2C2C 0px 2px 10px;
}

.contact-items {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 0.9em;
    transition: opacity 0.3s;
    text-shadow: #2C2C2C 0px 2px 10px;
}

.contact-item:hover {
    opacity: 0.8;
}

.contact-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-icon {
    font-size: 1.5em;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-menu {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-contact {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .footer-container {
        gap: 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .footer-menu {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    .footer-contact {
        display: flex;
        flex-direction: column;
        gap: 0px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .contact-item {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    .contact-items{
        display: flex;
        flex-direction: column;
        margin-top: 20px;
    }
}

/* ===================================
   Dropdown Menu Styles
   =================================== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: rgba(254, 254, 254, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(254, 254, 254, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    color: var(--blanco);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Cormorant Garamond', serif;
    white-space: nowrap;
    transition: all 0.4s ease;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    color: black;
    text-shadow: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: rgba(254, 254, 254, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(254, 254, 254, 0.3);
    min-width: 180px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    margin-bottom: 5px;
    border-radius: 15px;
    overflow: hidden;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--negro);
    transition: all 0.3s;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.dropdown-menu a:hover {
    background: var(--bordo);
    color: white;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* Para carrito y checkout - dropdown normal (hacia abajo) */
.carrito-nav-menu .nav-dropdown .dropdown-menu,
.checkout-nav-menu .nav-dropdown .dropdown-menu {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 0px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Estilos para dropdown en carrito y checkout */
.carrito-nav-menu .nav-dropdown .dropdown-toggle,
.checkout-nav-menu .nav-dropdown .dropdown-toggle {
    background: rgba(254, 254, 254, 0.5);
    padding: 6px 15px;
    border-radius: 50px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bordo);
    border: none;
    box-shadow: 0 2px 8px rgba(139, 46, 58, 0.1);
    text-shadow: none;
}

.carrito-nav-menu .nav-dropdown .dropdown-toggle:hover,
.checkout-nav-menu .nav-dropdown .dropdown-toggle:hover {
    background: var(--bordo);
    color: var(--blanco);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(139, 46, 58, 0.3);
}

/* Responsive dropdown */
@media (max-width: 768px) {
    .nav-dropdown {
        display: none;
    }
}
