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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* TEXTOS LARGOS JUSTIFICADOS */
.hero-right p,
.column p,
.card-text p,
.education-text p,
.university-text p {
    text-align: justify;
    text-justify: inter-word;
}

/* =========================================== */
/* MODAL OVERLAY - ESTILOS COMPLETOS */
/* =========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    align-items: flex-start;
    justify-content: center;
}

body.modal-open {
    overflow: hidden;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    margin-top: 20px;
    margin-bottom: 20px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 40px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #ff4757;
}

#sobre-mi-content {
    width: 100%;
}

/* =========================================== */
/* HEADER - VERSIÓN CON TEXTO COMPLETO */
/* =========================================== */
header {
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 300px; /* Espacio mínimo para el logo */
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.logo {
    width: 80px;
    height: 80px;
    background: white;
    border: 3px solid #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #1e90ff;
    flex-shrink: 0; /* No se reduce */
}

.tagline {
    color: white;
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
    overflow: visible; /* Cambiado de hidden a visible */
    text-overflow: clip; /* Cambiado de ellipsis a clip */
    max-width: none; /* Sin límite de ancho */
    display: inline-block;
}

nav {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap; /* Evita que los botones se envuelvan */
    justify-content: flex-end;
    flex: 1;
}

nav button {
    background: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    flex-shrink: 0; /* Los botones no se reducen */
}

nav button:hover {
    background: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* =========================================== */
/* BANNER CARRUSEL - VERSIÓN CORREGIDA */
/* =========================================== */
.carousel-wrapper {
    width: 100%;
    background-color: #2f5d7c;
    padding: 3px 0;
}

.carousel {
    display: flex;
    align-items: center;
    padding: 0 50px;
    color: white;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* Flechas FIJAS - posición absoluta */
.carousel-btn {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    transition: opacity 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-btn:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Flecha izquierda FIJA */
.prev-btn {
    left: 0;
}

/* Flecha derecha FIJA */
.next-btn {
    right: 0;
}

/* Contenedor del carrusel - ocupa todo el espacio entre flechas */
.carousel-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    margin: 0 60px; /* Espacio para las flechas */
}

/* Track para las frases */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    position: relative;
}

/* Cada frase del carrusel */
.carousel-item {
    min-width: 100%;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    position: absolute;
    transition: opacity 0.5s ease-in-out;
    padding: 0 20px;
    box-sizing: border-box;
    left: 0;
    top: 0;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
}

/* Asegurar que el texto más largo no desborde */
.carousel-item {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================== */
/* HERO SECTION CON IMAGEN REAL - ACTUALIZADO */
/* =========================================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.hero-left {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSd-CsSmpcRC2m4jlIBSUPXz7ZYRZySFBqM9Q&s');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 3/4;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.profile-image:hover .profile-photo {
    transform: scale(1.03);
}

/* Marco decorativo opcional */
.profile-image::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    z-index: 2;
    pointer-events: none;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.1) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-right {
    background:
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url('https://en.cayetano.edu.pe/wp-content/uploads/sites/57/2023/02/cayetanofachada.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-right h1 {
    font-size: 50px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-right p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-primary {
    background: white;
    color: #333;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* =========================================== */
/* THREE COLUMN SECTION */
/* =========================================== */
.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.column {
    padding: 60px 40px;
    color: white;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.column-blue {
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
}

.column-dark {
    background:
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url('https://www.mtp.es/wp-content/uploads/2019/12/Gestio%CC%81n%20de%20proyectos-1200x900.jpg');
    background-size: cover;
    background-position: center;
}

.column-purple {
    background:
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url('https://thumbs.dreamstime.com/b/explorar-la-lupa-de-curiosidad-sobre-los-signos-interrogaci%C3%B3n-estudio-establecer-im%C3%A1genes-conceptuales-cerrar-vista-tema-380984017.jpg');
    background-size: cover;
    background-position: center;
}

.column h2 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.column p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.column .email-form {
    display: flex;
    gap: 0;
    margin-top: 20px;
}

.column .email-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 14px;
    background: rgba(255,255,255,0.9);
}

.column .email-form button {
    padding: 12px 30px;
    background: #000;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.column .email-form button:hover {
    background: #333;
}

/* =========================================== */
/* EDUCATION SECTION */
/* =========================================== */
.education {
    padding: 60px 30px;
    background: linear-gradient(135deg, #1e90ff 0%, #667eea 100%);
}

.education-title {
    text-align: center;
    background: white;
    display: inline-block;
    padding: 20px 60px;
    margin: 0 auto 60px;
    font-size: 36px;
    font-weight: bold;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.education-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.education-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background: white;
    border: 4px solid white;
    overflow: hidden;
    min-height: 300px;
}

.card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 300px;
    max-height: 300px;
}

.beca-logo {
    background: linear-gradient(135deg, #00d4ff 0%, #667eea 100%);
}

.university-image {
    background: linear-gradient(135deg, #a8b5ff 0%, #e8b5ff 100%);
    padding: 0;
}

.university-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beca-circle {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #00d4ff;
}

.card-text {
    color: white;
    padding: 40px;
    display: flex;
    align-items: center;
}

.education-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.university-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-text p {
    font-size: 18px;
    line-height: 1.8;
}

/* =========================================== */
/* QUICK LINKS SECTION - CON ICONOS REALES */
/* =========================================== */
.quick-links-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 50px;
    text-align: center;
}

.quick-links-title {
    font-size: 36px;
    color: white;
    font-weight: bold;
    margin-bottom: 15px;
}

.quick-links-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 500;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    color: inherit;
}

.social-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Iconos específicos para cada red social */
.social-icon .fa-github {
    font-size: 38px;
}

.social-icon .fa-facebook {
    font-size: 38px;
}

.social-icon .fa-instagram {
    font-size: 38px;
}

.social-icon .fa-tiktok {
    font-size: 38px;
}

/* =========================================== */
/* FOOTER SECTION */
/* =========================================== */
.footer-section {
    background: #2c3e50;
    color: white;
    padding: 60px 50px 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto 40px;
    align-items: start;
}

/* Lado izquierdo - Blog y formulario */
.footer-left h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1e90ff;
    font-weight: bold;
    line-height: 1.3;
}

.blog-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.blog-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.blog-title {
    font-size: 20px;
    color: #fff;
    line-height: 1.4;
}

.blog-title strong {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.blog-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    color: #fff;
    font-weight: bold;
}

.form-group input {
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #1e90ff;
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-button {
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30, 144, 255, 0.3);
}

/* Lado derecho - Enlaces */
.footer-right {
    display: flex;
    justify-content: center;
}

.links-column {
    display: flex;
    flex-direction: column;
}

.links-list {
    list-style: none;
    padding: 0;
}

.links-list li {
    margin-bottom: 15px;
    font-size: 16px;
    color: #ccc;
    transition: color 0.3s;
    cursor: pointer;
    padding: 5px 0;
}

.links-list li:hover {
    color: #1e90ff;
}

.links-list li strong {
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(30, 144, 255, 0.5);
}

/* Copyright */
.footer-copyright {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================== */
/* SOCIAL SIDEBAR */
/* =========================================== */
.social-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-sidebar a {
    width: 50px;
    height: 50px;
    background: rgba(103, 58, 183, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-sidebar a:hover {
    transform: scale(1.1);
    background: rgba(103, 58, 183, 1);
}

.social-sidebar .fab {
    font-size: 22px;
}

/* =========================================== */
/* RESPONSIVE DESIGN PARA HEADER */
/* =========================================== */

/* Para pantallas grandes (más de 1200px) */
@media (min-width: 1201px) {
    .logo-section {
        min-width: 350px;
    }
}

/* Para pantallas medianas (1024px - 1200px) */
@media (max-width: 1200px) and (min-width: 1025px) {
    header {
        padding: 20px 40px;
    }

    .logo-section {
        min-width: 280px;
    }

    .tagline {
        font-size: 18px;
    }

    nav button {
        padding: 10px 20px;
        font-size: 15px;
    }
}

/* Para tablets (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    header {
        padding: 15px 30px;
        flex-wrap: wrap; /* Permite que se envuelva si es necesario */
    }

    .logo-section {
        min-width: 250px;
        margin-bottom: 10px;
        flex: 0 0 100%; /* Ocupa todo el ancho primero */
    }

    .tagline {
        font-size: 16px;
        white-space: normal; /* Permite 2 líneas si es necesario */
        max-width: 200px;
    }

    nav {
        flex: 0 0 100%;
        justify-content: center;
        gap: 10px;
    }

    nav button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Para móviles grandes (576px - 768px) */
@media (max-width: 768px) and (min-width: 577px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .logo-section {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .logo-link {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .tagline {
        font-size: 16px;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    nav button {
        padding: 8px 15px;
        font-size: 13px;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

/* Para móviles pequeños (hasta 576px) */
@media (max-width: 576px) {
    header {
        padding: 12px 15px;
        gap: 12px;
    }

    .logo-link {
        flex-direction: column;
        gap: 8px;
    }

    .logo {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .tagline {
        font-size: 14px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    nav {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: space-between;
    }

    nav button {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1 0 calc(50% - 6px); /* 2 botones por fila */
        margin-bottom: 6px;
    }

    /* Los últimos 2 botones no tienen margen inferior */
    nav button:nth-last-child(-n+2) {
        margin-bottom: 0;
    }
}

/* Para pantallas muy pequeñas (hasta 400px) */
@media (max-width: 400px) {
    nav button {
        flex: 1 0 100%; /* 1 botón por fila en móviles muy pequeños */
        margin-bottom: 8px;
    }

    nav button:last-child {
        margin-bottom: 0;
    }
}

/* =========================================== */
/* RESPONSIVE DESIGN GENERAL */
/* =========================================== */
@media (max-width: 1024px) {
    .logo {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }

    .hero-right h1 {
        font-size: 40px;
    }

    .profile-image {
        max-width: 300px;
    }

    .column h2 {
        font-size: 36px;
    }

    .footer-container {
        gap: 50px;
    }

    .footer-left h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .carousel {
        padding: 12px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .carousel-content {
        order: 1;
    }

    .carousel-btn {
        font-size: 24px;
        padding: 5px 10px;
    }

    .carousel-item {
        font-size: 15px;
    }

    /* Hero Section Responsive */
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-left {
        padding: 40px 20px;
        min-height: 400px;
        order: 2;
    }

    .hero-right {
        padding: 50px 30px;
        order: 1;
    }

    .hero-right h1 {
        font-size: 36px;
    }

    .hero-right p {
        font-size: 16px;
    }

    .profile-image {
        max-width: 280px;
    }

    /* Three Columns Responsive */
    .three-columns {
        grid-template-columns: 1fr;
    }

    .column {
        padding: 40px 30px;
        min-height: 300px;
    }

    .column h2 {
        font-size: 32px;
    }

    .column h3 {
        font-size: 18px;
    }

    /* Education Responsive */
    .education {
        padding: 60px 20px;
    }

    .education-title {
        font-size: 28px;
        padding: 15px 30px;
    }

    .education-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .card-image {
        min-height: 250px;
        max-height: 250px;
    }

    .beca-circle {
        width: 150px;
        height: 150px;
        font-size: 36px;
    }

    .university-image img {
        object-fit: cover;
    }

    .card-text {
        padding: 30px;
    }

    .card-text p {
        font-size: 16px;
    }

    /* Quick Links Section Responsive */
    .quick-links-section {
        padding: 40px 20px;
    }

    .quick-links-title {
        font-size: 28px;
    }

    .quick-links-subtitle {
        font-size: 18px;
    }

    .social-icons {
        flex-wrap: wrap;
        gap: 20px;
    }

    .social-icon {
        width: 70px;
        height: 70px;
        font-size: 34px;
    }

    /* Footer Responsive */
    .footer-section {
        padding: 40px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-left h2 {
        font-size: 22px;
    }

    .blog-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .blog-logo {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .blog-title {
        font-size: 18px;
    }

    .blog-title strong {
        font-size: 20px;
    }

    .form-button {
        align-self: stretch;
    }

    /* Social Sidebar Responsive */
    .social-sidebar {
        right: 10px;
        gap: 10px;
    }

    .social-sidebar a {
        width: 45px;
        height: 45px;
    }

    .social-sidebar .fab {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    nav {
        gap: 8px;
    }

    nav button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .carousel {
        padding: 10px 15px;
    }

    .carousel-btn {
        font-size: 20px;
        padding: 4px 8px;
    }

    .carousel-item {
        font-size: 14px;
    }

    /* Hero Section Mobile */
    .hero-left {
        min-height: 350px;
        padding: 30px 15px;
    }

    .hero-right {
        padding: 40px 20px;
    }

    .hero-right h1 {
        font-size: 32px;
    }

    .hero-right p {
        font-size: 15px;
    }

    .profile-image {
        max-width: 250px;
        border-radius: 12px;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 16px;
    }

    /* Three Columns Mobile */
    .column {
        padding: 30px 20px;
    }

    .column h2 {
        font-size: 28px;
    }

    .column p {
        font-size: 15px;
    }

    /* Education Mobile */
    .education-title {
        font-size: 24px;
        padding: 12px 20px;
    }

    .card-image {
        min-height: 200px;
        max-height: 200px;
    }

    .beca-circle {
        width: 120px;
        height: 120px;
        font-size: 28px;
    }

    .university-image img {
        object-fit: cover;
    }

    .card-text p {
        font-size: 15px;
    }

    /* Quick Links Mobile */
    .quick-links-title {
        font-size: 24px;
    }

    .quick-links-subtitle {
        font-size: 16px;
    }

    .social-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    /* Social Sidebar Mobile */
    .social-sidebar {
        right: 5px;
    }

    .social-sidebar a {
        width: 40px;
        height: 40px;
    }

    .social-sidebar .fab {
        font-size: 18px;
    }
}

/* Estilo para botones activos (opcional) */
nav button.active {
    background: rgba(255,255,255,0.6);
    color: #1e90ff;
    font-weight: 600;
}

/* Animación para hover en botones */
nav button {
    position: relative;
    overflow: hidden;
}

nav button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

nav button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}
