@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900');
@import url('https://fonts.googleapis.com/css?family=Dancing+Script');

/* ===== ESTILOS BASE ===== */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	overflow: hidden;
	overflow-x: hidden;
	overflow-y: hidden;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	-webkit-tap-highlight-color: transparent;
}

body {
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	display: block;
	overflow: hidden;
	overflow-x: hidden;
	overflow-y: hidden;
	height: 100vh;
	min-height: 100vh;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	background: linear-gradient(#0a171d, #000);
	font-family: 'Poppins', sans-serif;
	box-sizing: border-box;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	-webkit-overflow-scrolling: touch;
}

/* ===== SECCIÓN PRESENTACIÓN ===== */
.about-me {
	position: absolute;
	top: 2%;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	color: white;
	z-index: 5;
	max-width: 400px;
	width: auto;
	padding: 20px 25px;
	border-radius: 15px;
	background: rgba(0, 0, 0, 0.3);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	box-sizing: border-box;
	word-wrap: break-word;
	overflow-wrap: break-word;
	overflow: visible;
	overflow-x: visible;
	overflow-y: visible;
}

.about-me h1 {
	font-size: 24px;
	font-weight: bold;
	margin: 10px 0 12px 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.about-me .intro {
	font-size: 14px;
	margin-top: 12px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.8);
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.profile-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
	margin-bottom: 0;
}

.profile-logo {
    position: relative;
    overflow: visible !important;
    cursor: pointer;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-position: center center;
    background-size: cover;
    background-image: url('media/logo.jpg');
    box-shadow: 0 0 0 2px rgba(255,255,255,.1);
    transition: all 0.2s ease-out;
}

.profile-logo:hover {
    opacity: 0.8;
    box-shadow: 0 0 0 5px rgba(255,255,255,.2);
}

.profile-logo::after {
    content: "Ver Portfolio";
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ff6b6b, #ffb347);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 100;
    animation: showPortfolioText 10s infinite;
}

.profile-logo:hover::after {
	opacity: 1 !important;
    visibility: visible !important;
    top: 105% !important;
}

.profile-logo::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: 
        radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%),
        radial-gradient(circle, rgba(255,165,0,0.8) 30%, rgba(255,165,0,0) 75%);
    opacity: 0;
    z-index: -1;
    animation: logoFlash 10s infinite;
    filter: blur(3px);
}

.profile-logo .sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    filter: blur(1px);
    box-shadow: 0 0 10px 2px rgba(255,165,0,0.8);
    z-index: 10;
}

.profile-logo .sparkle:nth-child(1) {
    top: -5px;
    left: 50%;
    animation: sparkle 10s infinite 0.5s;
}

.profile-logo .sparkle:nth-child(2) {
    top: 50%;
    right: -5px;
    animation: sparkle 10s infinite 2s;
}

.profile-logo .sparkle:nth-child(3) {
    bottom: -5px;
    left: 50%;
    animation: sparkle 10s infinite 3.5s;
}

.profile-logo .sparkle:nth-child(4) {
    top: 50%;
    left: -5px;
    animation: sparkle 10s infinite 1.5s;
}

.profile-logo .eye {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
    animation: eyeBlink 10s infinite;
    z-index: 5;
}

/* ===== ANIMACIONES DE LOGO ===== */
@keyframes showPortfolioText {
	0%, 80% { 
		opacity: 0;
		visibility: hidden;
		top: 110%;
	}
	85%, 98% { 
		opacity: 1;
		visibility: visible;
		top: 105%;
	}
	99%, 100% { 
		opacity: 0;
		visibility: hidden;
		top: 110%;
	}
}

@keyframes logoFlash {
    0% { opacity: 0; transform: scale(0.95); }
    20% { opacity: 0.5; transform: scale(1.1); }
    40% { opacity: 0.2; transform: scale(1); }
    60% { opacity: 0.7; transform: scale(1.05); }
    80% { opacity: 0; transform: scale(0.95); }
    80.1%, 100% { opacity: 0; transform: scale(0.95); }
}

@keyframes sparkle {
    0% { opacity: 0; transform: scale(0) translateY(0); }
    15% { opacity: 1; transform: scale(1.2) translateY(-5px); }
    60% { opacity: 0.5; transform: scale(0.8) translateY(-15px); }
    80% { opacity: 0; transform: scale(0) translateY(-20px); }
    80.1%, 100% { opacity: 0; transform: scale(0) translateY(0); }
}

@keyframes eyeBlink {
    0%, 25%, 30%, 80% { transform: translate(-50%, -50%) scaleY(1); }
    28% { transform: translate(-50%, -50%) scaleY(0.1); }
    80.1%, 100% { transform: translate(-50%, -50%) scaleY(1); opacity: 0; }
}

