/* Modern Effects CSS - Mejoras visuales para txopo */

/* Efectos generales */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Mejoras para el cuerpo */
body {
    scroll-behavior: smooth;
}

/* Mejoras para el encabezado */
#header {
    transition: var(--transition-normal);
    box-shadow: var(--box-shadow);
}

#header .top #logo h1 {
    text-shadow: var(--text-shadow);
    transition: var(--transition-normal);
}

#header .top #logo h1:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

#header .top #logo .image.avatar48 img {
    transition: var(--transition-normal);
    filter: grayscale(0.2);
}

#header .top #logo .image.avatar48 img:hover {
    filter: grayscale(0);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Mejoras para la navegación */
#nav ul li a {
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

#nav ul li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

#nav ul li a:hover:before {
    width: 100%;
}

#nav ul li a:hover .icon {
    transform: translateY(-3px);
    color: var(--primary-color);
}

#nav ul li a .icon {
    transition: var(--transition-normal);
}

/* Mejoras para las secciones */
section {
    transition: var(--transition-slow);
}

section.one.dark.cover {
    position: relative;
    overflow: hidden;
}

section.one.dark.cover:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(46, 204, 113, 0.3) 100%);
    z-index: 1;
}

section.one.dark.cover .container {
    position: relative;
    z-index: 2;
}

section.one h2.alt {
    text-shadow: var(--text-shadow);
    animation: fadeInDown 1s ease-out;
}

section.one p {
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: both;
}

/* Mejoras para los botones */
.button {
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-normal);
    z-index: -1;
}

.button:hover:before {
    left: 100%;
    transition: 0.7s;
}

.button.scrolly {
    animation: pulse 2s infinite;
}

/* Mejoras para las imágenes */
.image.fit {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
}

.image.fit img {
    transition: var(--transition-normal);
}

.image.fit:hover img {
    transform: scale(1.05);
}

.item:hover .image.fit {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Mejoras para los encabezados de artículos */
article.item header h3 {
    transition: var(--transition-normal);
}

article.item:hover header h3 {
    color: var(--primary-color);
}

/* Mejoras para la sección "Sobre mí" */
#about .image.featured {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
    overflow: hidden;
}

#about .image.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#about .image.featured img {
    transition: var(--transition-normal);
}

#about .image.featured:hover img {
    transform: scale(1.05);
}

/* Mejoras para los enlaces de la lista de sitios */
.flex-listasitios li {
    transition: var(--transition-normal);
}

.flex-listasitios li:hover {
    transform: translateX(5px);
}

.alternativo {
    transition: var(--transition-normal);
    position: relative;
}

.alternativo:before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-normal);
}

.alternativo:hover:before {
    width: 100%;
}

/* Mejoras para el formulario de contacto */
input[type="text"],
input[type="email"],
textarea {
    transition: var(--transition-normal);
    border-radius: 5px;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

button[type="submit"] {
    transition: var(--transition-normal);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

button[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

/* Mejoras para el carrusel de imágenes */
.slide {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin: 20px auto;
}

.slide img {
    transition: var(--transition-normal);
}

/* Mejoras para el video de YouTube */
#videoabeto iframe {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
}

#videoabeto iframe:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Mejoras para el pie de página */
#footer {
    transition: var(--transition-normal);
}

#footer .copyright a {
    transition: var(--transition-normal);
    position: relative;
}

#footer .copyright a:before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

#footer .copyright a:hover:before {
    width: 100%;
}

/* Mejoras para dispositivos móviles */
@media screen and (max-width: 736px) {
    #header .top #logo h1 {
        font-size: 1.5em;
    }
    
    #nav ul li a .icon {
        font-size: 1.2em;
    }
    
    .button.scrolly {
        padding: 0.5em 1.5em;
    }
}