* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header con SOLO LOGO */
header {
    background: linear-gradient(120deg, #2c3e50, #4a6491);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Títulos de sección */
.section-title, .gallery-title {
    text-align: center;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after, .gallery-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #ffd700;
    border-radius: 2px;
}

.gallery-title { margin-bottom: 2rem; }
.gallery-title::after { width: 60px; height: 3px; bottom: -8px; }

/* Contenedores Flex para CENTRAR elementos */
.services-grid, .solutions-grid, .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra los elementos en el contenedor */
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-grid {
    gap: 1.8rem;
}

/* Tarjetas centradas y adaptables */
.service-card, .solution-card {
    flex: 1 1 300px; /* Crece y se encoge, tamaño base 300px */
    max-width: 350px; /* Evita que sean demasiado anchas */
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.solution-card { background: white; }

.service-card:hover, .solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Imágenes de productos */
.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer; /* Indicar que es clickeable */
}

.product-img:hover {
    transform: scale(1.03);
}

.service-card h3, .solution-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.solution-icon {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Secciones con fondos */
.services { padding: 4rem 0; background: white; }
.professional-solutions { padding: 4rem 0; background: linear-gradient(135deg, #e4f1f8 0%, #d1e8f5 100%); }
.photo-gallery { padding: 4rem 0; background: #e9f2f8; }

/* Galería Items (Modificado para centrar) */
.photo-item {
    flex: 1 1 300px;
    max-width: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    height: 320px;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    background: #fff;
}

.photo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.photo-img {
    width: 100%;
    height: calc(100% - 46px);
    object-fit: cover;
    display: block;
    cursor: pointer; /* Indicar que es clickeable */
    transition: transform 0.3s ease;
}

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

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.85);
    color: white;
    padding: 12px 10px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
    z-index: 2;
}

.photo-item:hover .photo-caption {
    transform: translateY(0);
}

/* Estilos de fondos temáticos */
.mother-day-section { background: linear-gradient(135deg, #fff0f5 0%, #ffd6e7 100%); }
.day-of-the-dead-section { background: linear-gradient(135deg, #ffe6e6 0%, #ffccdd 100%); }
.christmas-section { background: linear-gradient(135deg, #e6f7e6 0%, #ccf0cc 100%); }
.quinceanera-section { background: linear-gradient(135deg, #f0e6ff 0%, #e0ccff 100%); }
.children-day-section { background: linear-gradient(135deg, #e6f7ff 0%, #cceeff 100%); }
.father-day-section { background: linear-gradient(135deg, #f7e6f7 0%, #efd0ef 100%); }

/* Sección de compra */
.purchase-section {
    padding: 5rem 0;
    background: #FFE81A;
    color: white;
    text-align: center;
}

.purchase-section h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.purchase-section p {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    color: #2c3e50;
}

.mercadolibre-link {
    background: #00a650;
    color: white;
    padding: 16px 45px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    border-radius: 35px;
    display: inline-block;
    transition: all 0.4s ease;
    box-shadow: 0 6px 25px rgba(0,0,0,0.35);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.mercadolibre-link::before { content: '🛒'; margin-right: 10px; font-size: 1.4rem; }
.mercadolibre-link:hover { background: #008f45; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.mercadolibre-link::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s;
}
.mercadolibre-link:hover::after { left: 100%; }

/* Modal (Visor de Imágenes) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 50px; 
    left: 0; top: 0;
    width: 100%; height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoom 0.4s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    text-align: center;
    color: #fff;
    padding: 15px 0;
    font-size: 1.2rem;
    animation: zoom 0.4s;
}

@keyframes zoom {
    from {transform:scale(0.8); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover, .close:focus { color: #bbb; text-decoration: none; cursor: pointer; }

/* Pie de página */
footer {
    background: #1a252f;
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3rem;
}

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.contact-info { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; }
.social-links { display: flex; gap: 1.5rem; margin-top: 1rem; }
.social-links a { color: white; font-size: 1.6rem; transition: color 0.3s ease, transform 0.3s ease; }
.social-links a:hover { color: #ffd700; transform: translateY(-3px); }
.copyright { opacity: 0.85; font-size: 0.95rem; max-width: 800px; }

/* Responsive */
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 1rem; }
    .logo-img { height: 45px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
    .photo-item { height: 280px; }
    .modal-content { width: 95%; }
}

@media (max-width: 480px) {
    .logo-img { height: 40px; }
    .section-title, .gallery-title { font-size: 1.7rem; }
    .photo-item { height: 240px; }
    .mercadolibre-link { padding: 14px 35px; font-size: 1.1rem; }
}

/* =========================================================
   Estilos para la Tabla de Guía de Tamaños
   ========================================================= */
.size-guide-section {
    padding: 4rem 0;
    background: #ffffff;
}

.table-responsive {
    width: 100%;
    overflow-x: auto; /* Permite scroll horizontal en móviles */
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-top: 1rem;
}

.size-table {
    width: 100%;
    min-width: 700px; /* Evita que la tabla se aplaste demasiado en móviles */
    border-collapse: collapse;
    text-align: left;
}

.size-table th, 
.size-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #edf2f7;
    font-size: 1rem;
}

.size-table thead th {
    background-color: #2c3e50;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Efecto hover general */
.size-table tbody tr {
    transition: background-color 0.3s ease;
}
.size-table tbody tr:hover {
    background-color: #f8fafd;
}

/* Filas destacadas (Estándares importantes) */
.size-table tbody tr.highlight-row {
    background-color: #fffde7; /* Amarillo muy suave */
}

.size-table tbody tr.highlight-row:hover {
    background-color: #fff9c4; /* Amarillo al hacer hover */
}

.size-table tbody tr:last-child td {
    border-bottom: none;
}

/* =========================================================
   Estilos para el Menú Desplegable (Dropdown)
   ========================================================= */

/* 容器设置为相对定位 */
.dropdown {
    position: relative;
    display: inline-block;
}

/* 下拉菜单内容（默认隐藏） */
.dropdown-content {
    display: none; /* 默认隐藏 */
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 25px rgba(0,0,0,0.15);
    z-index: 1100; /* 确保在最上层 */
    border-radius: 10px;
    margin-top: 5px;
    overflow: hidden;
    animation: fadeIn 0.3s ease; /* 增加淡入效果 */
}

/* 下拉列表里的链接样式 */
.dropdown-content a {
    color: #2c3e50 !important; /* 强制改回深色文字 */
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid #f1f4f8;
    transition: all 0.3s ease;
}

/* 最后一个链接去掉底边框 */
.dropdown-content a:last-child {
    border-bottom: none;
}

/* 鼠标悬停下拉选项的背景色 */
.dropdown-content a:hover {
    background-color: #f8fafd;
    color: #4a6491 !important;
    padding-left: 25px; /* 悬停时稍微右移，增加交互感 */
}

/* 当鼠标经过父级 li 时，显示下拉菜单 */
.dropdown:hover .dropdown-content {
    display: block;
}

/* 简单的淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式微调：在手机端下拉菜单可能会太宽，可以根据需要调整 */
@media (max-width: 768px) {
    .dropdown-content {
        position: static; /* 手机端改为垂直展开 */
        box-shadow: none;
        background-color: rgba(255,255,255,0.1);
        min-width: 100%;
    }
    .dropdown-content a {
        color: white !important;
        text-align: center;
    }
}