/* ===== ANIMACIÓN DE FUEGO ===== */
.fire-on {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	max-width: 100%;
	max-height: 100%;
	background: linear-gradient(#1d4456, #112630);
	opacity: 1;
	z-index: 2;
	transition: all 1200ms linear;
	margin: 0;
	padding: 0;
}

.name {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    opacity: 1;
    z-index: 2;
    font-size: 4vw;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(to right, rgba(100, 100, 100, 0), rgba(100, 100, 100, 0.2));
	background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 2s ease-in-out;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.name span {
	font-family: 'Dancing Script', cursive;
	font-weight: 400;
}

/* ===== SWITCH ===== */
.switch-wrap {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 200;
    transform: translateX(-50%);
	margin-top: 320px !important;
	transition: all 500ms linear; 
}

#switch,
#circle {
	height: 31px;
	cursor: pointer;
		transition: all 0.4s cubic-bezier(0.54, 1.6, 0.5, 1);
} 

#switch {
	width: 60px;
	margin: 0 auto;
	border: 2px solid #fec22a;
	border-radius: 27px;
	background: #ff9400;
	position: relative;
	display: inline-block;
	margin: 0 20px;
    transform: translateY(10px);
}

#circle {
	margin-top: 5%;
	margin-left: 5%;
	width: 40%;
	height: 80%;
	border-radius: 50%;
	box-shadow: 0 4px 4px rgba(26,53,71,0.25), 0 0 0 1px rgba(26,53,71,0.07);
	background: #e9e5d5;
}

.switched {
	border-color: #777 !important;
	background: #000 !important;
}

.switched #circle {
	margin-left: 55%;
	background: #e9e5d5;
}

/* ===== CONTENEDOR DE ANIMACIÓN ===== */
.animation-container {
	position: absolute;
	top: 75% !important;
	left: 50%;
	transform: translate(-50%, -50%);
	width: auto;
	height: auto;
	max-width: 100vw;
	z-index: 10;
	transform-origin: center center;
	transition: transform 0.3s ease-in-out;
}

.section-center {
	position: relative;
	width: 400px;
	height: 400px;
	top: 50%;
	left: 50%;
	display: block;
	overflow: hidden;
	border: 10px solid rgba(0,0,0,.2);
	border-radius: 50%;
	z-index: 5;
	background-color: #1d4456;
	box-shadow: 0 0 50px 5px rgba(255,148,0,.1);
	transform: translate(-50%, -50%);
	transition: all 500ms linear;
}

/* ===== ELEMENTOS DE ANIMACIÓN ===== */
.wood {
	position: absolute;
	z-index: 21;
	left: 50%; 
	bottom: 12%;
	width: 100px;
	margin-left: -50px;
	height: 36px;
	background-image: url('https://ivang-design.com//svg-load/air/wood.png');
	background-size: 100px 36px;
}

.wood-circle {
	position: absolute;
	z-index: 20;
	left: 50%; 
	bottom: 11%;
	width: 120px;
	margin-left: -60px;
	height: 26px;
	border-radius: 100%;
	background-color: #0a171d;
}

.circle {
	position: absolute;
	z-index: 6;
	right: -300px; 
	bottom: -450px;
	width: 750px;
	height: 700px;
	border-radius: 100%;
	background-color: #112630;
}

.moon {
	position: absolute;
	top: 50px;
	left: 115px;
	width: 80px;
	display: block;
	height: 80px;
	background-color: #b2b7bc;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 
		inset -20px 2px 0 0px #c0c3c9,
        0 0 10px 5px rgba(228,228,222,.4);
	z-index: 1;
	animation: brilla-moon 4s alternate infinite;
	transition: all 2000ms linear;
}

.moon div:nth-child(1) {
	position: absolute;
	top: 50%;
	left: 10%;
	width: 12%;
	height: 12%;
	border-radius: 50%;
	border: 1px solid #adaca2;
	box-shadow: inset 2px -1px 0 0px #85868b;
	opacity: 0.4;
}

.moon div:nth-child(2) {
	position: absolute;
	top: 20%;
	left: 38%;
	width: 16%;
	height: 16%;
	border-radius: 50%;
	border: 1px solid #adaca2;
	box-shadow: inset 2px -1px 0 0px #85868b;
	opacity: 0.4;
}

.moon div:nth-child(3) {
	position: absolute;
	top: 60%;
	left: 45%;
	width: 20%;
	height: 20%;
	border-radius: 50%;
	border: 1px solid #adaca2;
	box-shadow: inset 2px -1px 0 0px #85868b;
	opacity: 0.4;
}

.comet {
	position: absolute;
	top: 80px;
	left: -20px;
	width: 6px;
	height: 6px;
	background-color: #ffcc80;
	border-radius: 50%;
	box-shadow: 
		0 0 12px 3px rgba(255, 166, 77, 0.9),
		0 0 25px 7px rgba(255, 140, 50, 0.5);
	opacity: 0;
	z-index: 3;
	animation: cometHorizontal 15s linear infinite;
}

.comet:after {
	content: '';
	position: absolute;
	top: 1px;
	left: -35px;
	width: 35px;
	height: 4px;
	background: linear-gradient(to left, rgba(255, 166, 77, 0.9), rgba(255, 140, 0, 0));
	border-radius: 50%;
}

.shooting-star {
	z-index: 2;
	width: 1px;
	height: 50px;
	border-bottom-left-radius: 50%;
	border-bottom-right-radius: 50%;
	position: absolute;
	top: 0;
	left: -70px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white);
	animation: animShootingStar 6s linear infinite;
	transition: all 2000ms linear; 
}

