/*
Theme Name: MiTemaVeracruz
Description: Tema elegante de WordPress inspirado en Veracruz
Author: Tu Nombre
Version: 1.1
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

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

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: #f5faff;
    color: #333;
}

/* Admin bar fix */
body.admin-bar .site-header {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        margin-top: 46px;
    }
}

/* ------------------ Header ------------------ */
.site-header {
    background: linear-gradient(-45deg, #003366, #0055aa, #007BFF, #00ADEF);
    background-size: 400% 400%;
    animation: gradientBlueFlow 10s ease infinite;
    color: #fff;
    padding: 10px 0;
    z-index: 1000;
    position: relative;
}

@keyframes gradientBlueFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.logo img {
    max-width: 150px;
}

.header-search-container {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 10px 20px;
}

.search-form {
    display: flex;
    max-width: 400px;
    width: 100%;
}

.search-field {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.search-submit {
    background-color: #444;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.social-icons a {
    color: #fff;
    margin-left: 15px;
    font-size: 16px;
}

/* ------------------ Imagen destacada ------------------ */
.imagen-fija-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.imagen-fija {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-bottom: 6px solid #007BFF;
}

/* ------------------ Sección de categorías (tarjetas) ------------------ */
.categoria-seccion {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.titulo-categoria {
    font-family: 'Pacifico', cursive;
    font-size: 40px;
    color: #0056b3;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 4px solid #00bfff;
    display: inline-block;
    padding-bottom: 10px;
}

.categoria-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.categoria-card {
    background-color: #f0f8ff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.categoria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.categoria-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.categoria-card-titulo {
    background-color: #007BFF;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 12px;
    font-size: 16px;
}

/* Botón elegante */
.ver-categoria-boton-container {
    text-align: center;
    margin-top: 30px;
}

.ver-categoria-boton {
    display: inline-block;
    background: linear-gradient(90deg, #007BFF, #00BFFF);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

.ver-categoria-boton:hover {
    background: linear-gradient(90deg, #0056b3, #0096c7);
    transform: translateY(-2px);
}

/* ------------------ Footer ------------------ */
.site-footer {
    background: linear-gradient(135deg, #001f3f, #006994, #00b8a9);
    background-size: 400% 400%;
    animation: oceanGradient 15s ease infinite;
    color: #e0f7fa;
    padding: 50px 0;
    border-top: 4px solid #00f2fe;
    text-align: center;
}

@keyframes oceanGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-menu-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-menu-list li a {
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.footer-menu-list li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #00f2fe;
}

.footer-info {
    font-size: 14px;
    color: #cceeff;
    opacity: 0.9;
}

/* ------------------ Responsive ------------------ */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        max-width: 120px;
    }

    .titulo-categoria {
        font-size: 30px;
    }

    .categoria-card img {
        height: 180px;
    }

    .footer-menu-list {
        flex-direction: column;
        gap: 15px;
    }
}
