@font-face {
    font-family: 'Against';
    src: url('against regular.ttf') format('truetype');
    /* Cargando fuente local subida por el usuario */
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #FBAED2;
    /* El color solicitado por el usuario */
    --accent-color: #D34C84;
    /* Rosa más oscuro para contrastar el texto */
    --bg-color: #FFFFFF;
    --text-main: #333333;
    --text-muted: #999999;

    --font-heading: 'Against', system-ui, sans-serif;
    --font-body: 'Outfit', sans-serif;

    --radius-huge: 80px;
    --radius-large: 40px;
    --radius-pill: 50px;
    --radius-small: 20px;
}

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

body {
    background-color: var(--primary-color);
    font-family: var(--font-body);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    /* añadido más espacio superior y lados ligeramente equilibrados */
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* El contenedor principal */
.frame {
    background-color: var(--bg-color);
    width: 100%;
    max-width: 1400px;
    min-height: calc(100vh - 4.5rem);
    /* coincide con el padding añadido en el body */
    border-radius: var(--radius-large);
    padding: 2.5rem;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Grid/Flex de la Cabecera */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: sticky;
    top: 1rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo-box {
    background-color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-box .icon {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.8rem;
    color: #ffffff;
    text-shadow: 0px 3px 5px rgba(0,0,0,0.3);
    line-height: 1; /* Asegura que no estire el contenedor */
}

.pill-menu {
    background-color: #f7f7f7;
    border-radius: var(--radius-pill);
    padding: 5px;
    display: flex;
    gap: 10px;
}

.pill-menu a {
    text-decoration: none;
    color: var(--accent-color);
    padding: 10px 25px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    transition: all 0.3s ease;
}

.pill-menu a.active,
.pill-menu a:hover {
    background-color: var(--primary-color);
    color: #92224d;
}

.contact-info {
    text-align: right;
    color: var(--accent-color);
}

.contact-info span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-info small {
    color: var(--text-muted);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent-color);
    padding: 0.5rem;
}

.menu-toggle svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Diseño de Grid Principal */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 2rem;
}

/* Estilos de Tipografía para los Encabezados */
.section-heading {
    font-family: var(--font-heading);
    color: var(--accent-color);
    line-height: 1.1;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.main-page-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Bloque de Avatar */
.avatar-block {
    grid-column: 1 / 5;
    /* 4 columnas de ancho */
    grid-row: 1 / 2;
    border-radius: var(--radius-large);
    overflow: hidden;
    position: relative;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.15);
    height: 500px;
    /* Casi cuadrada */
    margin-right: -6.5rem;
    /* Aumentado a un solapamiento visual mayor (~8%) */
    z-index: 10;
}

.avatar-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.avatar-block:hover .avatar-img {
    transform: scale(1.05);
    /* zoom sutil */
}

.avatar-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem 2.5rem 2rem;
    background: linear-gradient(to top, #FBAED2 0%, rgba(255, 255, 255, 0) 100%);
    color: white;
}

/* Sección Ocupando Varias Columnas (Hero) */
.hero-block {
    grid-column: 5 / 13;
    grid-row: 1 / 3;
    position: relative;
    border-radius: 40px 40px 120px 120px;
    overflow: hidden;
    height: 100%;
    /* El hero tomará la altura exacta de (avatar + botones) */
    min-height: 550px;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-block:hover .hero-img {
    transform: scale(1.05);
}

.hero-text-overlay {
    position: absolute;
    top: 40px;
    right: 40px;
    text-align: right;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-text-overlay:hover {
    transform: scale(1.05);
}

.hero-text-overlay .title {
    font-family: var(--font-heading);
    font-size: 4rem;
    letter-spacing: 2px;
}

.hero-text-overlay .subtitle {
    font-size: 1.2rem;
    font-weight: 500;
}

.description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Bloque de Servicios */
.services-block {
    grid-column: 1 / 5;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 1.5rem;
    padding-top: 1rem;
}

.icon-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.icon-btn:hover {
    transform: translateY(-5px);
}

.icon-btn .circle-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #92224d;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.icon-btn:hover .circle-icon {
    background-color: var(--accent-color);
    color: white;
}

.icon-btn .btn-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.small-heading {
    font-size: 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #92224d;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
}

/* Lista de Noticias */
.news-block {
    grid-column: 8 / 13;
    grid-row: 3 / 4;
    display: flex;
    flex-direction: column;
}

.news-heading {
    font-family: var(--font-heading);
    color: var(--accent-color);
    line-height: 1.1;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: right;
}

.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem;
    border-radius: var(--radius-small);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-item:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(251, 174, 210, 0.4);
    border-bottom-color: transparent;
}

.news-item img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-small);
    object-fit: cover;
}

