/* ===== TIPOGRAFÍA ===== */
@font-face {
    font-family: 'Hero-Regular';
    src: url('/fonts/Hero-Regular.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'Hero-Regular', sans-serif;
}

:root {
    --primary: #ff8540;
    --primary-dark: #e08627;
    --secondary: #8bc34a;
    --accent: #29b6f6;
    --gray-dark: #5d5d5d;
}

.bg-primary {
    background-color: var(--primary);
}

.text-primary {
    color: var(--primary);
}

.secundary-primary {
    color: var(--primary-dark);
}

.text-secundary {
    color: #6A5043;
}

.border-primary {
    border-color: var(--primary);
}

.hover\:bg-primary-dark:hover {
    background-color: var(--primary-dark);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-accent {
    background-color: var(--accent);
}

html {
    scroll-behavior: smooth;
}

.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: flex;
}

/* Menu */
nav a:hover {
    color: var(--primary);
    /* Color primario naranja al hacer hover */
}

/* Carrusel el mercado */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* background: rgba(0, 0, 0, 0.5); */
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.carousel-control.prev {
    left: 10px;
    color:#e67535;
}

.carousel-control.next {
    right: 10px;
    color:#e67535;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
}

.carousel-indicator.active {
    background: white;
}

/* Estilos boton atras */
.volver {
    display: inline-flex;
    align-items: center;
    color: #FF5000;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.volver:hover {
    color: #e08627;
}

.volver::before {
    content: "←";
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Estilos Novedades */

.noticia-compartir {
    border-top: 1px solid #ececee;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: justify;
}

.btn-compartir, .btn-enviar {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    color: #555;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.btn-compartir:hover, .btn-enviar:hover {
    background: #FF5000;
    color: white;
}

/* Boton arriba */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FF5000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    z-index: 1000;
}

#back-to-top a {
    color: white;
}


/* Redes */
/* Estilos para los enlaces de redes sociales */
.md\:col-span-1 ul li a {
    color: #000000;
    /* Negro */
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.md\:col-span-1 ul li a:hover {
    color: var(--primary);
    /* Color primario naranja al hacer hover */
}

.md\:col-span-1 ul li a i {
    width: 20px;
    text-align: center;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Estilos para botones de compartir */
.share-button {
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Animación para el mensaje de copiado */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

#copy-message {
    animation: fadeInOut 3s ease-in-out;
}