/* 
  KAM Tejidos en Crochet - Design System & Styles 
  Aesthetics: Delicate, Feminine, Organic, Minimalist
*/

:root {
    /* Colors */
    --color-white: #ffffff;
    --color-black: #1a1a1a; 
    --color-text: #4a4a4a; 
    --color-bg: #faf9f7; /* Soft cream */
    --color-gray-light: #f4f2f0; 
    --color-border-soft: rgba(0,0,0,0.06);
    --color-accent: #c9b19e; 

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --container-width: 1200px;

    /* Borders & Shadows */
    --border-radius-sm: 4px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px; 
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03); 
    
    /* Transitions */
    --transition-smooth: all 0.3s ease-in-out;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Global Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/images/Fondo Mariposas.jpeg');
    background-size: 850px auto; /* Mariposas grandes y con mucho espacio entre ellas */
    background-repeat: repeat;
    background-position: center;
    opacity: 0.03; /* Opacidad muy baja (3%) para no distraer de la historia */
    z-index: -1;
    mix-blend-mode: multiply;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-black);
    font-weight: 400; 
    line-height: 1.2;
}

a { color: var(--color-black); text-decoration: none; transition: var(--transition-smooth); }
img { max-width: 100%; height: auto; display: block; }
svg { vertical-align: middle; }

.container { 
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 var(--spacing-sm); 
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: var(--spacing-sm) !important; }
.mb-4 { margin-bottom: var(--spacing-md) !important; }
.mr-2 { margin-right: 0.5rem; }

.subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.section-title { font-size: 2.75rem; margin-bottom: var(--spacing-sm); }
.serif-elegant { font-style: italic; }

.section-text {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 750px;
    margin-bottom: var(--spacing-md);
}

/* Button variants */
.btn-primary-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.5rem; /* Wider for elegance */
    background-color: transparent;
    color: var(--color-black);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em; /* Increased spacing */
    /* Ghost button border matching the logo brackets */
    border: 1px solid var(--color-black); 
    border-radius: 5px; /* Added 5px radius per final style instruction */
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Subtle fill effect on hover for ghost button */
.btn-primary-small::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5; /* Light soft gray hover background */
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scaleX(0);
    transform-origin: right;
}

.btn-primary-small:hover {
    color: var(--color-black); /* Maintain black color instead of white since the background is now light gray */
    border-color: var(--color-black);
}

.btn-primary-small:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-whatsapp {
    margin-top: 1rem;
    border-color: #25D366;
    color: #25D366;
}
.btn-whatsapp:hover {
    background-color: #25D366;
    color: var(--color-white);
    border-color: #25D366;
}

/* =========================================
   Layout Sections
   ========================================= */

/* Header */
.site-header {
    background-color: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 120px; /* Fijo a 120px según instrucción */
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 100%; /* Ocupar toda la altura del header para centrado vertical automático */
}
/* Logo Adjustments */
.logo {
    display: flex;
    align-items: center;
    overflow: visible; 
    height: 100%; /* Toma la altura disponible del header-inner */
    margin-left: 40px; /* Separación del borde de la pantalla */
}

.logo img { 
    height: 96px; /* Exactamente 80% de 120px (sin restricciones de max-height o max-width en la hoja de estilos) */
    width: auto; /* Proporcional */
    object-fit: contain; 
    display: block;
}

/* Navigation Adjustments */
.main-nav ul { 
    list-style: none; 
    display: flex; 
    gap: var(--spacing-md); 
    align-items: center; /* Ensure perfect vertical alignment */
    height: 100%;
}
.main-nav a { 
    color: #333333; /* Dark solid gray for legibility */
    font-size: 15px; /* Reduced from 0.9rem to 14/15px */
    font-weight: 300; /* Light weight for elegance */
    letter-spacing: 0.03em; 
}
.main-nav a:hover { color: var(--color-accent); }

