@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');

body{
	width: 100%;
	display: block;
	overflow: hidden;
	height: 100vh;
	background: linear-gradient(#0a171d, #000);
	font-family: 'Poppins', sans-serif;
}


.about-me {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 5; /* Menor que el fuego pero visible */
    max-width: 600px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2); /* Fondo semitransparente para que se vea el fuego */
}

.animation-container {
    position: absolute; /* Importante para que se posicione correctamente */
    top: 75% !important; /* Desplazado hacia abajo (era 70%) */
    left: 50%; /* Centrar horizontalmente */
    transform: translate(-50%, -50%); /* Ajustar para que el centro del div quede en el centro de la pantalla */
    width: auto; /* O el tamaño que prefieras */
    height: auto; /* O el tamaño necesario */
    z-index: 10; /* Asegurar que no quede tapado */
}

/* Contenedor para la foto de perfil y el logo */
.profile-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 0; /* Quitar margen inferior ya que está en el contenedor */
}

/* Estilo para el logo junto al perfil */
.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);
}

/* Texto "Ver Portfolio" */
.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;
    /* Añadimos animación para que aparezca durante la pausa */
    animation: showPortfolioText 10s infinite;
}

/* Mostrar texto también al pasar el cursor (mantenemos este comportamiento) */
.profile-logo:hover::after {
    opacity: 1 !important; /* !important para sobreescribir la animación */
    visibility: visible !important;
    top: 105% !important;
}

/* Animación para mostrar el texto durante la pausa */
@keyframes showPortfolioText {
    /* Oculto durante la mayor parte de la animación */
    0%, 80% { 
        opacity: 0;
        visibility: hidden;
        top: 110%;
    }
    /* Aparece durante la pausa (últimos 2 segundos del ciclo) */
    85% { 
        opacity: 1;
        visibility: visible;
        top: 105%;
    }
    /* Se mantiene visible */
    85%, 98% { 
        opacity: 1;
        visibility: visible;
        top: 105%;
    }
    /* Desaparece justo antes de reiniciar el ciclo */
    99%, 100% { 
        opacity: 0;
        visibility: hidden;
        top: 110%;
    }
}

/* Primer destello - más grande y lento */
.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);
}

/* Efecto de destello - chispas alrededor */
.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;
}

/* Posiciones de las chispas */
.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;
}

/* "Ojo" parpadeante */
.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;
}

/* Animación del flash principal - con pausa */
@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); }
    /* Pausa de 2 segundos (20% del tiempo total) */
    80.1%, 100% { opacity: 0; transform: scale(0.95); }
}

/* Animación de las chispas - con pausa */
@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); }
    /* Pausa de 2 segundos (20% del tiempo total) */
    80.1%, 100% { opacity: 0; transform: scale(0) translateY(0); }
}

/* Animación del ojo parpadeante - con pausa */
@keyframes eyeBlink {
    0%, 25%, 30%, 80% { transform: translate(-50%, -50%) scaleY(1); }
    28% { transform: translate(-50%, -50%) scaleY(0.1); }
    /* Pausa de 2 segundos (20% del tiempo total) */
    80.1%, 100% { transform: translate(-50%, -50%) scaleY(1); opacity: 0; }
}

/* Estilo del nombre */
.about-me h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
}

/* Estilo del texto de presentación */
.about-me .intro {
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.fire-on{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(#1d4456, #112630);
	opacity: 1;
	z-index: 2;
	-webkit-transition: all 1200ms linear;
	transition: all 1200ms linear; 
}



.name {
    position: absolute;
    bottom: 20px;
    left: -50%;
    width: 200%;
    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));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 2s ease-in-out;
}

.name span{
	font-family: 'Dancing Script', cursive;
	font-weight: 400;
}
.switch-wrap {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 200;
    transform: translateX(-50%);
	margin-top: 320px !important; /* Desplazado mucho más abajo (era 280px) */
	-webkit-transition: all 500ms linear;
	transition: all 500ms linear; 
}
#switch,
#circle {
	height: 31px;
	cursor: pointer;
	-webkit-transition: all 0.4s cubic-bezier(0.54, 1.6, 0.5, 1);
		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;
}
.section-center{
	position: relative;
	width: 550px; /* Más proporcionado */
	height: 300px; /* Menos diferencia entre ancho y alto */
	top: 50%;
	left: 50%;
	display: block;
	overflow: hidden;
	border: 10px solid rgba(0,0,0,.2);
	border-radius: 4px;
	z-index: 5;
	background-color: #1d4456;
	box-shadow: 0 0 50px 5px rgba(255,148,0,.1);
	transform: translate(-50%, -50%);
}

================================================== *

/* ESTILOS PARA EL PORTFOLIO COMPLETO */

/* Contenedor del portfolio */
.portfolio-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2a38 0%, #0a1622 100%);
    z-index: 9999;
    overflow-y: auto;
    padding: 30px 20px 50px;
    color: #f5f5f5;
    font-family: 'Poppins', sans-serif;
}

/* Mostrar portfolio cuando se activa */
body.hide-animation .portfolio-container {
    display: block !important;
}

/* Ocultar elementos de animación */
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;
}

/* Estilos del encabezado */
.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);
    -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);
}

/* Contenido del portfolio */
.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);
}