.shooting-star-2 {
	z-index: 2;
	width: 1px;
	height: 50px;
	border-bottom-left-radius: 50%;
	border-bottom-right-radius: 50%;
	position: absolute;
	top: 0;
	left: 200px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white);
	animation: animShootingStar-2 9s linear infinite;
	transition: all 2000ms linear; 
}

.star {
	z-index: 2;
	position: absolute;
	top: 185px;
	left: 25px;
	background-image: url('https://ivang-design.com//svg-load/air/star.png');
	background-size: 15px 15px;
	width: 15px;
	height: 15px;
	opacity: 0.4;
	animation: starShine 3.5s linear infinite;
	transition: all 1200ms linear; 
}

.star.snd {
	top: 100px;
	left: 310px;
	animation-delay: 1s;
}

.star.trd {
	top: 130px;
	left: 100px;
	animation-delay: 1.4s;
}

.star.fth {
	top: 20px;
	left: 200px;
	animation-delay: 1.8s;
}

.star.fith {
	top: 85px;
	left: 220px;
	animation-delay: 2.2s;
}

.tree-1 {
	position: relative;
	top: 150px;
	left: 50px;
    width: 0;
    height: 0;
	z-index: 8;
	display: block;
    border-bottom: 90px solid #0a171d;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
}

.tree-1:before {
	position: absolute;
	bottom: -110px;
	left: 50%;
	margin-left: -4px;
    width: 8px;
	display: block;
    height: 30px;
	z-index: 7;
    content: '';
	background-color: #000;
}

.tree-2 {
	position: relative;
	top: 0;
	left: 250px;
    width: 0;
    height: 0;
	z-index: 8;
	display: block;
    border-bottom: 90px solid #0a171d;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
}

.tree-2:before {
	position: absolute;
	bottom: -110px;
	left: 50%;
	margin-left: -4px;
    width: 8px;
	display: block;
    height: 30px;
	z-index: 7;
    content: '';
	background-color: #000;
}

.fire {
	position: absolute;
	z-index: 39;
	width: 2px;
	margin-left: -1px;	
	left: 50%; 
	bottom: 80px;
	transition: all 1200ms linear; 
}

.fire span { 
	display: block;
	position: absolute;
	bottom: -15px; 
	margin-left:-20px;
	height: 0px; 
	width: 0px;
	border: 30px solid #febd08;
	border-radius: 50%;
	border-top-left-radius: 0;
	left: -9px; 
	box-shadow: 
		0 0 10px 5px rgba(244,110,28,0.8),
		0 0 20px 10px rgba(244,110,28,0.6),
		0 0 30px 15px rgba(244,110,28,0.3);
	transform: scale(0.45, 0.75) rotate(45deg);
	animation: brilla-fire 2.5s alternate infinite;
	z-index: 9;
	transition: all 1200ms linear; 
}

.fire span:after { 
	display: block;
	position: absolute;
	bottom: -30px; 
	content: '';
	margin-left: -5px;
	height: 30px; 
	width: 12px;
	background-color: rgba(244,110,28,0.7);
	border-radius: 80px;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	box-shadow: 0 0 20px 10px rgba(244,110,28,0.7);
	left: -9px; 
	opacity: 0.8;
	transform: rotate(-50deg);
}

.fire span:nth-child(2) { 
	left: -22px; 
	transform: scale(0.3, 0.55) rotate(15deg);
	z-index: 8;
	animation: brilla-fire 1.5s alternate infinite;
}

.fire span:nth-child(3) { 
	left: 4px; 
	transform: scale(0.3, 0.55) rotate(80deg);
	z-index: 8;
	animation: brilla-fire 2s alternate infinite;
}

.smoke {
	position: absolute;
	z-index: 40;
	width: 2px;
	margin-left: -1px;	
	left: 50%; 
	bottom: 106px;
	opacity: 0;
	transition: all 800ms linear; 
}

.smoke span { 
	display: block;
	position: absolute;
	bottom: -35px; 
	left: 50%; 
	margin-left:-20px;
	height: 0px; 
	width: 0px;
	border: 30px solid rgba(0, 0, 0, .6);
	border-radius: 22px;
	border-bottom-left-radius: 0;
	border-top-right-radius: 0;
	left: -9px; 
	opacity: 0;
	transform: scale(0.2, 0.2) rotate(-45deg);
}

.smoke .s-0 { animation: smokeLeft 7s 0s infinite; }
.smoke .s-1 { animation: smokeRight 7s 0.7s infinite; }
.smoke .s-2 { animation: smokeLeft 7s 1.4s infinite; }
.smoke .s-3 { animation: smokeRight 7s 2.1s infinite; }
.smoke .s-4 { animation: smokeLeft 7s 2.8s infinite; }
.smoke .s-5 { animation: smokeRight 7s 3.5s infinite; }
.smoke .s-6 { animation: smokeLeft 7s 4.2s infinite; }
.smoke .s-7 { animation: smokeRight 7s 4.9s infinite; }
.smoke .s-8 { animation: smokeLeft 7s 5.6s infinite; }
.smoke .s-9 { animation: smokeRight 7s 6.3s infinite; }