.menu-toggle { display: none; }
.mobile-tab-bar { display: none; }
.no-scroll { overflow: hidden; }

/* Sections Base */
.section { padding: var(--spacing-xl) 0; }

/* Hero Section */
.hero-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content { max-width: 800px; }
.hero-title { font-size: 4.5rem; margin-bottom: var(--spacing-sm); line-height: 1.15; }
.hero-text { font-size: 1.25rem; max-width: 650px; }

/* Esencia Section (Story - High Impact & Emotive) */
.esencia-section { 
    background-color: transparent; /* Volvemos a transparente para ver las mariposas al 3% */
    margin-bottom: 120px; 
    padding-top: 60px;
    position: relative;
}

.esencia-grid {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-top: 60px;
}

.esencia-image-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: var(--border-radius-md);
}

.esencia-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    object-fit: cover;
}

.esencia-image-wrapper:hover .esencia-img {
    transform: scale(1.05); /* Zoom suave al hacer hover */
}

.esencia-content {
    flex: 1;
    max-width: 50%; /* Ancho máximo del texto del 50% en PC */
    text-align: center; /* Texto centrado para cumplir con la simetría */
}

.story-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 40px;
    line-height: 1.2;
    text-align: center;
}

.story-text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    margin: 0 auto 25px auto;
}

.heart-phrase {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.8rem;
    color: var(--color-black);
    margin: 40px auto;
    line-height: 1.4;
    text-align: center; /* Centrado en su línea independiente */
}

/* Ajustes Responsive para Esencia */
@media (max-width: 991px) {
    .esencia-grid {
        flex-direction: column;
        gap: 40px;
        margin-top: 40px;
    }

    .esencia-image-wrapper {
        order: 2;
        width: 100%;
        margin-bottom: 30px;
    }

    .esencia-content {
        order: 3;
        max-width: 100%;
        text-align: center;
    }

    .story-title {
        font-size: 2.5rem;
    }
}

/* Servicios Section */
.servicios-section { background-color: transparent; padding: 0; margin: 80px 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px; /* Increased gap */
}
.service-card {
    background-color: #f9f9f9;
    padding: 60px 40px; /* Increased internal padding */
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 420px; /* Identical min height */
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06); /* Soft organic shadow on hover */
}
.service-icon-wrap {
    margin-bottom: 35px; /* Added 10px to separate from title */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-black);
    margin-top: 20px; /* Give some visual centering from the top */
}
.service-icon-wrap svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.2;
}
.service-card h3 {
    font-family: var(--font-heading);
    font-size: 22px; /* Increased size */
    font-weight: 500;
    font-style: italic; /* Branding detail */
    margin-bottom: 15px; /* Exact 15px */
    color: var(--color-black);
}
.service-card p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--color-black);
    line-height: 1.5;
    margin-bottom: 0;
    max-width: 80%; /* Limit width to create slender text block */
}
.mt-btn {
    margin-top: auto; 
    font-size: 13px !important; /* Smaller size */
    letter-spacing: 1px !important; /* Refined look */
}

/* Gallery Section */
.gallery-section { background-color: transparent; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}
.gallery-item, .catalog-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    border: 1px solid var(--color-border-soft); 
    box-shadow: var(--shadow-subtle);
}
.gallery-item img, .catalog-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-item-overlay, .catalog-item-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    color: var(--color-white);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}
.gallery-item-overlay h3, .catalog-item-overlay h3 { color: var(--color-white); margin: 0; font-size: 1.25rem; }
.gallery-item:hover img, .catalog-item:hover img { transform: scale(1.03); }
.gallery-item:hover .gallery-item-overlay, .catalog-item:hover .catalog-item-overlay { opacity: 1; }

