html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(135deg, #fafafa 60%, #e0e7ff 100%);
  color: #222;
  min-height: 100vh;
  overflow-x: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 48px 0 48px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 16px rgba(162,89,230,0.04);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dot {
  width: 12px;
  height: 12px;
  background: #f7c948;
  border-radius: 50%;
  display: inline-block;
}
.logo .name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #a259e6;
}
.logo .role {
  font-size: 0.85rem;
  color: #6ee7e7;
  margin-left: 4px;
}
.nav {
  display: flex;
  gap: 24px;
}
.nav a {
  text-decoration: none;
  color: #a259e6;
  font-size: 0.95rem;
  border-right: 1px solid #bdb5e2;
  padding: 0 12px;
  transition: color 0.2s;
}
.nav a:last-child {
  border-right: none;
}
.nav a:hover {
  color: #6ee7e7;
}

.main-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  margin-top: 48px;
  margin-bottom: 0;
  background: rgba(255,255,255,0.85);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(162,89,230,0.07);
  padding: 80px 24px;
  overflow: hidden;
}
.main-content::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -30%;
  left: -20%;
  width: 140%;
  height: 160%;
  background: radial-gradient(circle at 30% 40%, #a259e6 0%, #fff 70%);
  opacity: 0.25;
  pointer-events: none;
}
.main-content > * {
  position: relative;
  z-index: 1;
}
.profile-pic {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #a259e6 40%, #6ee7e7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(80,0,80,0.07);
  /* Asegura que no haya padding ni margen interno */
  padding: 0;
}
.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  display: block;
}
.intro {
  max-width: 350px;
  margin-top: 32px;
  background: rgba(174, 230, 238, 0.10);
  border-radius: 18px;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 2px 12px rgba(110,231,231,0.07);
}
.intro h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #a259e6;
}
.intro h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #6ee7e7;
}
.intro p {
  font-size: 0.98rem;
  color: #444;
  margin-bottom: 32px;
}
.buttons {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  margin-bottom: 16px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: #222;
  box-shadow: 0 2px 8px rgba(80,0,80,0.07);
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  text-align: center;
}
.btn-cv {
  background: #6ee7e7;
  color: #222;
}
.btn-proyectos {
  background: #a259e6;
  color: #fff;
}
.btn-contacto {
  background: #6ee7e7;
  color: #222;
}
.btn:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 16px rgba(80,0,80,0.13);
  color: #fff;
}

