/* styles.css */
/* Tipografía y base */

@import url('https://fonts.googleapis.com/css2?family=Krona+One&family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
:root{
  --accent-1: #D6A99D;
  --accent-2: #FBF3D5;
  --accent-3: #D6DAC8;
  --accent-4: #9CAFAA;
  --text-dark: #333333;
  --text-black: #000000;
  --text-white:#ffffff; 
  --fuente-montserrat: 'Montserrat', sans-serif;
  --fuente-inter: 'Inter', sans-serif;
  --fuente-roboto: 'Roboto', sans-serif;
  --container-max: 1300px ;
  --radius: 12px;
  --gap: 1rem;
  --shadow-md: 0 4px 6px -1px #000000, 0 2px 4px -2px #000000;
  --shadow-lg: 0 20px 25px -5px var(--accent-2),  0 15px 24px -2px var(--accent-3);
  --letra-texto: 1.4rem;
        
}

*{box-sizing:border-box
}
html,body{height:100%;margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;}
/* Accessibility: visible focus *


/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--accent-2);
  z-index: 1000;
  height: 70px; /* Define altura fija */

}
.header-inner{
  max-width:var(--container-max); 
  margin:0 auto; display:flex; 
  align-items:center; gap:1rem; padding:.75rem 1rem;
}
.brand{font-weight:700;
  font-family: var(--fuente-roboto); 
  
  font-size:var(--letra-texto);}

/* Nav */
.primary-nav a {
  text-decoration: none; /* Quita el subrayado */
  color: inherit;        /* Usa el color del texto del padre */
}
.primary-nav ul{list-style:none; margin:0; 
  padding:0; display:flex; gap:var(--gap)}
.primary-nav a{padding:.5rem .6rem; 
  border-radius:8px; 
  font-family: var(--fuente-montserrat);
  display:inline-block}
.primary-nav a:hover{color: var(--text-white); 
  background:var(--accent-1)}
.container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 70px; /* Altura del header */
  padding-bottom: 80px; /* Altura del footer */
  max-width: var(--container-max);
  margin: 1rem auto;
  padding: 1rem;
  display: flex;
  justify-content: center;
}


/* ====== Hero Section Reorganizado ====== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr; /* dos columnas iguales */
  grid-template-rows: auto 1fr;   /* primera fila ajusta al contenido */
  gap: var(--gap);
  width: 100%;
  background: #ffffff;
  border-radius: calc(var(--radius) * 3);
  padding: 2rem;
  border: 1px solid var(--accent-3);
  position: relative;
  box-shadow: var(--shadow-lg);
}

/* ====== Título General de Sección ====== */
.hero-titulo {
  grid-column: 1/3;
  font-family: var(--fuente-montserrat);
  font-size: 2.5rem;
  text-align: center;
  margin: 0 0 0.5rem 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  /* Gradiente visible y llamativo */
  background: linear-gradient(  35deg, var(--accent-1) 0%, var(--accent-4) ) 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 1s ease-out;
}

/* ====== Contenido Principal (Lado Izquierdo) ====== */

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ====== Introducción ====== */
.hero-intro-p {
  font-family: var(--fuente-roboto);
  font-size: var(--letra-texto);
  color: var(--text-black);
  line-height: 1.7;
  text-align: justify;
  margin: 0 0 0.1rem 0;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ====== Botones de Contacto (Después de la Introducción) ====== */
.hero-contact-list {
  display: flex;
  gap: var(--letra-texto);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.hero-contact-list li {
  display: flex;
  justify-content: space-between;
  animation: fadeInUp 0.8s ease-out calc(0.6s + var(--delay, 0s)) both;
}

.contact-list li:nth-child(1) { --delay: 0s; }
.contact-list li:nth-child(2) { --delay: 0.1s; }
.contact-list li:nth-child(3) { --delay: 0.2s; }



.muted-link {
  color: var(--text-black);
  text-decoration: none;
  font-family: var(--fuente-roboto);
  font-size: var(--letra-texto);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: calc(var(--radius) * 1.5);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  background: var(--accent-2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.muted-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-4));
  transition: all 0.3s ease;
  z-index: -1;
}

.muted-link:hover {
  color: var(--text-black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.muted-link:hover::before {
  left: 0;
}


/* ====== Sección Perfil (Lado Derecho) ====== */
.hero-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

.avatar-container {
  position: relative;
}

.avatar-container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient( var(--accent-1), var(--accent-4));
  border-radius: 50%;
  z-index: -1;
  animation: rotate 3s linear infinite;
}

.avatar-lg {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--text-white);
  box-shadow: var(--shadow-lg);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.avatar-lg:hover {
  transform: scale(1.05) rotate(5deg);
}

/* ====== Botones de Navegación/Sección (Después de la Imagen) ====== */
.cta-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 70%;
  animation: fadeInUp 0.8s ease-out 0.7s both;
}


.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-4));
  color: var(--text-black);
  border-radius: calc(var(--radius) * 1.5);
  font-weight: bold;
  font-size: 1.35rem;
  font-family: var(--fuente-montserrat);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-4), var(--accent-5));
  transition: all 0.3s ease;
  z-index: -1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn:hover::before {
  left: 0;
}

