/* Estilos generales */
:root {
    --color-primario: rgba(0, 0, 255, 0.2);
    --color-texto: #ffffff;
    --sombra-texto: 2px 3px 2px rgba(0,0,0,0.3);;
    --sombra-elemento: 0px 18px 20px 3px rgba(0, 0, 0, 0.3);
    --transicion: all 0.4s ease-in-out;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px; /* Ajuste para el header fijo */
}

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

body {
    font-family: 'Poppins', sans-serif;
    height: 100%;
    background-color: #0f172a;
    background-image: radial-gradient(circle 600px at 50% 50%, rgba(59, 130, 246, 0.3), transparent);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: var(--color-texto);
    text-align: center;
}

h1 {
    color: var(--color-texto);
    text-shadow: 2px 3px 2px rgba(0,0,0,0.3);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    text-shadow: var(--sombra-texto);
    text-align: center;
    margin: 40px 0 20px;
    font-size: 2rem;
    font-weight: 600;
}

p {
    color: var(--color-texto);
    text-shadow: var(--sombra-texto);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--color-texto);
}

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

/* Encabezado y navegación */
header {
    background-color: var(--color-primario);
    backdrop-filter: blur(10px) saturate(100%);
    padding: 20px;
    box-shadow: var(--sombra-elemento);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transicion);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    margin-right: 5px;
    transition: var(--transicion);
}

.navbar-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    position: relative;
    padding: 10px;
    transition: color 0.5s ease-in-out;
}

/* Efecto de subrayado animado */
nav ul li a::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    background: var(--color-texto);
    transition: width 0.5s ease-in-out;
    position: absolute;
    bottom: -1px;
    left: 0;
}

nav ul li a:hover {
    color: rgb(255, 255, 255);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Sección hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-logo {
    max-width: 500px;
    height: auto;
    margin-bottom: 30px;
    animation: fadeIn 2s ease;
}

.hero h1 {
    font-size: 80px;
    margin-bottom: 15px;
    animation: fadeIn 2s ease;
}

.hero p {
    font-size: 30px;
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeIn 2s ease;
}

/* Sección galerías */
.galerias-section {
    padding: 20px 0;
}

.galerias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.galeria-card {
    background-color: rgba(255, 255, 255, 0.534);
    border-radius: 15px;
    /*border: 3px solid rgba(255, 255, 255, 0.5);*/
    overflow: hidden;
    box-shadow: var(--sombra-elemento);
    transition: var(--transicion);
    position: relative;
    height: 500px;
}

.galeria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 30px 20px 3px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.87);
}

.galeria-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transicion);
}

/* Clase específica para la imagen de galería en la página principal */
.galeria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transicion);
}

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

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: var(--transicion);
}

.galeria-card:hover .galeria-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.075) 100%);
}

.galeria-overlay h3 {
    color: var(--color-texto);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.galeria-overlay p {
    color: var(--color-texto);
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Sección sobre mí */
.sobre-mi {
    padding: 80px 0;
}

.sobre-mi .container {
    max-width: 1300px;
}

.sobre-mi h2 {
    font-size: 2.4rem;
}

.sobre-mi-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.sobre-mi-img {
    flex: 1;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
}

.sobre-mi-img img {
    width: 100%;
    height: auto;
    display: block;
}

.sobre-mi-texto {
    flex: 1;
    text-align: left;
}

.sobre-mi-texto p {
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.9;
}

/* Footer */
footer {
    background-color: var(--color-primario);
    backdrop-filter: blur(10px) saturate(100%);
    padding: 40px 0;
    margin-top: 40px;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    text-align: center;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
}

.footer-logo img {
    height: 80px;
    margin-bottom: 15px;
}

.footer-contacto h3,
.footer-redes h3 {
    color: var(--color-texto);
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-shadow: var(--sombra-texto);
}

.footer-contacto p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-contacto i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transicion);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.social-link i {
    font-size: 1.2rem;
    color: var(--color-texto);
}

.footer-copyright {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos para páginas de galería */
.gallery-header {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10px;  
    background-size: cover;
    background-position: center;
}

.gallery-header h1 {
    font-size: 3rem;
    margin-bottom: 5px;
    animation: fadeIn 1.5s ease;
}

.gallery-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 1.8s ease;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    padding: 10px 0;
}

.gallery-item {
    border-radius: 10px;
    border: 1px solid rgb(255, 255, 255);
    overflow: hidden;
    box-shadow: var(--sombra-elemento);
    transition: var(--transicion);
    position: relative;
    height: 300px;
}

.gallery-item:hover {
    /*transform: translateY(-10px);*/
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transicion);
}

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

.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    transition: var(--transicion);
}

.gallery-item:hover .gallery-item-info {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.gallery-item-info h3 {
    color: var(--color-texto);
    margin-bottom: 5px;
}

.gallery-item-info p {
    color: var(--color-texto);
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 120, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-texto);
    font-size: 1.5rem;
    text-shadow: var(--sombra-texto);
}

/* Botones de navegación entre galerías */
.gallery-navigation {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    gap: 15px;
}

/* La navegación dentro del container necesita menos espacio arriba */
.container .gallery-navigation {
    margin-top: 0;
    margin-bottom: 10px;
}

.gallery-nav-btn {
    padding: 10px 20px;
    text-transform: uppercase;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: rgb(255, 255, 255);
    text-shadow: none;
    background: rgba(0, 0, 255, 0.192);
    cursor: pointer;
    box-shadow: transparent;
    border: 1px solid rgb(255, 255, 255);
    transition: 0.5s ease;
    user-select: none;
    /*background-color: rgba(0, 0, 255, 0.2);
    color: var(--color-texto);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transicion);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;*/
}

.gallery-nav-btn:hover {
    color: #ffffff;
  background: rgba(0, 0, 255, 0.363);
  border: 1px solid #ffffff;
  text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff;
  box-shadow: 0 0 5px #ffffff, 0 0 20px #ffffff, 0 0 50px #ffffff,
    0 0 100px #ffffff;

    /*background-color: rgba(0, 0, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);*/
}

.gallery-nav-btn i {
    font-size: 14px;
}

/* Media queries */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    .navbar-logo {
        margin-bottom: 10px;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero-logo {
        max-width: 80%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .sobre-mi-content {
        flex-direction: column;
    }
    
    .sobre-mi-img {
        margin-bottom: 30px;
    }
    
    .sobre-mi-texto {
        text-align: center;
    }
    
    .sobre-mi-texto p {
        text-align: center;
    }
    
    .gallery-header h1 {
        font-size: 2rem;
    }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 1s both;
} 