/* Footer Rediseñado */
.footer {
  position: relative;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 48px 24px 48px;
  background: linear-gradient(135deg, #a259e6 -1%, #172b2b 100%);
  border-top: 3px solid #a259e6;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 -4px 20px rgba(162,89,230,0.2);
  min-height: 200px;
  overflow: hidden;
  margin-top: 48px;
  margin-bottom: 0;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: 
    linear-gradient(45deg, rgba(162,89,230,0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(162,89,230,0.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(162,89,230,0.1) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(162,89,230,0.1) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  pointer-events: none;
}

.footer-section {
  flex: 1;
  margin: 0 20px;
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-section:first-child {
  margin-left: 0;
}

.footer-section:last-child {
  margin-right: 0;
}

/* Sección de Marca */
.footer-brand {
  margin-bottom: 16px;
  flex-shrink: 0;
}

.brand-name {
  color: #6ee7e7;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
}

.brand-tagline {
  color: #fff;
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.4;
}

/* Títulos de sección */
.footer-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 8px;
  flex-shrink: 0;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #a259e6 0%, #6ee7e7 100%);
}

/* Enlaces rápidos */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 4px 0;
}

.footer-links a:hover {
  color: #6ee7e7;
  transform: translateX(6px);
  text-shadow: 0 0 8px rgba(110,231,231,0.5);
}

/* Información de contacto */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: flex-start;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.95rem;
}

.contact-item i {
  color: #6ee7e7;
  width: 16px;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item span {
  opacity: 0.9;
}

/* Redes sociales */
.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
  align-items: flex-start;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(162,89,230,0.2);
  border: 1px solid rgba(162,89,230,0.3);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.social-icon:hover {
  background: #a259e6;
  border-color: #a259e6;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(162,89,230,0.4);
}

.social-icon:nth-child(even) {
  background: rgba(110,231,231,0.2);
  border-color: rgba(110,231,231,0.3);
}

.social-icon:nth-child(even):hover {
  background: #6ee7e7;
  border-color: #6ee7e7;
  color: #2a1b3d;
}

/* Responsive */
@media (max-width: 900px) {
  .header {
    padding: 24px 24px 0 24px;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  
  .nav {
    gap: 16px;
  }
  
  .nav a {
    font-size: 0.9rem;
    padding: 0 8px;
  }
  
  .main-content {
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
    margin-bottom: 0;
    padding: 50px 16px;
    text-align: center;
  }
  
  .profile-pic {
    width: 250px;
    height: 250px;
    margin: 0 auto;
  }
  
  .intro {
    max-width: 100%;
    margin-top: 0;
  }
  
  .intro h1 {
    font-size: 2.5rem;
  }
  
  .intro h2 {
    font-size: 1rem;
  }
  
  .buttons {
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 12px;
  }
  
  .btn {
    width: 80px;
    height: 80px;
    font-size: 0.9rem;
  }
  
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 32px 24px 20px 24px;
    height: auto;
    min-height: 300px;
    position: relative;
    width: 100%;
    margin-top: 32px;
  }
  
  .footer-section {
    margin: 0;
    width: 100%;
    height: auto;
  }
  
  .footer-title {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .brand-name {
    font-size: 1.3rem;
  }
  
  .social-icons {
    gap: 10px;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  /* Footer responsive ajustado */
}

@media (max-width: 500px) {
  .header {
    padding: 20px 16px 0 16px;
    gap: 12px;
  }
  
  .logo .name {
    font-size: 1rem;
  }
  
  .logo .role {
    font-size: 0.8rem;
  }
  
  .nav a {
    font-size: 0.85rem;
    padding: 0 6px;
  }
  
  .main-content {
    margin-top: 24px;
    margin-bottom: 0;
    padding: 40px 12px;
    gap: 24px;
  }
  
  .profile-pic {
    width: 200px;
    height: 200px;
  }
  
  .intro h1 {
    font-size: 2rem;
  }
  
  .intro h2 {
    font-size: 0.95rem;
  }
  
  .intro p {
    font-size: 0.9rem;
  }
  
  .buttons {
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 10px;
  }
  
  .btn {
    width: 70px;
    height: 70px;
    font-size: 0.85rem;
  }
  
  .footer {
    padding: 24px 16px 16px 16px;
    gap: 24px;
    min-height: 250px;
    margin-top: 24px;
  }
  
  .footer-title {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }
  
  .brand-name {
    font-size: 1.2rem;
  }
  
  .brand-tagline {
    font-size: 0.85rem;
  }
  
  .footer-links a {
    font-size: 0.9rem;
  }
  
  .contact-item {
    font-size: 0.9rem;
    gap: 8px;
  }
  
  .contact-item i {
    font-size: 0.9rem;
  }
  
  .social-icons {
    gap: 8px;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  /* Footer responsive ajustado */
}

@media (max-width: 400px) {
  .header {
    padding: 16px 12px 0 12px;
    gap: 10px;
  }
  
  .logo .name {
    font-size: 0.9rem;
  }
  
  .logo .role {
    font-size: 0.75rem;
  }
  
  .nav a {
    font-size: 0.8rem;
    padding: 0 4px;
  }
  
  .main-content {
    margin-top: 20px;
    margin-bottom: 0;
    padding: 32px 8px;
    gap: 20px;
  }
  
  .profile-pic {
    width: 180px;
    height: 180px;
  }
  
  .intro h1 {
    font-size: 1.8rem;
  }
  
  .intro h2 {
    font-size: 0.9rem;
  }
  
  .intro p {
    font-size: 0.85rem;
  }
  
  .buttons {
    gap: 10px;
  }
  
  .btn {
    width: 65px;
    height: 65px;
    font-size: 0.8rem;
  }
  
  .footer {
    padding: 20px 12px 12px 12px;
    gap: 20px;
    min-height: 220px;
    margin-top: 20px;
  }
  
  .footer-title {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .brand-name {
    font-size: 1.1rem;
  }
  
  .brand-tagline {
    font-size: 0.8rem;
  }
  
  .contact-item {
    font-size: 0.85rem;
    gap: 6px;
  }
  
  .contact-item i {
    font-size: 0.85rem;
  }
  
  .social-icons {
    gap: 6px;
  }
  
  .social-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  
  /* Footer responsive ajustado */
}

/* Espacio eliminado - footer ya no es fijo */

.contact-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(162,89,230,0.18);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s;
}
.contact-modal.active {
  display: flex;
}
.contact-modal-content {
  background: linear-gradient(135deg, #fff 70%, #e0e7ff 100%);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(162,89,230,0.18);
  padding: 36px 32px 28px 32px;
  min-width: 280px;
  max-width: 90vw;
  text-align: center;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(.4,2,.6,1) 1;
}
@keyframes modalIn {
  from { transform: scale(0.85) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #a259e6;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(80,0,80,0.10);
  transition: background 0.2s;
}
.close-modal:hover {
  background: #6ee7e7;
  color: #a259e6;
}
.modal-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}
.modal-socials .icon {
  width: 54px;
  height: 54px;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(80,0,80,0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  background: #fff;
  color: #a259e6;
}
.modal-socials .icon:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(80,0,80,0.13);
}
.modal-socials .icon.turq {
  color: #6ee7e7;
}
.modal-socials .icon.turq:hover {
  background: #6ee7e7;
  color: #fff;
}
@media (max-width: 900px) {
  .contact-modal-content {
    padding: 28px 24px 20px 24px;
    min-width: 260px;
    max-width: 85vw;
    border-radius: 20px;
  }
  .contact-modal-content h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }
  .modal-socials {
    gap: 20px;
    margin-top: 20px;
  }
  .modal-socials .icon {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }
  .close-modal {
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
    top: 14px;
    right: 14px;
  }
}
@media (max-width: 500px) {
  .contact-modal-content {
    padding: 24px 16px 16px 16px;
    min-width: 0;
    max-width: 92vw;
    margin: 0 8px;
    border-radius: 18px;
  }
  .contact-modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  .modal-socials {
    gap: 16px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .modal-socials .icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .close-modal {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    top: 12px;
    right: 12px;
  }
}
@media (max-width: 400px) {
  .contact-modal-content {
    padding: 20px 12px 14px 12px;
    margin: 0 6px;
    border-radius: 16px;
  }
  .contact-modal-content h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  .modal-socials {
    gap: 14px;
    margin-top: 16px;
  }
  .modal-socials .icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .close-modal {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    top: 10px;
    right: 10px;
  }
}
@media (max-width: 350px) {
  .contact-modal-content {
    padding: 18px 8px 12px 8px;
    margin: 0 4px;
  }
  .modal-socials {
    gap: 12px;
    margin-top: 14px;
  }
  .modal-socials .icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .close-modal {
    width: 26px;
    height: 26px;
    font-size: 1rem;
    top: 8px;
    right: 8px;
  }
}

/* Modal de Currículum */
.curriculum-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(162,89,230,0.18);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s;
  overflow-y: auto;
}
.curriculum-modal.active {
  display: flex;
}
.curriculum-modal-content {
  background: linear-gradient(135deg, #fff 70%, #e0e7ff 100%);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(162,89,230,0.18);
  padding: 36px 32px 28px 32px;
  min-width: 320px;
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(.4,2,.6,1) 1;
  overflow-y: auto;
}
.curriculum-modal-content h2 {
  text-align: center;
  color: #a259e6;
  margin-bottom: 24px;
  font-size: 1.8rem;
}
.cv-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cv-content {
  max-width: 600px;
  text-align: left;
  line-height: 1.6;
}

.cv-content p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #444;
  text-align: justify;
}

.cv-content p:last-child {
  margin-bottom: 0;
}
.cv-display iframe {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(162,89,230,0.15);
  background: #fff;
}
.cv-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(162,89,230,0.15);
}
.cv-download {
  margin-top: 16px;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #a259e6 0%, #6ee7e7 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(162,89,230,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(162,89,230,0.35);
}

@media (max-width: 900px) {
  .curriculum-modal-content {
    padding: 28px 24px 20px 24px;
    min-width: 280px;
    max-width: 85vw;
    max-height: 80vh;
  }
  .curriculum-modal-content h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  .cv-content {
    max-width: 100%;
  }
  .cv-content p {
    font-size: 0.95rem;
  }
  .cv-display iframe {
    height: 400px;
  }
}
@media (max-width: 500px) {
  .curriculum-modal-content {
    padding: 24px 16px 16px 16px;
    min-width: 0;
    max-width: 92vw;
    margin: 0 8px;
    border-radius: 18px;
    max-height: 75vh;
  }
  .curriculum-modal-content h2 {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }
  .cv-content p {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }
  .cv-display iframe {
    height: 350px;
  }
  .download-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}
@media (max-width: 400px) {
  .curriculum-modal-content {
    padding: 20px 12px 14px 12px;
    margin: 0 6px;
    border-radius: 16px;
  }
  .curriculum-modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }
  .cv-content p {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }
  .cv-display iframe {
    height: 300px;
  }
  .download-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
