/* Estilos Sección About */
.about {
    position: relative;
    padding: 100px 0; /* Aumentar padding */
    overflow: hidden;
    background-color: var(--white); /* Fondo blanco */
    z-index: 1;
}

/* Elementos decorativos de fondo */
.about::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--accent-rgb), 0.05) 100%);
    top: -200px;
    right: -200px;
    z-index: -1;
    opacity: 0.6;
}

.about::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    bottom: -150px;
    left: -150px;
    z-index: -1;
    opacity: 0.6;
}

.about .container {
    position: relative;
    z-index: 1;
}

/* Título de la sección About */
.about .section-title {
    /* Heredado de typography.css */
    text-align: left; /* Alinear a la izquierda */
    margin-bottom: 40px;
}

.about .section-title::after {
    left: 0; /* Alinear línea a la izquierda */
    transform: translateX(0);
}

/* Grid para texto e imagen */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adaptable */
    gap: 60px;
    align-items: center;
}

/* Contenedor del texto */
.about-text {
    /* No necesita estilos adicionales si los párrafos tienen la animación */
}

/* Párrafos del texto About */
.about-text p {
    margin-bottom: 25px; /* Aumentar espacio */
    position: relative;
    padding-left: 25px; /* Más padding para el punto */
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--grey-color);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

/* Animación escalonada para párrafos */
.about-text p:nth-child(1) { animation-delay: 0.1s; }
.about-text p:nth-child(2) { animation-delay: 0.3s; }
.about-text p:nth-child(3) { animation-delay: 0.5s; }
/* Añadir más si es necesario */

.about-text p:last-child {
    margin-bottom: 0;
}

/* Punto decorativo antes de cada párrafo */
.about-text p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em; /* Alinear verticalmente con el texto */
    width: 10px; /* Ligeramente más grande */
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4);
}

/* Texto en negrita dentro de los párrafos */
.about-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Contenedor de la imagen */
.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: perspective(1000px) rotateY(-5deg); /* Efecto 3D inicial */
    z-index: 1;
}

/* Borde decorativo animado */
.about-image::before {
    content: '';
    position: absolute;
    /* Ajustar posición para efecto deseado */
    top: -15px;
    left: -15px;
    right: 25px;
    bottom: 25px;
    border: 3px solid var(--accent-color);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.6;
    transition: all 0.5s ease;
}

/* Overlay sutil en hover */
.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--accent-rgb), 0.05) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Efectos hover para la imagen */
.about-image:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
}

.about-image:hover::before {
    transform: translate(-5px, -5px); /* Mover borde */
    opacity: 0.8;
}

.about-image:hover::after {
    opacity: 1; /* Mostrar overlay */
}

.about-image img {
    width: 100%;
    height: auto; /* Mantener proporción */
    border-radius: 20px; /* Heredar borde redondeado */
    transition: transform 1s ease;
    display: block; /* Asegurar display block */
}

.about-image:hover img {
    transform: scale(1.05); /* Efecto zoom suave */
}

/* Nota: La animación fadeInUp está en base.css */ 