.btn-ver {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 0.5rem 1.5rem !important; /* Smaller size for gallery overlays */
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-ver:hover {
    color: var(--color-black) !important;
    background-color: #f5f5f5 !important;
    border-color: #f5f5f5 !important;
}

/* Cuidados Section */
.cuidados-section { 
    background-color: transparent; 
    margin-top: 100px;
    padding: var(--spacing-xl) 0;
}
.cuidados-content {
    background-color: var(--color-white);
    padding: 60px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-subtle);
    max-width: 60%;
    margin: 0 auto;
}

.cuidados-list-container {
    margin-top: 30px;
}

.cuidados-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block; /* Centra el bloque a la izquierda al estar en contenedor centrado */
    text-align: left;
}

.cuidados-list li {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--color-black);
    line-height: 1.6;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.cuidados-list li:last-child {
    margin-bottom: 0;
}

.cuidados-list svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 20px;
    color: var(--color-black);
}

/* Footer & Contact Form */
.site-footer {
    background-color: rgba(250, 249, 247, 0.85); /* Semi-transparent to let it breathe */
    padding: var(--spacing-xl) 0 60px; /* Final padding-bottom of 60px */
}

.footer-inner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center; /* Vertically center the footer elements */
}

.footer-brand { max-width: 350px; } /* Increased slightly to accommodate larger logo */
.footer-logo { 
    height: 105px; /* Increased by 40% from 75px */
    margin-bottom: 15px; /* 15px margin below logo base */
    object-fit: contain; 
    display: block;
}
.footer-desc { font-size: 0.9rem; font-style: italic; color: var(--color-text); }
.footer-subtitle { font-size: 1.5rem; margin-bottom: var(--spacing-xs); }

.social-link {
    font-size: 15px;
    font-family: var(--font-heading); /* Serif font */
    font-style: italic;
    font-weight: 500;
    color: #222222; /* Slightly darker for better legibility */
    text-decoration: none;
    display: inline-block;
    opacity: 0.9;
}
.social-link:hover { color: var(--color-accent); opacity: 1; }

.text-sans-14 {
    font-size: 14px;
    font-family: var(--font-body);
    line-height: 1.6;
}

.btn-whatsapp-luxury {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 12px 28px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--color-black);
}

.btn-whatsapp-luxury:hover {
    background-color: transparent;
    color: var(--color-black);
}

.btn-whatsapp-luxury svg {
    margin-right: 10px;
}

/* --- Product Detail Pages --- */
.product-detail-section {
    padding: 120px 0;
    min-height: 80vh;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Image Zoom Effect */
.product-image-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius-md);
    background-color: var(--color-background);
}

.product-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-image-wrapper:hover .product-main-img {
    transform: scale(1.15); /* Lupa de Zoom Suave */
}

/* Typography for Details */
.product-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.product-desc {
    font-family: var(--font-body);
    font-size: 14px; /* 14px como se solicitó */
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 40px;
    max-width: 90%;
}

.technical-details {
    margin-bottom: 50px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.tech-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.tech-value {
    font-size: 1rem;
    color: var(--color-black);
}

/* CTA Styles */
.btn-cta-black {
    display: inline-block;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 20px 45px;
    border-radius: 4px; /* Bordes más rectos para elegancia */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    transition: var(--transition-base);
    text-align: center;
}

.btn-cta-black:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* --- Personalized Orders Page --- */
.personalizados-section {
    padding: 100px 0;
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 100px;
}

.inspiration-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 400px;
}

.inspiration-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

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

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input, 
.form-textarea, 
.form-select {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-black);
    transition: border-color 0.3s ease;
}

.form-input:focus, 
.form-textarea:focus, 
.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

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

.file-input-wrapper {
    position: relative;
    padding: 20px;
    border: 2px dashed #eee;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
}