/* ===== ANIMACIONES ===== */
@keyframes brilla-moon {
	0% {
		box-shadow: 
			inset -20px 2px 0 0px #c0c3c9,
			0 0 10px 5px rgba(228,228,222,.4);
	}
	50% {
		box-shadow:
			inset -20px 2px 0 0px #c0c3c9,
			0 0 15px 8px rgba(228,228,222,.4);
	}
}

@keyframes animShootingStar {
	from {
		transform: translateY(0px) translateX(0px) rotate(-45deg);
	opacity: 1;
		height: 5px;
	}
	to {
		transform: translateY(1280px) translateX(1280px) rotate(-45deg);
		opacity: 1;
		height: 800px;
	}
}

@keyframes animShootingStar-2 {
	from {
		transform: translateY(0px) translateX(0px) rotate(-45deg);
		opacity: 1;
		height: 5px;
	}
	to {
		transform: translateY(1920px) translateX(1920px) rotate(-45deg);
		opacity: 1;
		height: 800px;
	}
}

@keyframes starShine {
	0% {
		transform: scale(0.3) rotate(0deg);
		opacity: 0.4;
	}
	25% {
		transform: scale(1) rotate(360deg);
		opacity: 1;
	}
	50% {
		transform: scale(0.3) rotate(720deg);
		opacity: 0.4;
	}
	100% {
		transform: scale(0.3) rotate(0deg);
		opacity: 0.4;
	}
}

@keyframes brilla-fire {
	0%, 100% {
		box-shadow: 
			0 0 10px 5px rgba(244,110,28,0.8),
			0 0 20px 10px rgba(244,110,28,0.6),
			0 0 30px 15px rgba(244,110,28,0.3);
	}
	50% {
		box-shadow: 
			0 0 14px 7px rgba(244,110,28,0.8),
			0 0 28px 14px rgba(244,110,28,0.6),
			0 0 42px 21px rgba(244,110,28,0.3);
	}
}

@keyframes smokeLeft {
	0% { transform: scale(0.2, 0.2) translate(0, 0) rotate(-45deg); }
	10% { opacity: 1; transform: scale(0.2, 0.3) translate(0, -5px) rotate(-45deg); }
	60% { opacity: 0.6; transform: scale(0.3, 0.5) translate(-10px, -80px) rotate(-45deg); }
	100% { opacity: 0; transform: scale(0.4, 0.8) translate(-20px, -120px) rotate(-45deg); }
}

@keyframes smokeRight {
	0% { transform: scale(0.2, 0.2) translate(0, 0) rotate(-45deg); }
	10% { opacity: 1; transform: scale(0.2, 0.3) translate(0, -5px) rotate(-45deg); }
	60% { opacity: 0.6; transform: scale(0.3, 0.5) translate(10px, -80px) rotate(-45deg); }
	100% { opacity: 0; transform: scale(0.4, 0.8) translate(20px, -120px) rotate(-45deg); }
}

@keyframes cometHorizontal {
    0%, 80% { 
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    82% { 
        opacity: 0.3;
        transform: translateX(50px) translateY(10px) rotate(0deg);
    }
    85% { 
        opacity: 1;
        transform: translateX(150px) translateY(20px) rotate(0deg);
    }
    90% { 
        opacity: 1;
        transform: translateX(250px) translateY(30px) rotate(0deg);
    }
    95% { 
        opacity: 0.6;
        transform: translateX(350px) translateY(40px) rotate(0deg);
    }
    100% { 
        opacity: 0;
        transform: translateX(420px) translateY(50px) rotate(0deg);
    }
}

/* ===== ESTADOS DEL SWITCH ===== */
body.fire-off .fire-on {
	opacity: 0;
}

body.fire-off .section-center {
	box-shadow: 0 0 50px 5px rgba(200,200,200,.2);
}

body.fire-off .smoke {
	opacity: 1;
	transition-delay: 0.8s;
}

body.fire-off .fire span { 
	bottom: -35px;
	left: -9px; 
	transform: scale(0.15, 0.15) rotate(45deg);
}

body.hide-animation .animation-container,
body.hide-animation .section-center,
body.hide-animation .fire-on,
body.hide-animation .switch-wrap,
body.hide-animation .name,
body.hide-animation .about-me {
	display: none !important;
}

/* ===== PORTFOLIO ===== */
.portfolio-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
    background: linear-gradient(135deg, #1a2a38 0%, #0a1622 100%);
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px 20px 50px;
    color: #f5f5f5;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    margin: 0;
}

body.hide-animation .portfolio-container {
    display: block !important;
}

.portfolio-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: center;
    padding-top: 20px;
}

.portfolio-header h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ff6b6b, #ffb347);
	background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.portfolio-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.portfolio-nav a {
    display: inline-block;
    padding: 12px 25px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.05);
    font-size: 1rem;
    font-weight: 500;
}

.portfolio-nav a:hover,
.portfolio-nav a.active {
    color: #fff;
    background: rgba(255,165,0,0.3);
    box-shadow: 0 4px 12px rgba(255,165,0,0.2);
    transform: translateY(-2px);
}

