/* ================================
   PÁGINA PERSONAL - ABIGAIL MELENDEZ
   ================================ */

/* RESET Y CONFIGURACIÓN BÁSICA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ESTILOS DEL CUERPO PRINCIPAL */
body {
    font-family: 'Arial', sans-serif; 
    line-height: 1.5; 
    color: #333; 
    /* Fondo con degradado morado */
    background-color: #c8a2c8; 
    background-image: linear-gradient(135deg, #c8a2c8 0%, #b19cd9 50%, #dac4e8 100%);
    background-size: cover; 
    background-position: center; 
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================================
   ANIMACIONES CSS
   ================================ */

/* Animación de aparición suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de deslizamiento desde la izquierda */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación de deslizamiento desde la derecha */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación de flotación continua */
@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animación de pulsación */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animación del cursor parpadeante para el efecto de escritura */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* CLASES PARA APLICAR ANIMACIONES */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Cursor parpadeante para el efecto de escritura */
.typing-cursor::after {
    content: '|';
    color: #8e44ad;
    animation: blink 1s infinite;
    font-weight: bold;
}

/* ================================
   ESTRUCTURA PRINCIPAL
   ================================ */

/* Contenedor principal de la página */
.container {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
}

/* ================================
   HEADER (ENCABEZADO)
   ================================ */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    margin: 20px 0;
    border: 2px solid #9b59b6;
    text-align: center;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Título principal */
h1 {
    font-size: 32px;
    font-weight: bold;
    color: #6a4c93;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Subtítulo con efecto de escritura */
.subtitle {
    font-size: 18px;
    color: #8e44ad;
    margin: 10px 0;
    font-style: italic;
    min-height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ================================
   SECCIÓN "SOBRE MÍ" (FLEXBOX)
   ================================ */
.about-me {
    background-color: rgba(248, 248, 248, 0.95);
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #9b59b6;
    /* Uso de Flexbox para organizar contenido */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Títulos de sección */
.about-me h2 {
    font-size: 24px;
    font-weight: bold;
    color: #6a4c93;
    text-align: center;
}

/* Imagen de perfil con efectos */
.profile-image {
    width: 180px;
    height: 180px;
    border: 3px solid #9b59b6;
    margin: 15px 0;
    /* Imagen responsiva */
    max-width: 100%;
    height: auto;
    /* Efectos visuales */
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Efecto hover en imagen de perfil */
.profile-image:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

/* Párrafos del contenido */
.about-me p {
    font-size: 16px;
    text-align: justify;
    line-height: 1.5;
    margin: 10px 0;
}

/* ================================
   REDES SOCIALES (GRID)
   ================================ */
.social-links {
    background-color: rgba(248, 248, 248, 0.95);
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #9b59b6;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.social-links h3 {
    font-size: 22px;
    font-weight: bold;
    color: #6a4c93;
    margin: 15px 0;
}

/* Grid para organizar botones de redes sociales */
.social-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 15px;
    margin: 20px 0;
}

/* Contenedor para centrar el botón de Aruma */
.aruma-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Estilos base para botones de redes sociales */
.social-link {
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    gap: 8px;
}

/* Iconos en botones sociales */
.social-link i {
    font-size: 18px;
}

/* Logo de Aruma */
.aruma-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* COLORES ESPECÍFICOS PARA CADA RED SOCIAL */
.social-link.instagram {
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
}

.social-link.facebook {
    background-color: #1877f2;
}

.social-link.aruma {
    background-color: #bd081c;
    width: 800px;
}

/* EFECTOS HOVER PARA CADA RED SOCIAL */
.social-link.instagram:hover {
    background: linear-gradient(45deg, #a04bc4, #ff2d2d, #ffb555);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(131, 58, 180, 0.4);
}

.social-link.facebook:hover {
    background-color: #166fe5;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-link.aruma:hover {
    background-color: #9d0619;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(189, 8, 28, 0.4);
}

/* ================================
   GALERÍA DE IMÁGENES (GRID)
   ================================ */
.gallery {
    background-color: rgba(248, 248, 248, 0.95);
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #9b59b6;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gallery h3 {
    font-size: 22px;
    font-weight: bold;
    color: #6a4c93;
    text-align: center;
    margin: 15px 0;
}

.gallery p {
    font-size: 16px;
    text-align: center;
    margin: 15px 0;
}

/* Grid para organizar imágenes en 3 columnas */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
    margin: 20px 0;
}

/* Contenedores de cada imagen */
.gallery-item {
    border: 2px solid #9b59b6;
    padding: 10px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Efecto hover en contenedores de galería */
.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Imágenes de la galería */
.gallery-item img {
    max-width: 100%;
    height: auto;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Efecto hover en imágenes */
.gallery-item img:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

/* Texto descriptivo de cada imagen */
.gallery-caption {
    font-size: 14px;
    color: #6a4c93;
    font-weight: bold;
    margin: 10px 0;
}

/* ================================
   NAVEGACIÓN INTERNA
   ================================ */
.navigation {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #9b59b6;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navigation h3 {
    color: #6a4c93;
    margin: 10px 0;
    font-size: 18px;
    font-weight: bold;
}

.navigation a {
    color: #9b59b6;
    margin: 0 15px;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.navigation a:hover {
    background-color: #9b59b6;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ================================
   FOOTER (PIE DE PÁGINA)
   ================================ */
footer {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #9b59b6;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

footer p {
    font-size: 14px;
    color: #6a4c93; 
    margin: 5px 0; 
}

/* ================================
   ELEMENTOS ESPECIALES
   ================================ */

/* Texto destacado */
.highlight {
    background-color: #e8b3e8; 
    color: #6a4c93; 
    padding: 2px 6px; 
    font-weight: bold; 
    border-radius: 8px; 
}

/* ================================
   DISEÑO RESPONSIVE (MÓVILES)
   ================================ */
@media (max-width: 768px) {
    /* Ajustes del contenedor principal */
    .container {
        width: 95%; 
        padding: 10px; 
    }
    
    /* Ajustes de tipografía */
    h1 {
        font-size: 24px; 
    }
    
    .subtitle {
        font-size: 16px; 
    }
    
    /* Reducir padding en secciones */
    .about-me, .social-links, .gallery, footer {
        padding: 15px; 
    }
    
    /* Grid responsivo: de 3 columnas a 1 columna */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Redes sociales: de 2 columnas a 1 columna */
    .social-links-grid {
        grid-template-columns: 1fr;
    }
    
    /* Imagen de perfil más pequeña */
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    /* Enlaces de navegación en columna */
    .navigation a {
        display: block;
        margin: 5px 0;
    }
    
    /* Botón de Aruma más pequeño en móviles */
    .social-link.aruma {
        width: 150px;
    }
}