.file-input-wrapper:hover {
    border-color: var(--color-accent);
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

@media (max-width: 768px) {
    .inspiration-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    .form-container {
        padding: 30px 20px;
    }
}


/* --- Progress Tracking Styles --- */
.progress-container {
    width: 100px;
    height: 8px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease, background-color 0.5s ease;
}

/* Pastel Colors */
.bg-yellow-pastel { background-color: #fff9c4; width: 33%; }
.bg-orange-pastel { background-color: #ffe0b2; width: 66%; }
.bg-green-pastel { background-color: #c8e6c9; width: 100%; }
.bg-grey-pastel { background-color: #f5f5f5; width: 10%; } /* Para "Nueva" */

.admin-select {
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 0.8rem;
    background-color: #fff;
    cursor: pointer;
    outline: none;
}

.admin-select:focus {
    border-color: var(--color-accent);
}

.admin-header {
    background-color: var(--color-white);
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.admin-content {
    padding: 50px 0;
}

/* Security Overlay */
.security-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.security-box {
    background-color: var(--color-white);
    padding: 50px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.security-box h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
}

/* Table and Cards */
.admin-card {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    margin-bottom: 30px;
    overflow: hidden;
}

.admin-table-container {
    overflow-x: auto;
}

.kam-table {
    width: 100%;
    border-collapse: collapse;
}

.kam-table th {
    background-color: #fcfcfc;
    padding: 20px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #eee;
}

.kam-table td {
    padding: 20px;
    border-bottom: 1px solid #f9f9f9;
    font-size: 0.9rem;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-new { background-color: rgba(183, 154, 137, 0.15); color: var(--color-accent); }
.status-process { background-color: rgba(0, 0, 0, 0.05); color: #555; }

.admin-img-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.admin-img-thumb:hover {
    transform: scale(1.1);
}

.btn-action {
    padding: 8px 15px;
    font-size: 0.8rem;
    border: 1px solid #eee;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
}

/* Modal for Image Preview */
.img-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.img-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* Mobile Adjustments for Product Page */
@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-detail-section {
        padding: 80px 0;
    }

    .product-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .product-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .tech-item {
        align-items: center;
        text-align: center;
    }

    .cta-container {
        display: flex;
        justify-content: center;
    }
}

/* --- Category/Catalog Pages --- */
.category-section {
    padding: 100px 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.catalog-item:hover img { transform: scale(1.03); }
.catalog-item:hover .catalog-item-overlay { opacity: 1; }

/* Removing old catalog overlays in favor of unified style */

.btn-ghost {
    background-color: rgba(255, 255, 255, 0.85); /* Semitransparente */
    color: var(--color-black);
    padding: 12px 25px;
    border: 1px solid var(--color-white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-ghost:hover {
    background-color: var(--color-white);
    transform: translateY(-2px);
}

.catalog-info {
    padding: 15px 0;
    text-align: center;
}

.catalog-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive Catalog Grid */
@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */
        gap: 15px;
    }
}
.footer-contact-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #888;
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: var(--spacing-md);
}

/* =========================================
   Responsive Design (Desktop & Large Tablets)
   ========================================= */
@media (max-width: 1024px) {
    .cuidados-content { max-width: 85%; }
    .hero-title { font-size: 3.5rem; }
    .services-grid { gap: 30px; }
}

/* =========================================
   Mobile & Tablet Navigation (Hamburger Menu)
   ========================================= */
@media (max-width: 991px) {
    body { padding-bottom: 60px; } /* Space for Tab Bar */
    
    .site-header { height: auto !important; padding: 20px 0 !important; }
    .header-inner { justify-content: center !important; padding: 0 !important; }
    
    .logo { margin: 0 auto !important; }
    .logo img { height: 80px !important; } /* Increased for maximum legibility */
    
    .main-nav { display: none !important; }
    .menu-toggle { display: none !important; }
    
    /* Tab Bar Styles */
    .mobile-tab-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: rgba(255, 255, 255, 0.95); /* 95% Opacity */
        backdrop-filter: blur(10px); /* Modern blur effect */
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid #f0f0f0; /* Invisible subtle border */
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #BDBDBD; /* Soft gray for inactive */
        transition: color 0.3s ease;
        position: relative;
        padding: 5px 0;
        width: 25%;
    }
    
    .tab-item span {
        font-size: 10px;
        margin-top: 4px;
        font-family: var(--font-body);
        letter-spacing: 0.02em;
    }
    
    .tab-item svg {
        stroke: currentColor;
        stroke-width: 1.5; /* Uniform line thickness */
    }
    
    .tab-item.active {
        color: #000000; /* Solid black for active */
    }

    /* Active indicator line */
    .tab-item.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 2px;
        background-color: #000000;
        border-radius: 2px;
    }

    .hero-title { font-size: 2.0rem; margin-top: 40px; }
    .hero-text { font-size: 1.0rem; }
    .services-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .gallery-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
    .gallery-item-overlay h3 { font-size: 14px; }
    .gallery-item-overlay { padding: 15px; }

    .footer-inner-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand { 
        margin: 0 auto; 
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-logo { height: 85px !important; margin-bottom: 20px !important; } /* Increased spacing */
    .footer-contact-actions { align-items: center; }
}
    
@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem; }
    .cuidados-content { max-width: 95%; padding: 40px 20px; }
}

/* Floating WhatsApp Button - BASE STYLES */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    background-color: #25d366 !important;
    color: white !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    z-index: 9999 !important;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.whatsapp-float svg {
    width: 35px !important;
    height: 35px !important;
    fill: currentColor !important;
}

/* FINAL HIDE RULE FOR MOBILE */
@media (max-width: 991px) {
    .whatsapp-float {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Minimalist Service Icons (SVG) */
.service-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    margin-bottom: 20px;
}

.service-svg-icon {
    width: 32px;
    height: 32px;
    color: #1a1a1a;
    transition: transform 0.3s ease;
}

.service-card:hover .service-svg-icon {
    transform: translateY(-5px);
}

/* Editorial Content Styles */
.editorial-container {
    max-width: 80%;
    margin: 1.5rem auto 3.5rem;
    text-align: center;
    background: transparent;
    box-shadow: none !important; /* Ensure no shadows */
}

.editorial-slogan {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #333333;
    display: block;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.editorial-body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    max-width: 100%;
}

@media (max-width: 768px) {
    .editorial-container {
        max-width: 95%;
        margin-bottom: 2.5rem;
    }
    
    .editorial-slogan {
        font-size: 18px;
    }
}

/* Admin Panel Redesign: Tabs & Filters */
.admin-tab-nav {
    border-bottom: 1px solid #eee;
    background: #fff;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-tab-nav .container {
    display: flex;
    gap: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 20px 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tab-btn.active {
    color: var(--color-black);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-black);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Date Range Picker Styles */
.date-filter-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 10px 20px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.date-filter-label {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
}

.date-input {
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #333;
    outline: none;
    cursor: pointer;
}

.date-separator {
    color: #eee;
}

.admin-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .admin-tab-nav .container {
        gap: 15px;
        overflow-x: auto;
    }
    
    .tab-btn {
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .admin-header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* CMS Editor Styles */
.cms-block {
    margin-bottom: 30px;
    border-left: 2px solid #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.cms-block-header {
    background: #fafafa;
    padding: 15px 20px;
    font-family: var(--font-serif);
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cms-block-body {
    padding: 25px;
}

.cms-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    font-family: var(--font-body);
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    border-radius: 2px;
}

.form-input:focus {
    border-color: #000;
    background: #fff;
}

.drop-area {
    border: 1px dashed #ddd;
    padding: 15px;
    text-align: center;
    background: #fdfdfd;
    border-radius: 4px;
}

/* Premium Buttons for CMS & Hero */
.btn-cta-black {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.btn-cta-black:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-cta-white {
    background: #fff;
    color: #000;
    border: none;
    padding: 15px 35px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 2px;
}

.btn-cta-white:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}