.portfolio-content {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    padding: 20px;
}

.portfolio-section.active {
    display: block;
}

.portfolio-section h3 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,165,0,0.3);
    color: #fff;
    position: relative;
}

.portfolio-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 80px;
    height: 2px;
    background: linear-gradient(45deg, #ff6b6b, #ffb347);
}

.back-to-animation {
    position: fixed;
    top: 40px;
	left: 20px;
    background: linear-gradient(45deg, #ff6b6b, #ffb347);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
	z-index: 10000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 15px;
    font-weight: bold;
}

.back-to-animation::before {
    content: "←";
    font-size: 18px;
	margin-right: 5px;
}

.back-to-animation:hover {
    background: linear-gradient(45deg, #ff5252, #ffa000);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.intro-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.intro-image {
    flex: 0 0 300px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

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

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

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(255,165,0,0.3);
    transform: translateY(-5px);
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    border: none;
}

.intro-text h3::after {
    display: none;
}

.intro-text h4 {
    font-size: 1.5rem;
    color: #ffb347;
    margin-bottom: 20px;
    font-weight: 500;
}

.intro-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.highlight {
    color: #ffb347;
}

.intro-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffb347;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.cta-primary, .cta-secondary {
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-primary {
    background: linear-gradient(45deg, #ff6b6b, #ffb347);
    color: white;
}

.cta-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
}

.cta-primary:hover, .cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.timeline {
    position: relative;
    padding-left: 60px;
    margin-top: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    left: -60px;
    top: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #ffb347);
    box-shadow: 0 0 0 5px rgba(255,165,0,0.2);
    z-index: 1;
}

.timeline-date {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #ffb347;
}

.timeline-content {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border-left: 3px solid #ffb347;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.08);
}

.timeline-content h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.timeline-content h5 {
    color: #ffb347;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.timeline-responsibilities {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.timeline-responsibilities li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.timeline-responsibilities li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffb347;
    font-weight: bold;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tags span {
    background: rgba(255,165,0,0.15);
    color: #ffb347;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.education-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.education-item {
    display: flex;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.08);
}

.education-icon {
    flex: 0 0 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #ffb347);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-right: 25px;
}

.education-content {
    flex: 1;
}

.education-year {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #ffb347;
}

.education-content h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.education-content h5 {
    color: #ffb347;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.education-content p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.projects-filter {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.filter-btn {
	padding: 10px 20px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 25px;
	color: rgba(255,255,255,0.7);
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
	background: rgba(255,165,0,0.3);
	color: #fff;
	border-color: rgba(255,165,0,0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    width: 100%;
	margin: 0 auto;
}

.project-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.project-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
	transform: scale(1.1);
}

.project-links {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    transition: all 0.3s ease;
    z-index: 2;
}

.project-card:hover .project-links {
    bottom: 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,0.2);
	color: white;
    text-decoration: none;
	font-size: 1rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: linear-gradient(45deg, #ff6b6b, #ffb347);
	transform: translateY(-3px);
}

.project-info {
	padding: 25px;
}

.project-category {
	display: inline-block;
	padding: 5px 12px;
	background: rgba(255,165,0,0.15);
	color: #ffb347;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
	margin-bottom: 15px;
}

.project-info h4 {
	color: #fff;
	font-size: 1.3rem;
	margin-bottom: 15px;
}

.project-info p {
	margin-bottom: 20px;
	line-height: 1.7;
	color: rgba(255,255,255,0.8);
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skills-category {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.08);
}

.skills-category h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.skills-category h4 i {
    color: #ffb347;
}

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

.skill-item {
    margin-bottom: 15px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-bar {
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, #ff6b6b, #ffb347);
    border-radius: 5px;
    transition: width 1s ease;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.08);
}

.contact-header h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.contact-header p {
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-method i {
    width: 45px;
    height: 45px;
    background: rgba(255,165,0,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ffb347;
}

.contact-method h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.contact-method p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    word-break: break-word;
}

.contact-social h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(45deg, #ff6b6b, #ffb347);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-form {
    flex: 1;
    min-width: 320px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.08);
}

.contact-form h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255,165,0,0.6);
    box-shadow: 0 0 0 3px rgba(255,165,0,0.2);
    background: rgba(0,0,0,0.3);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ffb347);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
	font-family: 'Poppins', sans-serif;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ff5252, #ffa000);
}

.portfolio-notification {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: linear-gradient(45deg, #ff6b6b, #ffb347);
	color: white;
	padding: 12px 25px;
	border-radius: 30px;
	font-size: 14px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.3);
	z-index: 10000;
	opacity: 0;
	transition: all 0.3s ease;
}

.portfolio-notification.show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

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

/* ===== MEDIA QUERIES - RESPONSIVE ===== */

