/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */

body {
    font: 16px/26px Helvetica, Helvetica Neue, Arial;
    background-color: #fdf5f9;
}

.wrapper {
    width: 90%;
    margin: 0 5%;
}

/* ===================
    ALL: Perfumería Theme (Rosa/Lila elegante)
   =================== */

.header-container {
    border-bottom: 20px solid #6b4c7a;
}

.footer-container,
.main aside {
    border-top: 20px solid #6b4c7a;
}

.header-container,
.footer-container,
.main aside {
    background: linear-gradient(135deg, #6b4c7a 0%, #8b5a9a 100%);
}

.title {
    color: white;
    font-size: 1.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ====================
    Contenido del artículo
   ==================== */

.main article {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.main article h1 {
    font-size: 2.2em;
    color: #6b4c7a;
    margin-bottom: 15px;
    text-align: center;
}

.main article header p {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.main article section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.main article section:last-child {
    border-bottom: none;
    margin-bottom: 20px;
}

.main article section h2 {
    color: #8b5a9a;
    font-size: 1.6em;
    margin-bottom: 15px;
    border-left: 4px solid #6b4c7a;
    padding-left: 15px;
}

.main article section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.main article section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.main article section ul li {
    color: #555;
    margin-bottom: 8px;
    line-height: 1.6;
}

.main article section strong {
    color: #6b4c7a;
    font-weight: bold;
    font-size: 1.1em;
}

.main article footer {
    margin-top: 30px;
    padding: 20px;
    border-top: 2px solid #6b4c7a;
    background-color: #fdf5f9;
    border-radius: 8px;
}

.main article footer h3 {
    color: #6b4c7a;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.main article footer p {
    color: #666;
    font-size: 1em;
}

/* ====== PRECIOS DESTACADOS ====== */

.main article section p strong {
    font-size: 1.3em;
    color: #e44d26;
}

/* ====== ESTILO PARA EL BOTÓN REGRESAR ====== */

.btn-regresar {
    display: inline-block;
    padding: 12px 25px;
    background-color: #6b4c7a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-regresar:hover {
    background-color: #8b5a9a;
    transform: translateY(-2px);
}

.btn-regresar:active {
    transform: translateY(0);
}

/* ==========================================================================
   NUEVOS ESTILOS PARA EL CATÁLOGO (Cuadrícula de Perfumes)
   ========================================================================== */

.perfumes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 20px;
}

.perfume-card {
    background: #fff;
    border: 1px solid #f1eaf2;
    border-radius: 12px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: transform 0.2s ease;
}

.perfume-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(107, 76, 122, 0.15);
}

.perfume-card h2 {
    font-size: 1.3em !important;
    color: #6b4c7a;
    margin-top: 0;
    margin-bottom: 10px;
    border-left: none !important;
    padding-left: 0 !important;
    text-align: center;
}

/* Caja contenedora para achicar imágenes de forma uniforme */
.perfume-img-container {
    width: 100%;
    height: 160px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.img-catalogo {
    max-height: 100%;
    max-width: 100%;
    width: auto !important; 
    height: auto;
    object-fit: contain;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: transform 0.3s ease;
}

.perfume-card:hover .img-catalogo {
    transform: scale(1.08);
}

.perfume-card .desc {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
    height: 55px; 
    overflow: hidden;
    margin-bottom: 10px;
}

.perfume-card .detalles {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 10px 0 !important;
    font-size: 0.85em;
    border-top: 1px dashed #eee;
    padding-top: 10px;
}

.perfume-card .detalles li {
    margin-bottom: 4px !important;
    color: #555;
}

.perfume-card .precio {
    font-size: 1.4em !important;
    color: #e44d26 !important;
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 5px;
}

/* ==============
    MOBILE: Menu
   ============== */

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav a {
    display: block;
    margin-bottom: 10px;
    padding: 15px 0;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: white;
    background: #6b4c7a;
    border-radius: 5px;
    transition: background 0.3s ease;
}

nav a:hover,
nav a:visited {
    color: white;
}

nav a:hover {
    background: #8b5a9a;
    text-decoration: none;
}

/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 30px 0;
}

.main aside {
    color: white;
    padding: 20px 5% 10px;
    border-radius: 10px;
}

.main aside h3 {
    color: white;
    font-size: 1.4em;
    margin-bottom: 15px;
    border-bottom: 2px solid white;
    padding-bottom: 10px;
}

.main aside p {
    color: white;
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-container footer {
    color: white;
    padding: 20px 0;
}

.footer-container footer h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.footer-container footer p {
    color: #f0f0f0;
    font-size: 0.95em;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 600px) {
    .perfume-card {
        width: 48%; 
    }
}

@media only screen and (min-width: 480px) {
    nav a {
        float: left;
        width: 27%;
        margin: 0 1.7%;
        padding: 25px 2%;
        margin-bottom: 0;
        border-radius: 5px;
    }

    nav li:first-child a {
        margin-left: 0;
    }

    nav li:last-child a {
        margin-right: 0;
    }

    nav ul li {
        display: inline;
    }

    .oldie nav a {
        margin: 0 0.7%;
    }
}

@media only screen and (min-width: 768px) {
    .header-container,
    .main aside {
        -webkit-box-shadow: 0 5px 10px #aaa;
           -moz-box-shadow: 0 5px 10px #aaa;
                box-shadow: 0 5px 10px rgba(107, 76, 122, 0.3);
    }

    .title {
        float: left;
    }

    nav {
        float: right;
        width: 38%;
    }

    .main article {
        float: left;
        width: 57%;
    }

    .main aside {
        float: right;
        width: 28%;
    }
}

@media only screen and (min-width: 1140px) {
    .wrapper {
        width: 1026px;
        margin: 0 auto;
    }
}

/* Helper classes, clearfix y Print styles se mantienen igual... */
.clearfix:before, .clearfix:after { content: " "; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }