
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #f5f1f1;
  color: #0c0b0b;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 6px;
}


header {
  background-color: #89496c;
  color: #e5b2ce;
  padding: 1rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 2rem;
}

.header-principal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(to right, #1a4b51, #80baea);
  color: rgb(239, 232, 232);
}

.foto-perfil-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.foto-perfil-header img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid rgb(56, 104, 130);
  object-fit: cover;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.foto-perfil-header img:hover {
  transform: scale(1.05);
}

.foto-perfil-header h1 {
  margin: 0.5rem 0 0.2rem;
  font-size: 2rem;
}

.foto-perfil-header p {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
}


.redes-header {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-red-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgb(167, 112, 156);
  color: #222;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-red-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn-red-social.instagram {
  color: #9a3658;
}

.btn-red-social.github {
  color: #769ec6;
}


.btn-descargar {
  display:inline-block;
  margin-top: 1rem;
  background-color: #4f80b3;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
  
  
}

.btn-descargar:hover {
  background-color: #0056b3;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav ul li a {
  color: #f7c3df;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #00bcd4;
}

.section {
  padding: 3rem 2rem;
  background-color:#89496c;
  margin: 1rem 0;
}

.container {
  max-width: 1100px;
  margin: auto;
}

h2 {
  margin-bottom: 1rem;
  color: #f5efef;
}


.skills-list {
  list-style: none;
}

.skills-list li {
  padding: 0.75rem;
  background: #c98a8a;
  margin: 0.5rem 0;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.skills-list li:hover {
  background: #83bce5;
}


.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}


.gallery {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.project {
  width: calc(50% - 1rem);
  background-color: #fafafa;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}


form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input,
form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

form button {
  background-color: #35759f;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}s

form button:hover {
  background-color: #131f35;
}

:root {
  --fondo: #ffffff;
  --texto: #1f1f1f;
}

body.dark-mode {
  --fondo: #0c0c27;
  --texto: #f5f5f5;
  background-color: var(--fondo);
  color: var(--texto);
}

body {
  background-color: var(--fondo);
  color: var(--texto);
  transition: all 0.3s ease;
}


.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}
input:checked + .slider {
  background-color: #2196f3;
}
input:checked + .slider:before {
  transform: translateX(26px);
}


footer {
  background-color: #89496c;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .cv-grid,
  .gallery {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .project {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  form input,
  form textarea {
    font-size: 0.9rem;
  }
}