/* Pantallas grandes HD */
@media screen and (min-width: 1440px) and (max-width: 1920px) {
	.section-center {
		width: 350px;
		height: 350px;
	}
	.moon {
		top: 40px;
		left: 100px;
		width: 70px;
		height: 70px;
	}
	.tree-1 {
		top: 130px;
		left: 40px;
	}
	.tree-2 {
		left: 220px;
	}
	.switch-wrap {
		margin-top: 300px !important;
	}
	.about-me {
		max-width: 380px;
	}
	.about-me h1 {
		font-size: 22px;
	}
	.profile-pic {
		width: 90px;
		height: 90px;
	}
}

@media screen and (min-width: 1366px) and (max-width: 1439px) {
	.section-center {
		width: 320px;
		height: 320px;
	}
	.moon {
		top: 35px;
		left: 90px;
		width: 60px;
		height: 60px;
	}
	.tree-1 {
		top: 110px;
		left: 35px;
		border-bottom-width: 80px;
		border-left-width: 25px;
		border-right-width: 25px;
	}
	.tree-2 {
		left: 200px;
		border-bottom-width: 80px;
		border-left-width: 25px;
		border-right-width: 25px;
	}
	.switch-wrap {
		margin-top: 280px !important;
	}
	.about-me {
		max-width: 350px;
		width: auto;
		top: 1.5%;
		padding: 15px 20px;
		box-sizing: border-box;
		overflow: visible;
		overflow-y: visible;
	}
	.about-me h1 {
		font-size: 20px;
		margin: 8px 0;
	}
	.about-me .intro {
		font-size: 13px;
		line-height: 1.5;
		margin-top: 8px;
	}
	.profile-pic {
		width: 80px;
		height: 80px;
	}
	.profile-logo {
		width: 35px;
		height: 35px;
	}
}