.news-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-item strong {
    color: var(--text-main);
    transition: color 0.3s ease;
}

.news-item:hover p,
.news-item:hover strong {
    color: white;
}

/* Banner Inline */
.banner-block {
    grid-column: 1 / 8;
    grid-row: 3 / 4;
    border-radius: 64px;
    position: relative;
    min-height: 331px;
    display: block;
    overflow: hidden;
    cursor: pointer;
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
}

.banner-block:hover .banner-img {
    filter: blur(8px);
}

.banner-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: background 0.4s ease;
}

.banner-block:hover .banner-text-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.banner-text {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    text-align: center;
    letter-spacing: 2px;
    z-index: 3;
    transition: transform 0.4s ease;
    max-width: 90%; /* Evita que toque los bordes del banner */
    line-height: 1.1;
}

.banner-block:hover .banner-text {
    transform: scale(1.1);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.frame {
    animation: fadeIn 0.8s ease-out;
}

/* Diseño de la Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-large);
    overflow: hidden;
    aspect-ratio: 1;
    /* Los hace cuadrados */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Diseño de Contacto */
.contact-container {
    max-width: 600px;
    margin: 2rem auto 0;
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: var(--radius-large);
    border: 3px solid var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border-radius: var(--radius-small);
    border: 2px solid #EEE;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23333333%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E') no-repeat right 1rem center / 1.2rem;
    padding-right: 3rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(251, 174, 210, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Estilos de Modales (Popups) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    /* Más opaco para mejor enfoque */
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* flex-start evita recortes en el top al hacer scroll */
    padding: 4vh 1.5rem;
    /* poco de margen extra superior e inferior para el scroll global */
    overflow-y: auto;
    z-index: 999999;
    /* Asegura estar por encima de TODO */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Simplificado para Técnicas */
#modal-technique-detail .modal-box {
    padding: 30px;
    background: white;
    border-radius: var(--radius-large);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
}

#modal-technique-detail .technique-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-small);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

#modal-technique-detail .technique-info {
    margin-top: 1.5rem;
    text-align: center;
    width: 100%;
}

#modal-technique-detail .technique-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
    line-height: 1.1;
}

#modal-technique-detail .technique-name {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

/* Botones externos de navegación del Modal */
.modal-outside-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.modal-outside-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.modal-outside-btn.prev {
    left: calc(50% - 500px);
}

.modal-outside-btn.next {
    right: calc(50% - 500px);
}

.modal-box {
    background: var(--bg-color);
    width: fit-content;
    min-width: min(90vw, 500px); /* Asegura un ancho mínimo para evitar overlaps */
    max-width: min(95vw, 850px);
    padding: 50px 40px 40px 40px; /* Aumentado el padding superior para la X */
    border-radius: var(--radius-large);
    position: relative;
    margin: auto;
    /* margin: auto empuja y auto-centra si hay flex-start padre */
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: visible;
    /* Restaurado a visible; ahora escrolea toda la página, no este contenido */
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    /* Reducido un poco */
    line-height: 1.1;
    flex-shrink: 0;
}

