/* Centrado de imagen y h4 en skill-item */
.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.skill-item img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.skill-item h4 {
    text-align: center;
    width: 100%;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Sección Hero - Pantalla completa */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
}

/* Contenedor principal */
.main-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: white;
    margin: 0 auto;
}

/* Contenedor de imagen de perfil */
.profile-image-container {
    flex: 0 0 25%;
    margin-left: 5%;
    display: flex;
    justify-content: center;
    align-self: stretch;
}

.profile-image-main {
    width: 100%;
    height: 100%;
    max-width: 350px;
    object-fit: cover;
    box-shadow: 29px 26px 50px 12px rgba(0,0,0,0.75) inset;
    border-radius: 5%;
}

/* Contenido principal */
.main-content {
    flex: 1;
    margin-right: 5%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Texto de presentación */
.presentation-text {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.presentation-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.presentation-text h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ffffff, #e0e0e0, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

/* Contenedor de cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Estilo de las cards */
.nav-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 0 rgba(255, 255, 255, 0.1),
                0 15px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    transform: translateY(-4px);
    min-height: 120px;
}

.nav-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 0 rgba(255, 255, 255, 0.15),
                0 20px 30px rgba(0, 0, 0, 0.4);
}

.nav-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(255, 255, 255, 0.2),
                0 8px 15px rgba(0, 0, 0, 0.3);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}

.card-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.3rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.card-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-arrow {
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Secciones adicionales */
.quick-access-section {
    min-height: 10vh;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.about-section {
    min-height: 100vh;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 47, 47, 0.8), rgba(46, 196, 182, 0.1));
}

.nav-card:hover .card-arrow {
    transform: translateY(5px);
}

.logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
}