@media screen and (min-width: 1280px) and (max-width: 1365px) {
	.section-center {
		width: 300px;
		height: 300px;
	}
	.moon {
		top: 30px;
		left: 85px;
		width: 55px;
		height: 55px;
	}
	.tree-1 {
		top: 100px;
		left: 30px;
		border-bottom-width: 70px;
		border-left-width: 22px;
		border-right-width: 22px;
	}
	.tree-2 {
		left: 180px;
		border-bottom-width: 70px;
		border-left-width: 22px;
		border-right-width: 22px;
	}
	.switch-wrap {
		margin-top: 260px !important;
	}
	.about-me {
		max-width: 320px;
		width: auto;
		top: 1%;
		padding: 12px 18px;
		box-sizing: border-box;
		overflow: visible;
		overflow-y: visible;
	}
	.about-me h1 {
		font-size: 18px;
		margin: 8px 0;
	}
	.about-me .intro {
		font-size: 12px;
		line-height: 1.5;
		margin-top: 8px;
	}
	.profile-pic {
		width: 75px;
		height: 75px;
	}
	.profile-logo {
		width: 32px;
		height: 32px;
		right: -25px;
	}
}

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
	html, body {
		overflow: hidden;
		overflow-x: hidden;
		overflow-y: hidden;
		max-width: 100%;
		width: 100%;
		min-width: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.fire-on {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.portfolio-container {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.animation-container {
		transform: translate(-50%, -50%) scale(0.75);
	}

	.about-me {
		width: auto;
		max-width: 300px;
		padding: 12px 18px;
		box-sizing: border-box;
		overflow: visible;
		overflow-y: visible;
	}

	.about-me h1 {
		font-size: 18px;
		margin: 8px 0;
	}

	.about-me .intro {
		font-size: 12px;
		line-height: 1.5;
		margin-top: 8px;
	}

    .portfolio-header h2 {
		font-size: 2.2rem;
    }
    
	.intro-container {
        flex-direction: column;
	}

	.intro-image {
		flex: 0 0 250px;
		height: 250px;
		margin-right: 0;
	}

	.intro-text h3 {
		font-size: 2rem;
	}

	.projects-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 20px;
	}

	.contact-container {
		padding: 0 15px;
	}
}

/* Móviles grandes y tablets pequeñas */
@media (max-width: 768px) {
	html, body {
		overflow: hidden;
		overflow-x: hidden;
		overflow-y: hidden;
		width: 100%;
		min-width: 100%;
		max-width: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.fire-on {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.portfolio-container {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.animation-container {
		transform: translate(-50%, -50%) scale(0.60);
		top: 65% !important;
	}

	.about-me {
		width: auto;
		max-width: 280px;
		padding: 10px 14px;
		top: 3%;
		box-sizing: border-box;
	}

	.profile-container {
		margin-bottom: 8px;
	}

	.profile-pic {
		width: 60px;
		height: 60px;
	}

	.profile-logo {
		width: 28px;
		height: 28px;
		right: -18px;
	}

	.about-me h1 {
		font-size: 16px;
		margin: 4px 0;
		line-height: 1.3;
	}

	.about-me .intro {
		font-size: 11px;
		line-height: 1.3;
		margin-top: 6px;
		padding: 0;
	}

	.switch-wrap {
		margin-top: 150px !important;
	}

	#switch {
		width: 40px;
		height: 20px;
		border-radius: 15px;
	}

	#circle {
		width: 18px;
		height: 18px;
		margin-top: 1px;
		margin-left: 2px;
	}

	.switched #circle {
		margin-left: 20px;
	}

	.name {
		width: 100%;
		left: 50%;
		transform: translateX(-50%);
		bottom: 10px;
		font-size: 7vw;
	}

	.fire-on {
		opacity: 0.5;
		z-index: 1 !important;
	}

    .portfolio-container {
        padding: 20px 15px 50px;
    }
    
    .portfolio-header {
        margin-bottom: 25px;
    }
    
    .portfolio-header h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .back-to-animation {
		left: 10px;
		top: 10px;
		padding: 8px 15px;
        font-size: 13px;
    }
    
	.portfolio-nav a {
		padding: 8px 15px;
		font-size: 0.85rem;
	}

	.portfolio-section h3 {
		font-size: 1.5rem;
	}

    .intro-image {
        flex: 0 0 200px;
        height: 200px;
        margin-bottom: 25px;
    }
    
    .intro-text h3 {
        font-size: 1.7rem;
    }
    
    .intro-text h4 {
        font-size: 1.1rem;
    }
    
	.timeline {
		padding-left: 40px;
	}

	.timeline-dot {
		left: -40px;
		width: 22px;
		height: 22px;
	}

	.skills-grid {
		grid-template-columns: 1fr;
	}

	.contact-form {
		margin-right: 0;
		padding: 25px;
	}
}

/* Móviles medianos */
@media (max-width: 576px) {
	html, body {
		overflow: hidden;
		overflow-x: hidden;
		overflow-y: hidden;
		width: 100%;
		min-width: 100%;
		max-width: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.fire-on {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.portfolio-container {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.animation-container {
		transform: translate(-50%, -50%) scale(0.45);
	}

    .portfolio-header h2 {
        font-size: 1.5rem;
    }
    
    .portfolio-nav ul {
        flex-direction: column;
        gap: 8px;
    }
    
    .portfolio-nav a {
        width: 100%;
        text-align: center;
        padding: 10px;
		font-size: 0.8rem;
	}

    .intro-stats {
        flex-wrap: wrap;
        justify-content: center;
		gap: 15px;
    }
    
    .stat-item {
        flex: 0 0 40%;
    }
    
	.cta-buttons {
		flex-direction: column;
	}

    .timeline {
        padding-left: 35px;
    }
    
    .timeline-dot {
        left: -35px;
        width: 18px;
        height: 18px;
    }
    
    .timeline-content {
        padding: 20px 15px;
    }
    
	.projects-grid {
		grid-template-columns: 1fr;
	}

	.contact-container {
		padding: 0 10px;
	}

	.contact-form {
		margin-right: 0;
		width: 100%;
	}

	.form-group input,
	.form-group textarea {
		padding: 12px 15px;
	}
}

/* Móviles pequeños */
@media (max-width: 500px) {
	.animation-container {
		transform: translate(-50%, -50%) scale(0.45);
	}
}

/* Móviles en modo landscape (apaisado) */
@media (max-width: 992px) and (orientation: landscape) {
	html, body {
		width: 100%;
		height: 100%;
		min-width: 100%;
		min-height: 100%;
		max-width: 100%;
		max-height: 100%;
		overflow: hidden;
		overflow-x: hidden;
		overflow-y: hidden;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.fire-on {
		width: 100%;
		height: 100%;
		min-width: 100%;
		min-height: 100%;
		max-width: 100%;
		max-height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.portfolio-container {
		width: 100%;
		height: 100%;
		min-width: 100%;
		min-height: 100%;
		max-width: 100%;
		max-height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		padding: 15px 10px 30px;
		overflow-y: auto;
		overflow-x: hidden;
	}

	.animation-container {
		display: none;
	}

	.about-me {
		width: auto;
		max-width: 320px;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		padding: 12px 16px;
		overflow: visible;
		overflow-y: visible;
		position: absolute;
		z-index: 5;
	}

	.about-me h1 {
		font-size: 16px;
		margin: 6px 0 8px 0;
	}

	.about-me .intro {
		font-size: 11px;
		margin-top: 8px;
		line-height: 1.5;
	}

	.profile-pic {
		width: 50px;
		height: 50px;
	}

	.profile-logo {
		width: 25px;
		height: 25px;
		right: -15px;
	}

	.switch-wrap {
		margin-top: 0;
		top: auto;
		bottom: 12%;
		left: 50%;
		transform: translateX(-50%);
		z-index: 200;
	}

	#switch {
		width: 35px;
		height: 18px;
	}

	#circle {
		width: 15px;
		height: 15px;
	}

	.switched #circle {
		margin-left: 18px;
	}

	.name {
		width: 100%;
		font-size: 3.5vw;
		bottom: 2px;
		left: 50%;
		transform: translateX(-50%);
	}

	.portfolio-header h2 {
		font-size: 1.5rem;
		margin-bottom: 15px;
	}

	.portfolio-nav a {
		padding: 6px 12px;
		font-size: 0.75rem;
	}

	.portfolio-section {
		padding: 15px 10px;
	}

	.portfolio-section h3 {
		font-size: 1.3rem;
		margin-bottom: 20px;
	}

	.intro-container {
		flex-direction: row;
		gap: 20px;
	}

	.intro-image {
		flex: 0 0 150px;
		height: 150px;
	}

	.intro-text h3 {
		font-size: 1.4rem;
	}

	.intro-text h4 {
		font-size: 1rem;
	}

	.intro-stats {
		gap: 15px;
		margin: 15px 0;
	}

	.stat-number {
		font-size: 1.8rem;
	}

	.timeline {
		padding-left: 30px;
	}

	.timeline-dot {
		left: -30px;
		width: 18px;
		height: 18px;
	}

	.timeline-content {
		padding: 15px;
	}

	.projects-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 15px;
	}

	.contact-container {
		flex-direction: row;
		gap: 20px;
		padding: 0 10px;
	}

	.contact-info,
	.contact-form {
		min-width: 250px;
		padding: 20px;
	}
}

/* Móviles pequeños en landscape */
@media (max-width: 768px) and (orientation: landscape) {
	html, body {
		width: 100%;
		height: 100%;
		min-width: 100%;
		min-height: 100%;
		max-width: 100%;
		max-height: 100%;
		overflow: hidden;
		overflow-x: hidden;
		overflow-y: hidden;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.fire-on {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.portfolio-container {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		overflow-y: auto;
		overflow-x: hidden;
	}

	.animation-container {
		display: none;
	}

	.about-me {
		width: auto;
		max-width: 280px;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		padding: 10px 14px;
		overflow: visible;
		overflow-y: visible;
		position: absolute;
		z-index: 5;
	}

	.about-me h1 {
		font-size: 14px;
		margin: 5px 0 6px 0;
	}

	.about-me .intro {
		font-size: 10px;
		margin-top: 6px;
		line-height: 1.4;
	}

	.profile-pic {
		width: 45px;
		height: 45px;
	}

	.profile-logo {
		width: 20px;
		height: 20px;
		right: -12px;
	}

	.switch-wrap {
		margin-top: 0;
		top: auto;
		bottom: 12%;
		left: 50%;
		transform: translateX(-50%);
		z-index: 200;
	}

	.name {
		width: 100%;
		font-size: 3vw;
		left: 50%;
		transform: translateX(-50%);
		bottom: 2px;
	}

	.portfolio-header h2 {
		font-size: 1.2rem;
	}

	.portfolio-nav ul {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 5px;
	}

	.portfolio-nav a {
		padding: 5px 10px;
		font-size: 0.7rem;
	}

	.intro-image {
		flex: 0 0 120px;
		height: 120px;
	}

	.intro-text h3 {
		font-size: 1.2rem;
	}

	.intro-stats {
		display: none;
	}

	.projects-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}

	.contact-container {
		flex-direction: column;
	}

	.contact-info,
	.contact-form {
		min-width: 100%;
	}
}

@media (max-width: 400px) {
	html, body {
		overflow: hidden;
		overflow-x: hidden;
		overflow-y: hidden;
		width: 100%;
		min-width: 100%;
		max-width: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.fire-on {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.portfolio-container {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		padding: 15px 10px 40px;
	}

	.animation-container {
		transform: translate(-50%, -50%) scale(0.38);
	}
    
    .intro-image {
        flex: 0 0 150px;
        height: 150px;
    }
    
    .intro-stats {
		display: none;
    }
    
    .intro-text h3 {
        font-size: 1.3rem;
    }
    
    .intro-text h4 {
        font-size: 0.9rem;
    }
    
	.contact-method p {
        font-size: 0.85rem;
    }
    
    .timeline-content {
        padding: 15px 12px;
    }
    
    .tags {
        display: none;
    }
}

/* Ajustes de altura */
@media (max-height: 800px) {
	.about-me {
		top: 1%;
		max-width: 300px;
		width: auto;
		overflow: visible;
		overflow-y: visible;
		padding: 10px 15px;
		box-sizing: border-box;
	}

	.animation-container {
		top: 55%;
		transform: translate(-50%, -50%) scale(0.6);
	}

    .switch-wrap {
		margin-top: 130px;
	}

	.name {
		font-size: 3.5vw;
		bottom: 5px;
		left: 50%;
		transform: translateX(-50%);
		width: 100%;
	}
}

@media (max-height: 650px) {
	.animation-container {
		top: 60%;
		transform: translate(-50%, -50%) scale(0.5);
	}

    .about-me {
		padding: 8px 12px;
    }
    
    .about-me h1 {
		font-size: 16px;
		margin: 5px 0;
	}

    .profile-pic {
		width: 70px;
		height: 70px;
	}
}

@media (max-height: 500px) {
	html, body {
		overflow: hidden;
		overflow-y: hidden;
	}

	.animation-container {
		position: absolute;
		top: 50% !important;
		transform: translate(-50%, -50%) scale(0.4);
	}

	.about-me {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: auto;
		max-width: 300px;
		overflow: visible;
		overflow-y: visible;
		padding: 10px 15px;
	}

	.switch-wrap {
		position: absolute;
		top: 75% !important;
		left: 50%;
		transform: translateX(-50%);
		margin-top: 0 !important;
	}

	.name {
		position: absolute;
		bottom: 3px;
		left: 50%;
		transform: translateX(-50%);
	}
}