.modal-body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* Carrusel Interfaz y Diseño */
.carousel-container {
    position: relative;
    align-self: center;
    /* Evita que el contenedor se estire al ancho del texto del modal */
    margin: 0 auto 1.5rem auto;
    border-radius: var(--radius-large);
    background: #f7f7f7;
    padding: 15px;
    /* Padding siempre fijo */
    display: inline-block;
    /* Envuelve estrictamente su contenido */
}

.carousel-track {
    display: block;
    text-align: center;
}

.carousel-track img {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-small);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

/* Botones flotantes (iconos < y >) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: var(--text-main);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* Footer Global */
.site-footer {
    text-align: center;
    padding: 2rem 1rem 0 1rem;
    margin-top: 3rem;
    border-top: 2px #FBAED2;

}

.site-footer .footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.site-footer .footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-footer .footer-links a:hover {
    color: var(--text-main);
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.carousel-caption {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
    display: none; /* Se activa por JS si hay texto */
}

/* Puntos indicadores estilo píldora */
.carousel-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: #DDD;
    transition: background 0.3s ease, width 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-color);
    width: 28px;
    /* Se estira estilo píldora para notar el progreso */
}

/* Consultas de Diseño Responsivo */
@media (max-width: 900px) {
    .grid-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
    }

    .minibio-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-info {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }

    .pill-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 10px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        padding: 1.5rem;
        border-radius: var(--radius-large);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    .pill-menu.open {
        display: flex;
    }

    .pill-menu a {
        padding: 15px;
        text-align: center;
        font-size: 1.2rem;
    }

    .avatar-block,
    .hero-block,
    .services-block,
    .banner-block,
    .news-block {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    /* Restaurar Avatar */
    .avatar-block {
        margin-right: 0;
        height: auto;
        min-height: 480px;
    }

    /* Restaurar Hero */
    .hero-block {
        height: 400px;
        min-height: 400px;
        border-radius: var(--radius-large);
        /* Quita el mega-borde para móvil/tablet para mejor encaje */
    }

    .hero-text-overlay {
        top: 20px;
        bottom: auto;
        right: 20px;
    }

    /* Alinear Botones Horizontalmente */
    .services-block {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        /* por si la pantalla es muy pequeña */
        padding-top: 1rem;
    }

    .services-block .btn-primary {
        min-width: 120px;
        padding: 0.8rem 1.5rem;
    }

    /* Alinear Noticias al Centro */
    .news-block {
        align-items: center;
    }

    .news-heading {
        text-align: center;
    }

    .top-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .pill-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Ajustes Tipográficos Mitad de Pantalla (Tablet) */
    .banner-text {
        font-size: clamp(1.8rem, 8vw, 3rem);
        /* Tamaño fluido para que nunca desborde */
    }

    .main-page-title {
        font-size: 2.9rem;
        /* Justo para mantener "Porfolio: Alexeira" en una sola línea */
        text-align: center;
    }
}

/* Consultas Flexibles para Teléfonos Móviles Pequeños */
@media (max-width: 550px) {
    body {
        padding: 1rem 0;
    }

    .frame {
        border-radius: 30px;
        padding: 1.5rem 1rem;
        min-height: calc(100vh - 2rem);
    }

    .top-bar {
        margin-bottom: 1rem;
        padding: 0.5rem;
        top: 0.5rem;
    }

    .logo-box {
        width: 45px;
        height: 45px;
    }

    .logo-box .icon {
        font-size: 1.3rem; /* Tamaño reducido para el círculo pequeño */
    }

    .menu-toggle svg {
        width: 28px;
        height: 28px;
    }

    .main-page-title {
        font-size: clamp(1.2rem, 7vw, 2.4rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .avatar-block {
        min-height: auto;
        height: auto;
        aspect-ratio: 1;
    }

    .banner-text {
        font-size: 2.5rem;
    }
}

/* Protección Global de Imágenes contra Robos */
img {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

/* El carrusel de proyectos ahora muestra las imágenes completas */
.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* CRÍTICO: No recorta la imagen */
    display: block;
    background-color: #f7f7f7;
}