.img-mia-container {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.img-mia-container img {
    max-width: 250px;
    box-shadow: 29px 26px 50px 12px rgba(0,0,0,0.75) inset;
    
    border-radius: 5%;
}

.message {
    font-size: 1.2rem;
    color: white;
    margin: 1.5rem 0;
    line-height: 1.4;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background-color: #e5ca10;
    border: 5px solid #3b2f2f;
    border-radius: 25%;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-button svg {
    width: 48px;
    height: 48px;
    fill: #3b2f2f;
}

/* Animación sutil */
.container {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === ANIMATED BACKGROUND === */
@keyframes move {
    100% {
        transform: translate3d(0, 0, 1px) rotate(360deg);
    }
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: #3b2f2f;
    overflow: hidden;
    z-index: -1; /* Mantiene el background detrás de todo el contenido */
}

.background span {
    width: 20vmin;
    height: 20vmin;
    border-radius: 20vmin;
    backface-visibility: hidden;
    position: absolute;
    animation: move;
    animation-duration: 45s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.background span:nth-child(0) {
    color: #2ec4b6;
    top: 21%;
    left: 1%;
    animation-duration: 9s;
    animation-delay: -17s;
    transform-origin: -18vw 4vh;
    box-shadow: 40vmin 0 5.976659212450105vmin currentColor;
}

.background span:nth-child(1) {
    color: #2ec4b6;
    top: 34%;
    left: 17%;
    animation-duration: 15s;
    animation-delay: -9s;
    transform-origin: 5vw 5vh;
    box-shadow: 40vmin 0 5.174333593070069vmin currentColor;
}

.background span:nth-child(2) {
    color: #3b2f2f;
    top: 30%;
    left: 4%;
    animation-duration: 36s;
    animation-delay: -32s;
    transform-origin: 14vw 7vh;
    box-shadow: -40vmin 0 5.819135135632246vmin currentColor;
}

.background span:nth-child(3) {
    color: #e5ca10;
    top: 79%;
    left: 72%;
    animation-duration: 7s;
    animation-delay: -25s;
    transform-origin: -16vw -11vh;
    box-shadow: -40vmin 0 5.804983691742142vmin currentColor;
}

.background span:nth-child(4) {
    color: #2ec4b6;
    top: 64%;
    left: 12%;
    animation-duration: 12s;
    animation-delay: -16s;
    transform-origin: 12vw 15vh;
    box-shadow: 40vmin 0 5.233968768719794vmin currentColor;
}

.background span:nth-child(5) {
    color: #e5ca10;
    top: 24%;
    left: 63%;
    animation-duration: 45s;
    animation-delay: -30s;
    transform-origin: 12vw 23vh;
    box-shadow: 40vmin 0 5.783440414194788vmin currentColor;
}

.background span:nth-child(6) {
    color: #e5ca10;
    top: 6%;
    left: 98%;
    animation-duration: 42s;
    animation-delay: -16s;
    transform-origin: -3vw 12vh;
    box-shadow: -40vmin 0 5.350030607098272vmin currentColor;
}

.background span:nth-child(7) {
    color: #e5ca10;
    top: 81%;
    left: 6%;
    animation-duration: 10s;
    animation-delay: -34s;
    transform-origin: -15vw 19vh;
    box-shadow: 40vmin 0 5.716530713756946vmin currentColor;
}

.background span:nth-child(8) {
    color: #2ec4b6;
    top: 89%;
    left: 60%;
    animation-duration: 48s;
    animation-delay: -33s;
    transform-origin: -21vw -19vh;
    box-shadow: -40vmin 0 5.874020319095736vmin currentColor;
}

.background span:nth-child(9) {
    color: #e5ca10;
    top: 23%;
    left: 6%;
    animation-duration: 12s;
    animation-delay: -22s;
    transform-origin: -18vw 25vh;
    box-shadow: 40vmin 0 5.859075309944119vmin currentColor;
}

.background span:nth-child(10) {
    color: #3b2f2f;
    top: 18%;
    left: 16%;
    animation-duration: 36s;
    animation-delay: -44s;
    transform-origin: 22vw -7vh;
    box-shadow: 40vmin 0 5.592968480135222vmin currentColor;
}

.background span:nth-child(11) {
    color: #e5ca10;
    top: 84%;
    left: 89%;
    animation-duration: 42s;
    animation-delay: -12s;
    transform-origin: 24vw -13vh;
    box-shadow: -40vmin 0 5.384715638291995vmin currentColor;
}

.background span:nth-child(12) {
    color: #2ec4b6;
    top: 49%;
    left: 20%;
    animation-duration: 27s;
    animation-delay: -22s;
    transform-origin: 1vw 25vh;
    box-shadow: 40vmin 0 5.147495073445601vmin currentColor;
}

.background span:nth-child(13) {
    color: #2ec4b6;
    top: 24%;
    left: 59%;
    animation-duration: 35s;
    animation-delay: -9s;
    transform-origin: -21vw -2vh;
    box-shadow: 40vmin 0 5.299281620117536vmin currentColor;
}

.background span:nth-child(14) {
    color: #3b2f2f;
    top: 75%;
    left: 42%;
    animation-duration: 35s;
    animation-delay: -7s;
    transform-origin: 17vw 2vh;
    box-shadow: 40vmin 0 5.590064258794837vmin currentColor;
}

.background span:nth-child(15) {
    color: #3b2f2f;
    top: 3%;
    left: 71%;
    animation-duration: 15s;
    animation-delay: -1s;
    transform-origin: 10vw 15vh;
    box-shadow: -40vmin 0 5.9460453426394935vmin currentColor;
}

.background span:nth-child(16) {
    color: #3b2f2f;
    top: 94%;
    left: 73%;
    animation-duration: 19s;
    animation-delay: -28s;
    transform-origin: 17vw 0vh;
    box-shadow: 40vmin 0 5.378797267163699vmin currentColor;
}

.background span:nth-child(17) {
    color: #e5ca10;
    top: 82%;
    left: 14%;
    animation-duration: 40s;
    animation-delay: -45s;
    transform-origin: 6vw 19vh;
    box-shadow: -40vmin 0 5.989990494314898vmin currentColor;
}

.background span:nth-child(18) {
    color: #2ec4b6;
    top: 41%;
    left: 42%;
    animation-duration: 51s;
    animation-delay: -20s;
    transform-origin: 22vw -16vh;
    box-shadow: 40vmin 0 5.371020152695612vmin currentColor;
}

.background span:nth-child(19) {
    color: #3b2f2f;
    top: 84%;
    left: 44%;
    animation-duration: 12s;
    animation-delay: -44s;
    transform-origin: -18vw -18vh;
    box-shadow: -40vmin 0 5.778370472162641vmin currentColor;
}

.background span:nth-child(20) {
    color: #e5ca10;
    top: 78%;
    left: 95%;
    animation-duration: 6s;
    animation-delay: -34s;
    transform-origin: -20vw -15vh;
    box-shadow: 40vmin 0 5.805963505717828vmin currentColor;
}

.background span:nth-child(21) {
    color: #3b2f2f;
    top: 75%;
    left: 28%;
    animation-duration: 13s;
    animation-delay: -7s;
    transform-origin: -4vw 3vh;
    box-shadow: 40vmin 0 5.672561084814334vmin currentColor;
}

.background span:nth-child(22) {
    color: #3b2f2f;
    top: 10%;
    left: 81%;
    animation-duration: 54s;
    animation-delay: -24s;
    transform-origin: 21vw -16vh;
    box-shadow: 40vmin 0 5.308000986768154vmin currentColor;
}

.background span:nth-child(23) {
    color: #e5ca10;
    top: 58%;
    left: 8%;
    animation-duration: 44s;
    animation-delay: -6s;
    transform-origin: -10vw -11vh;
    box-shadow: 40vmin 0 5.668232039507935vmin currentColor;
}

.background span:nth-child(24) {
    color: #e5ca10;
    top: 96%;
    left: 94%;
    animation-duration: 32s;
    animation-delay: -30s;
    transform-origin: 7vw -20vh;
    box-shadow: -40vmin 0 5.247092199499722vmin currentColor;
}

.background span:nth-child(25) {
    color: #2ec4b6;
    top: 16%;
    left: 78%;
    animation-duration: 26s;
    animation-delay: -40s;
    transform-origin: -17vw -20vh;
    box-shadow: 40vmin 0 5.820716485966987vmin currentColor;
}

.background span:nth-child(26) {
    color: #3b2f2f;
    top: 7%;
    left: 9%;
    animation-duration: 15s;
    animation-delay: -10s;
    transform-origin: -22vw -21vh;
    box-shadow: 40vmin 0 5.983865008242552vmin currentColor;
}

.background span:nth-child(27) {
    color: #3b2f2f;
    top: 79%;
    left: 20%;
    animation-duration: 47s;
    animation-delay: -28s;
    transform-origin: 12vw -4vh;
    box-shadow: -40vmin 0 5.471632799610609vmin currentColor;
}

.background span:nth-child(28) {
    color: #2ec4b6;
    top: 3%;
    left: 16%;
    animation-duration: 55s;
    animation-delay: -33s;
    transform-origin: -6vw -4vh;
    box-shadow: 40vmin 0 5.729227846790118vmin currentColor;
}

.background span:nth-child(29) {
    color: #3b2f2f;
    top: 64%;
    left: 89%;
    animation-duration: 29s;
    animation-delay: -17s;
    transform-origin: -8vw 9vh;
    box-shadow: 40vmin 0 5.667446413685781vmin currentColor;
}

.background span:nth-child(30) {
    color: #3b2f2f;
    top: 22%;
    left: 68%;
    animation-duration: 7s;
    animation-delay: -6s;
    transform-origin: 8vw -8vh;
    box-shadow: 40vmin 0 5.628687776755571vmin currentColor;
}

.background span:nth-child(31) {
    color: #2ec4b6;
    top: 19%;
    left: 60%;
    animation-duration: 28s;
    animation-delay: -20s;
    transform-origin: -23vw -21vh;
    box-shadow: 40vmin 0 5.053820501033762vmin currentColor;
}

.background span:nth-child(32) {
    color: #3b2f2f;
    top: 23%;
    left: 46%;
    animation-duration: 45s;
    animation-delay: -33s;
    transform-origin: 11vw -20vh;
    box-shadow: 40vmin 0 5.661593085042887vmin currentColor;
}

.background span:nth-child(33) {
    color: #3b2f2f;
    top: 24%;
    left: 84%;
    animation-duration: 44s;
    animation-delay: -38s;
    transform-origin: -18vw 20vh;
    box-shadow: -40vmin 0 5.69192891815256vmin currentColor;
}

.background span:nth-child(34) {
    color: #2ec4b6;
    top: 2%;
    left: 89%;
    animation-duration: 49s;
    animation-delay: -36s;
    transform-origin: -3vw 22vh;
    box-shadow: -40vmin 0 5.851197872040115vmin currentColor;
}

.background span:nth-child(35) {
    color: #e5ca10;
    top: 61%;
    left: 51%;
    animation-duration: 51s;
    animation-delay: -30s;
    transform-origin: 1vw 23vh;
    box-shadow: -40vmin 0 5.356156131859104vmin currentColor;
}

.background span:nth-child(36) {
    color: #e5ca10;
    top: 74%;
    left: 7%;
    animation-duration: 15s;
    animation-delay: -10s;
    transform-origin: -8vw 8vh;
    box-shadow: 40vmin 0 5.186175925018462vmin currentColor;
}

.background span:nth-child(37) {
    color: #e5ca10;
    top: 65%;
    left: 52%;
    animation-duration: 17s;
    animation-delay: -36s;
    transform-origin: -24vw 10vh;
    box-shadow: 40vmin 0 5.701804412955245vmin currentColor;
}

.background span:nth-child(38) {
    color: #e5ca10;
    top: 72%;
    left: 69%;
    animation-duration: 29s;
    animation-delay: -38s;
    transform-origin: -20vw 17vh;
    box-shadow: -40vmin 0 5.724064883638576vmin currentColor;
}

.background span:nth-child(39) {
    color: #3b2f2f;
    top: 29%;
    left: 15%;
    animation-duration: 25s;
    animation-delay: -11s;
    transform-origin: 12vw -2vh;
    box-shadow: 40vmin 0 5.59373192263073vmin currentColor;
}

.background span:nth-child(40) {
    color: #2ec4b6;
    top: 71%;
    left: 92%;
    animation-duration: 27s;
    animation-delay: -11s;
    transform-origin: -9vw 0vh;
    box-shadow: 40vmin 0 5.989456749675214vmin currentColor;
}

.background span:nth-child(41) {
    color: #3b2f2f;
    top: 54%;
    left: 3%;
    animation-duration: 32s;
    animation-delay: -20s;
    transform-origin: 16vw 13vh;
    box-shadow: -40vmin 0 5.994323007349306vmin currentColor;
}

.background span:nth-child(42) {
    color: #2ec4b6;
    top: 13%;
    left: 85%;
    animation-duration: 48s;
    animation-delay: -47s;
    transform-origin: -16vw -16vh;
    box-shadow: 40vmin 0 5.507933797855582vmin currentColor;
}

.background span:nth-child(43) {
    color: #e5ca10;
    top: 55%;
    left: 67%;
    animation-duration: 22s;
    animation-delay: -4s;
    transform-origin: -19vw -21vh;
    box-shadow: -40vmin 0 5.374341766467132vmin currentColor;
}

.background span:nth-child(44) {
    color: #e5ca10;
    top: 93%;
    left: 17%;
    animation-duration: 7s;
    animation-delay: -7s;
    transform-origin: 16vw -6vh;
    box-shadow: -40vmin 0 5.920054493399408vmin currentColor;
}

.background span:nth-child(45) {
    color: #e5ca10;
    top: 23%;
    left: 21%;
    animation-duration: 44s;
    animation-delay: -33s;
    transform-origin: -10vw 15vh;
    box-shadow: 40vmin 0 5.439596052856957vmin currentColor;
}

.background span:nth-child(46) {
    color: #e5ca10;
    top: 31%;
    left: 30%;
    animation-duration: 17s;
    animation-delay: -14s;
    transform-origin: -3vw 10vh;
    box-shadow: 40vmin 0 5.836953650510477vmin currentColor;
}

.background span:nth-child(47) {
    color: #e5ca10;
    top: 7%;
    left: 52%;
    animation-duration: 12s;
    animation-delay: -45s;
    transform-origin: -23vw -12vh;
    box-shadow: -40vmin 0 5.346167258301051vmin currentColor;
}

.background span:nth-child(48) {
    color: #e5ca10;
    top: 46%;
    left: 5%;
    animation-duration: 24s;
    animation-delay: -18s;
    transform-origin: 1vw 10vh;
    box-shadow: 40vmin 0 5.415705712621391vmin currentColor;
}

.background span:nth-child(49) {
    color: #e5ca10;
    top: 46%;
    left: 5%;
    animation-duration: 24s;
    animation-delay: -18s;
    transform-origin: 1vw 10vh;
    box-shadow: 40vmin 0 5.415705712621391vmin currentColor;
}

/* Back navigation button */
.back-navigation {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(229, 202, 16, 0.9);
    color: #3b2f2f;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-btn:hover {
    background: rgba(229, 202, 16, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 202, 16, 0.4);
}

.back-btn i {
    font-size: 0.9rem;
}

/* === CONTACT PAGE STYLES === */
.contact-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 20px;
}

.contact-container {
    max-width: 1400px;
    display: flex;
    align-items: stretch;
    gap: 3rem;
    padding: 3rem;
    color: white;
}

.contact-section {
    display: flex;
    gap: 3rem;
    width: 100%;
    align-items: stretch;
    justify-content: center;
}

.form-container {
    flex: 1;
    min-width: 500px;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-container h2 {
    color: #e5ca10;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: bold;
}

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

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

.form-group label {
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e5ca10;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(229, 202, 16, 0.3);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.btn-submit {
    background: linear-gradient(135deg, #e5ca10, #d4b50f);
    color: #3b2f2f;
    border: none;
    padding: 14px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    align-self: center;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit i {
    font-size: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 202, 16, 0.4);
    background: linear-gradient(135deg, #f0d015, #e5ca10);
}

.btn-submit:hover i {
    transform: translateX(3px);
}

.btn-submit:active {
    transform: translateY(0);
}

.social-container {
    flex: 0 0 350px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.social-container h2 {
    color: #e5ca10;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 8px 0 rgba(255, 255, 255, 0.1),
                0 15px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    transform: translateY(-4px);
}

.social-link:hover {
    background: rgba(229, 202, 16, 0.2);
    border-color: #e5ca10;
    transform: translateY(-8px);
    box-shadow: 0 12px 0 rgba(255, 255, 255, 0.15),
                0 20px 25px rgba(0, 0, 0, 0.4);
}

.social-link:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(255, 255, 255, 0.2),
                0 8px 15px rgba(0, 0, 0, 0.3);
}

.social-link i {
    font-size: 1.2rem;
    color: #e5ca10;
    width: 20px;
    text-align: center;
}

.cv-download {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #e5ca10, #d4b50f);
    color: #3b2f2f;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 8px 0 rgba(229, 202, 16, 0.6),
                0 15px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.cv-download:hover {
    background: linear-gradient(135deg, #f0d015, #e5ca10);
    transform: translateY(-8px);
    box-shadow: 0 12px 0 rgba(229, 202, 16, 0.8),
                0 20px 25px rgba(0, 0, 0, 0.4);
}

.cv-download:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(229, 202, 16, 0.8),
                0 8px 15px rgba(0, 0, 0, 0.3);
}

.cv-download i {
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border: 1px solid;
}

.alert-success {
    background: rgba(46, 196, 182, 0.2);
    border-color: #2ec4b6;
    color: #2ec4b6;
}

.alert-error {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* Responsive Design for Contact Page */
@media (max-width: 1024px) {
    .contact-container {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        margin-top: 60px;
    }
    
    .contact-section {
        flex-direction: column;
        gap: 2rem;
    }
    
    .social-container {
        flex: none;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 1rem 10px;
    }
    
    .contact-container {
        padding: 1.5rem;
        margin: 1rem 0;
        margin-top: 70px;
    }
    
    .back-navigation {
        position: fixed;
        top: 10px;
        left: 10px;
    }
    
    .back-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .form-container,
    .social-container {
        padding: 1.5rem;
    }
    
    .form-container h2,
    .social-container h2 {
        font-size: 1.5rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 1rem;
    }
    
    .form-container,
    .social-container {
        padding: 1rem;
    }
    
    .btn-submit {
        width: 100%;
        min-width: auto;
    }
    
    .cv-download {
        width: 100%;
        justify-content: center;
    }
}

/* Estilos para la sección de accesos rápidos */
.quick-access-section {
    color: white;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.quick-access-section h2 {
    text-align: center;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #ffffff, #e0e0e0, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.quick-access-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
    max-width: 1200px;
    width: 100%;
}

.quick-access-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 0 rgba(255, 255, 255, 0.1),
                0 15px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    transform: translateY(-4px);
    width: 100%;
    max-width: 350px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.quick-access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.quick-access-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 0 rgba(255, 255, 255, 0.15),
                0 20px 30px rgba(0, 0, 0, 0.4);
}

.quick-access-card:hover::before {
    left: 100%;
}

.quick-access-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(255, 255, 255, 0.2),
                0 8px 15px rgba(0, 0, 0, 0.3);
}

.quick-card-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.quick-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.quick-access-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.8rem 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.quick-access-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Estilos para la sección About */
.about-section .container {
    max-width: 1400px;
    width: 100%;
    padding: 2rem;
    color: white;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 200px;
    height: auto;
    border-radius: 20%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) inset;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-description h2 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #ffffff, #e0e0e0, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.profile-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
    text-align: justify;
}

.skills-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.skills-section h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, #ffffff, #e0e0e0, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skill-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.skill-item h4 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
}

.tech-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* centra verticalmente */
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 100px;
    height: 80px;
    box-sizing: border-box;
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tech-card i {
    font-size: 1.5rem;
}

.tech-card span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.experience-education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.experience-section,
.education-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.experience-section h3,
.education-section h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-section h3 i,
.education-section h3 i {
    color: #2ec4b6;
}

.experience-summary,
.education-summary {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.experience-summary p,
.education-summary p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* ================================ */
/* MEDIA QUERIES PARA RESPONSIVE    */
/* ================================ */

/* Tablets y pantallas medianas (768px - 1024px) */
@media (max-width: 1024px) {
    /* Hero Section */
    .main-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .profile-image-container {
        margin-left: 0;
        flex: 0 0 auto;
    }
    
    .main-content {
        margin-right: 0;
    }
    
    .profile-image-main {
        max-width: 250px;
    }
    
    .presentation-text h1 {
        font-size: 2rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    /* Quick Access */
    .quick-access-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* Contact Page */
    .contact-container {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        margin-top: 60px;
    }
    
    .contact-section {
        flex-direction: column;
        gap: 2rem;
    }
    
    .social-container {
        flex: none;
    }
    
    .form-container {
        min-width: auto;
    }
}

/* Móviles en landscape y tablets pequeños (481px - 767px) */
@media (max-width: 767px) {
    /* Hero Section */
    .hero-section {
        padding: 0 15px;
        height: auto;
        min-height: 100vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .main-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .profile-image-container {
        flex: 0 0 auto;
        order: -1;
    }
    
    .profile-image-main {
        max-width: 200px;
        width: 100%;
    }
    
    .main-content {
        width: 100%;
    }
    
    .presentation-text {
        padding: 2rem 1.5rem;
    }
    
    .presentation-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .presentation-text h2 {
        font-size: 1.2rem;
        margin-top: 0.5rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-card {
        padding: 1.2rem;
        min-height: 100px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .card-text h3 {
        font-size: 1.1rem;
    }
    
    .card-text p {
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        bottom: 15px;
        font-size: 1.5rem;
    }
    
    /* Quick Access Section */
    .quick-access-section {
        padding: 2rem 1rem;
    }
    
    .quick-access-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .quick-access-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .quick-access-card {
        padding: 1.5rem;
        min-height: 160px;
        max-width: 100%;
    }
    
    .quick-card-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .quick-access-card h3 {
        font-size: 1.3rem;
    }
    
    .quick-access-card p {
        font-size: 0.95rem;
    }
    
    /* About Section */
    .about-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .about-section .container {
        padding: 1rem;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .profile-image {
        width: 150px;
        height: auto;
    }
    
    .profile-description h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .profile-description p {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .skills-section {
        padding: 1.5rem;
    }
    
    .skills-section h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-item {
        padding: 1.2rem;
    }
    
    .skill-item h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .tech-card {
        padding: 0.8rem 0.5rem;
        height: 75px;
        width: auto;
    }
    
    .tech-card i {
        font-size: 1.3rem;
    }
    
    .tech-card span {
        font-size: 0.85rem;
    }
    
    .experience-education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .experience-section,
    .education-section {
        padding: 1.5rem;
    }
    
    .experience-section h3,
    .education-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .experience-summary p,
    .education-summary p {
        text-align: center;
        font-size: 0.95rem;
    }
    
    /* Contact Page */
    .contact-page {
        padding: 1rem 10px;
    }
    
    .contact-container {
        padding: 1.5rem;
        margin: 1rem 0;
        margin-top: 70px;
    }
    
    .back-navigation {
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 100;
    }
    
    .back-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .form-container,
    .social-container {
        padding: 1.5rem;
    }
    
    .form-container h2,
    .social-container h2 {
        font-size: 1.5rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    /* Modales */
    .custom-modal .modal-content {
        margin: 10% auto;
        padding: 20px 24px;
        max-width: 90%;
    }
}

/* Móviles pequeños (320px - 480px) */
@media (max-width: 480px) {
    /* Hero Section */
    .hero-section {
        padding: 0 10px;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .main-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .profile-image-main {
        max-width: 160px;
    }
    
    .presentation-text {
        padding: 1.5rem 1rem;
    }
    
    .presentation-text h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .presentation-text h2 {
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    .cards-container {
        gap: 0.8rem;
    }
    
    .nav-card {
        padding: 1rem;
        min-height: 90px;
    }
    
    .card-content {
        gap: 0.8rem;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
    }
    
    .card-text h3 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .card-text p {
        font-size: 0.85rem;
    }
    
    .card-arrow {
        font-size: 1.2rem;
    }
    
    .scroll-indicator {
        bottom: 10px;
        font-size: 1.3rem;
    }
    
    /* Quick Access Section */
    .quick-access-section {
        padding: 1.5rem 0.5rem;
        min-height: auto;
    }
    
    .quick-access-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .quick-access-container {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .quick-access-card {
        padding: 1.2rem;
        min-height: 140px;
    }
    
    .quick-card-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 0.8rem;
    }
    
    .quick-access-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .quick-access-card p {
        font-size: 0.9rem;
    }
    
    /* About Section */
    .about-section .container {
        padding: 0.5rem;
    }
    
    .about-content {
        gap: 1.5rem;
    }
    
    .profile-section {
        padding: 1rem;
        gap: 1rem;
    }
    
    .profile-image {
        width: 120px;
    }
    
    .profile-description h2 {
        font-size: 1.5rem;
    }
    
    .profile-description p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .skills-section {
        padding: 1rem;
    }
    
    .skills-section h3 {
        font-size: 1.4rem;
    }
    
    .skills-grid {
        gap: 1rem;
    }
    
    .skill-item {
        padding: 1rem;
    }
    
    .skill-item img {
        width: 50px;
        height: 50px;
    }
    
    .skill-item h4 {
        font-size: 1.1rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .tech-card {
        padding: 0.6rem 0.4rem;
        height: 70px;
    }
    
    .tech-card i {
        font-size: 1.2rem;
    }
    
    .tech-card span {
        font-size: 0.75rem;
    }
    
    .experience-education-grid {
        gap: 1rem;
    }
    
    .experience-section,
    .education-section {
        padding: 1rem;
    }
    
    .experience-section h3,
    .education-section h3 {
        font-size: 1.2rem;
    }
    
    .experience-summary p,
    .education-summary p {
        font-size: 0.9rem;
    }
    
    .saber-mas-btn {
        font-size: 0.9rem;
        padding: 6px 16px;
    }
    
    /* Contact Page */
    .contact-container {
        padding: 1rem;
    }
    
    .form-container,
    .social-container {
        padding: 1rem;
    }
    
    .form-container h2,
    .social-container h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        gap: 0.4rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .btn-submit {
        width: 100%;
        min-width: auto;
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .social-link {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .social-link i {
        font-size: 1.1rem;
    }
    
    .cv-download {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 0.95rem;
    }
    
    /* Modales */
    .custom-modal .modal-content {
        margin: 15% auto;
        padding: 16px 20px;
        max-width: 95%;
    }
    
    .custom-modal .modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .custom-modal .modal-content ul {
        font-size: 0.9rem;
    }
    
    .custom-modal .modal-content li {
        margin-bottom: 0.5rem;
    }
}

/* Móviles muy pequeños (menos de 360px) */
@media (max-width: 360px) {
    .presentation-text h1 {
        font-size: 1.3rem;
    }
    
    .presentation-text h2 {
        font-size: 0.9rem;
    }
    
    .card-text h3 {
        font-size: 0.9rem;
    }
    
    .card-text p {
        font-size: 0.8rem;
    }
    
    .quick-access-card h3 {
        font-size: 1.1rem;
    }
    
    .quick-access-card p {
        font-size: 0.85rem;
    }
    
    .profile-description h2 {
        font-size: 1.3rem;
    }
    
    .profile-description p {
        font-size: 0.85rem;
    }
    
    .tech-card span {
        font-size: 0.7rem;
    }
}

/* Landscape en móviles */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: auto;
        padding: 1rem 15px;
    }
    
    .main-container {
        flex-direction: row;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .profile-image-container {
        flex: 0 0 30%;
        max-width: 150px;
    }
    
    .profile-image-main {
        max-width: 100%;
    }
    
    .main-content {
        flex: 1;
    }
    
    .presentation-text {
        padding: 1rem;
    }
    
    .presentation-text h1 {
        font-size: 1.3rem;
    }
    
    .presentation-text h2 {
        font-size: 0.9rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .nav-card {
        padding: 0.8rem;
        min-height: 80px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
    }
    
    .card-text h3 {
        font-size: 0.9rem;
    }
    
    .card-text p {
        font-size: 0.8rem;
    }
    
    .scroll-indicator {
        bottom: 10px;
        font-size: 1.2rem;
    }
    
    .quick-access-section {
        padding: 1.5rem 1rem;
    }
    
    .quick-access-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .quick-access-card {
        padding: 1rem;
        min-height: 120px;
    }
    
    .quick-card-logo {
        width: 50px;
        height: 50px;
    }
    
    .quick-access-card h3 {
        font-size: 1rem;
    }
    
    .quick-access-card p {
        font-size: 0.85rem;
    }
    
    .about-section {
        padding: 1.5rem 0;
    }
    
    .profile-section {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    
    .profile-image {
        width: 120px;
    }
    
    .profile-description p {
        text-align: left;
        font-size: 0.85rem;
    }
}

/* Mejoras generales para touch devices */
@media (hover: none) and (pointer: coarse) {
    /* Aumentar área de toque para mejor UX */
    .nav-card,
    .quick-access-card,
    .social-link,
    .btn-submit,
    .back-btn,
    .saber-mas-btn {
        min-height: 44px; /* Recomendación de Apple para área táctil mínima */
    }
    
    /* Eliminar efectos hover en dispositivos táctiles */
    .nav-card:hover,
    .quick-access-card:hover,
    .social-link:hover,
    .tech-card:hover {
        transform: translateY(-4px);
    }
    
    /* Mejorar feedback visual al tocar */
    .nav-card:active,
    .quick-access-card:active {
        transform: translateY(-2px) scale(0.98);
        transition: all 0.1s ease;
    }
    
    .btn-submit:active,
    .back-btn:active,
    .saber-mas-btn:active {
        transform: scale(0.95);
        transition: all 0.1s ease;
    }
}

/* Optimizaciones de rendimiento para móviles */
@media (max-width: 767px) {
    /* Asegurar que el contenido no se corte en móvil */
    body {
        overflow-x: hidden;
        min-height: 100vh;
    }
    
    /* Reducir complejidad de animaciones en móvil */
    .background span {
        animation-duration: 60s; /* Más lento para mejor rendimiento */
    }
    
    /* Simplificar efectos de blur en móviles de gama baja */
    @supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
        .main-container,
        .nav-card,
        .quick-access-card,
        .profile-section,
        .skills-section,
        .social-link {
            backdrop-filter: blur(5px); /* Reducir blur en móvil */
        }
    }
    
    /* Optimizar transiciones en móvil */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Prevenir selección de texto accidental */
    .nav-card,
    .quick-access-card,
    .card-arrow,
    .scroll-indicator {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Mejorar espaciado entre secciones en móvil */
    section {
        margin-bottom: 0;
    }
    
    /* Asegurar que las imágenes no se desborden */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Mejorar legibilidad de texto en móvil */
    p, li {
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Ajustar altura de textarea en móvil */
    .form-group textarea {
        min-height: 100px;
    }
}

/* Estilos específicos para iPhones con notch */
@supports (padding: max(0px)) {
    @media (max-width: 767px) {
        .hero-section {
            padding-left: max(10px, env(safe-area-inset-left));
            padding-right: max(10px, env(safe-area-inset-right));
        }
        
        .back-navigation {
            top: max(10px, env(safe-area-inset-top));
            left: max(10px, env(safe-area-inset-left));
        }
    }
}

/* Mejoras para accesibilidad en móvil */
@media (max-width: 767px) {
    /* Asegurar contraste adecuado */
    .card-text p,
    .quick-access-card p,
    .profile-description p {
        color: rgba(255, 255, 255, 0.95);
    }
    
    /* Mejorar visibilidad de botones */
    .btn-submit,
    .back-btn,
    .saber-mas-btn,
    .cv-download {
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    /* Asegurar que los enlaces sean fáciles de tocar */
    a {
        display: inline-block;
    }
    
    /* Mejorar focus para navegación con teclado en móvil */
    button:focus,
    a:focus,
    input:focus,
    textarea:focus {
        outline: 2px solid #e5ca10;
        outline-offset: 2px;
    }
}