/*
Theme Name: Ciudades Puerto
Theme URI: https://ciudadespuertos.cl
Author: Matías Lobos
Author URI: https://ciudadespuertos.cl
Description: Tema personalizado para la Asociación Nacional de Ciudades Puerto de Chile
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ciudadespuertos
Tags: tailwind, responsive, modern
*/

/* Estilos básicos para animaciones de transición */
.carousel-slide {
    transition: opacity 1s ease-in-out;
}

/* Animación suave para el menú móvil */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease-in-out;
}

#mobile-menu.open {
    max-height: 100vh !important;
    opacity: 1 !important;
}

/* Efecto hover mejorado para enlaces de navegación */
nav a {
    position: relative;
    overflow: hidden;
}

/* Animación de iconos del menú hamburguesa */
#menu-icon,
#close-icon {
    transition: transform 0.3s ease, opacity 0.2s ease;
}

#mobile-menu-button:hover #menu-icon,
#mobile-menu-button:hover #close-icon {
    transform: scale(1.1);
}

/* Transiciones suaves para el header al hacer scroll */
header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

header .logo-img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .logo-img {
    height: 2.5rem !important;
    width: 2.5rem !important;
}

header .logo-text {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .logo-text h1 {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

header.scrolled .logo-text p.main-text {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}

header.scrolled .logo-text p.sub-text {
    font-size: 0.625rem !important;
}

header .header-content {
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .header-content {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Corregir espaciado de párrafos en el contenido */
.prose p {
    margin-bottom: 1.5rem !important;
    line-height: 1.8;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    font-weight: 800;
}

.prose ul, .prose ol {
    margin-bottom: 1.5rem !important;
    padding-left: 1.5rem !important;
    list-style-type: disc;
}

/* Asegurar que los saltos de línea se respeten si no hay etiquetas P */
.prose {
    white-space: pre-wrap; /* Solo si el contenido viene sin etiquetas HTML */
    white-space: normal;  /* Volvemos a normal para que wpautop funcione */
}