.btn.ghost {
  background: transparent;
  color: var(--text-black);
  font-weight:bold ;
  border: 2px solid var(--accent-4);
}

.btn.ghost::before {
  background: var(--accent-4);
}

.btn.ghost:hover {
  color: var(--text-white);
  border-color: var(--accent-4);
}

/* ====== Sección Sobre Mi Optimizada ====== */
.sobre-mi {
  background: var(--text-white);
  border-radius: calc(var(--radius) * 2);
  padding: 4rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 1200px; /* Limita el ancho máximo para mejor legibilidad */
  min-height: calc(100vh - 130px); /* 70px header + 60px footer */
  margin-top: 100px;  /* altura del header */
  margin-bottom: 100px; /* altura del footer */
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.sobre-mi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, var(--accent-2) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, var(--accent-3) 0%, transparent 50%);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.sobre-mi > * {
  position: relative;
  z-index: 1;
}




/* ====== Animaciones ====== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ====== Footer Fijo ====== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--accent-2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px; /* AÑADE ESTA ALTURA FIJA */
  padding: 0 1rem;
  box-sizing: border-box;
}
.container-footer-inner {
  font-size: var(--letra-texto);
  font-family: var(--fuente-inter);
  text-align: center;
  margin: 0;
  padding: 0;
}


/* ====== Animaciones ====== */
@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1); 
  }
  25% { 
    transform: translateY(-20px) rotate(90deg) scale(1.1); 
  }
  50% { 
    transform: translateY(10px) rotate(180deg) scale(0.9); 
  }
  75% { 
    transform: translateY(-15px) rotate(270deg) scale(1.05); 
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 60px;
    opacity: 1;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ====== Responsive Design Mejorado ====== */

@media (max-width: 1024px) {

 .hero {
   grid-template-columns: 1fr;
   gap: 2rem;
   padding: 5%;
   text-align: center;
   flex-direction: column-reverse;
   width: 100%;
 }
 
 .hero-profile {
   order: -1;
 }
 
 .avatar-lg {
   width: 220px;
   height: 220px;
 }
 
 .contact-list {
   justify-content: center;
 }
}

@media (max-width: 768px) {
 .container {
   margin: 1rem auto;
   padding: 0.5rem;
 }
 
 .hero {
   min-height: auto;
   padding: 2rem 0;
   width: auto;
 }
 
 .hero-intro-titulo {
   font-size: 2.5rem;
   line-height: 1.2;
 }
 
 .hero-intro-p {
   font-size: 1.1rem;
   text-align: center;
   margin: 1rem 0;
 }
 
 .avatar-lg {
   width: 200px;
   height: 200px;
   margin: 0 auto 1.5rem;
 }
 
 .hero-contact-list {
   flex-direction: column;
   align-items: center;
   gap: 1rem;
   margin-top: 1.5rem;
 }
 
 .btn {
   padding: 0.875rem 2rem;
   font-size: 0.9rem;
   min-width: 200px;
 }
}

@media (max-width: 480px) {
 .hero {
   flex-direction: column;
   padding: 1.5rem 1rem;
 }
 
 .hero-intro-titulo {
   font-size: 2rem;
   line-height: 1.1;
 }
 
 .hero-intro-p {
   font-size: 1rem;
 }
 
 .avatar-lg {
   width: 180px;
   height: 180px;
   margin-bottom: 1rem;
 }
 
 .btn {
   padding: 0.75rem 1.5rem;
   font-size: 0.85rem;
   min-width: 180px;
 }
 
 .container {
   padding: 0.25rem;
 }

}