/* Botón para volver */
.back-to-animation {
    position: fixed;
    top: 40px;
    left: 400px;
    background: linear-gradient(45deg, #ff6b6b, #ffb347);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

/* Sección Sobre Mí */
.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;
    margin-right: 50px;
    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);
}

/* Sección Experiencia - Timeline */
.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;
}

/* Sección Formación */
.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;
}

/* Sección Proyectos */
.projects-section {
    padding: 20px 15px; /* Asegurar padding horizontal consistente */
    max-width: 1200px;
    margin: 0 auto;
}

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

.project-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0 auto 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    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;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.project-info {
    padding: 25px;
    text-align: left;
    box-sizing: border-box;
    width: 100%;
}

.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);
}

.project-info .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-info .tags span {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.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;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.project-code {
    background: rgba(255,255,255,0.1);
    color: white;
}

.project-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Sección Habilidades */
.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;
}

/* Sección Contacto */
.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;
    margin-right: 15px; /* Margen derecho explícito */
}

.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;
    position: relative;
}

.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; /* Asegura que el padding no afecte el ancho */
}

.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;
    letter-spacing: 0.5px;
}

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

/* Animación de fade in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contenedor general que engloba tanto el juego como el switch */
.game-wrapper {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    margin-top: 350px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contenedor del juego dentro del wrapper */
.game-container {
    position: relative;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
}


/* Media queries modificados para el wrapper */
@media (max-width: 768px) {
    .game-wrapper {
        margin-top: 400px;
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .game-wrapper {
        margin-top: 450px;
    }
}

/* Canvas del juego con dimensiones optimizadas */
#gameCanvas {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #3a5f85;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(58, 95, 133, 0.7);
    display: block;
    margin: 0 auto;
    width: 550px;     /* Ligeramente más pequeño */
    height: 350px;    /* Proporcionalmente más pequeño */
    z-index: 10;
}

/* Controles simplificados y mejorados */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px auto;
    max-width: 350px;
}

.game-controls button {
    background-color: #3a5f85;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #2a4565;
}

.game-controls button:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #2a4565;
}

#startButton {
    background-color: #2aaa2a; /* Verde */
    box-shadow: 0 4px 0 #1d881d;
    font-weight: bold;
    padding: 10px 25px;
}

#startButton:active {
    box-shadow: 0 0 0 #1d881d;
}

#muteButton {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Controles móviles en línea */
.mobile-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px auto;
    max-width: 350px;
}

.mobile-controls button {
    height: 60px;
    color: white;
    font-size: 22px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#leftButton, #rightButton {
    width: 70px;
    height: 70px;
    border-radius: 50%; /* Redondos como joysticks */
    background: radial-gradient(circle at 30% 30%, #5a7fa7, #3a5f85, #2a4565);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 6px 0 #1e3248,
        0 8px 10px rgba(0, 0, 0, 0.4),
        inset 0 -4px 10px rgba(0, 0, 0, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 26px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#leftButton:after, #rightButton:after {
    content: "";
    position: absolute;
    top: 5%;
    left: 10%;
    width: 50%;
    height: 40%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    border-radius: 50%;
    pointer-events: none;
}

#leftButton:active, #rightButton:active {
    transform: translateY(6px);
    box-shadow: 
        0 0 0 #1e3248,
        0 3px 5px rgba(0, 0, 0, 0.5),
        inset 0 -2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 6px rgba(255, 255, 255, 0.3);
}

/* Botón de disparo rojo y profundo */
#fireButton {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff4545, #d43030, #b42020);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 6px 0 #a42323,
        0 8px 10px rgba(0, 0, 0, 0.4),
        inset 0 -4px 10px rgba(0, 0, 0, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    margin: 0 10px;
    position: relative;
    overflow: hidden;
}

#fireButton:after {
    content: "";
    position: absolute;
    top: 5%;
    left: 10%;
    width: 50%;
    height: 40%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    border-radius: 50%;
    pointer-events: none;
}

#fireButton:active {
    transform: translateY(6px);
    box-shadow: 
        0 0 0 #a42323,
        0 3px 5px rgba(0, 0, 0, 0.5),
        inset 0 -2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 6px rgba(255, 255, 255, 0.3);
}

/* Asegurar que los controles sean visibles siempre */
@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
    }
}

/* Forzar visualización en todas las pantallas */
.mobile-controls {
    display: flex;
}

/* Marcadores mejorados para puntuación y vidas */
.game-info {
    width: 80%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    margin: 10px auto;
    padding: 8px 15px;
    background: rgba(0, 20, 40, 0.7);
    border: 2px solid #3671d8;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(66, 135, 245, 0.5), 
                inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.score-display, .lives-display {
    display: flex;
    align-items: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(66, 135, 245, 0.8);
}

.score-display::before {
    content: "🏆";
    margin-right: 8px;
    font-size: 1.4rem;
}

.lives-display::before {
    content: "❤️";
    margin-right: 8px;
    font-size: 1.4rem;
}

#score, #lives {
    font-weight: bold;
    color: #a3ccff;
    margin-left: 5px;
}

/* Separación visual entre el marcador y el canvas */
#gameCanvas {
    margin-top: 10px;
    border: 2px solid #1a5fb4;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(66, 135, 245, 0.3);
}

/* Ajustes responsive para el marcador */
@media (max-width: 768px) {
    .game-info {
        padding: 5px 10px;
        font-size: 1rem;
    }
    
    .score-display::before, 
    .lives-display::before {
        font-size: 1.2rem;
    }
}