* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    background-color: #e6f0fa; /* Azul cielo claro */
    color: #222; /* Gris oscuro para buena legibilidad */
    line-height: 1.6;
    scroll-behavior: smooth;
  }

  .btn-inicio {
  display: inline-block;
  background-color: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin: 1rem;
  transition: background-color 0.3s ease;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 999;
}

.btn-inicio:hover {
  background-color: #2563eb;
}
  
  section {
    padding: 4rem 2rem;
    text-align: center;
  }
  
  .intro {
    position: relative;
    background: url('imagenes/portada\ youtube3.jpg') center/cover no-repeat;
    height: 100vh;
  }

  .redes {
  position: absolute;
  top: 10%;
  right: 5%;
  display: flex;
  gap: 10px;
  opacity: 0.6;
}
  
 .letras {
  position: absolute;
  top: 50%;           /* Altura: ajústalo si hace falta */
  left: 5%;           /* Más a la izquierda */
  transform: translateY(-55%);
  max-width: 600px;
  color: #fff;        /* Letras blancas */
    /* Alineación del texto */
  padding: 2rem;
  box-shadow: 0 0 20px rgba(124, 135, 146, 0.869);
  border-radius: 20px;
  }


  .intro .overlay {
    position: absolute;
    top: 50%;      /* vertical */
    left: 60%;      /* horizontal */
    transform: translateY(-50%);
    max-width: 400px;
    color: #fff; 
    padding: 2rem;
    box-shadow: 0 0 20px rgba(226, 222, 222, 0.869);
    border-radius: 20px;
  }

  .icono-red {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    transition: transform 0.3s ease;
  }
  
  .icono-red:hover {
    transform: scale(1.2);
  }
  
  .intro h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
     color: #eeeeee;
    text-shadow: 2px 2px 3px rgba(24, 27, 45, 0.4);
  }
  
  .intro p {
    font-size: 2.2rem;
    color: #161515;
    text-shadow: 2px 2px 2px rgba(238, 240, 250, 0.917);
  }
  
  .bloque {
    position: relative;
    overflow: hidden;
  }
  
  .media {
    position: relative;
    max-width: 900px;
    margin: auto;
    cursor: pointer;
  }
  
  .media img,
  .media video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  
  .texto-hover {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.8);
    color: #222;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease;
    font-size: 1rem;
    max-width: 80%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .media-hover:hover img,
  .media-hover:hover video {
    transform: scale(1.05);
  }
  
  .media-hover:hover .texto-hover {
    opacity: 1;
  }
  
  .contacto {
    background-color: #dbeafe; /* Azul pastel claro */
    color: #111;
    padding: 4rem 2rem;
  }
  
  .contacto h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3b82f6; /* Azul profesional */
  }
  
  .contacto a {
    color: #3b82f6;
    text-decoration: none;
  }
  
  .contacto a:hover {
    text-decoration: underline;
  }
  
  .footer {
    text-align: center;
    padding: 2rem;
    background-color: #c7d2fe; /* Azul muy claro para el pie */
    font-size: 0.9rem;
    color: #333;
  }
  .btn {
    display: inline-block;
    background-color: #3b82f6; /* Azul profesional */
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .btn:hover {
    background-color: #2563eb; /* Azul más oscuro al pasar el ratón */
    transform: scale(1.05);
  }
  .bloque-servicios {
  position: relative;
  text-align: center;
  margin-top: 2rem;
}

.btn-servicios {
  display: inline-block;
  background-color: #3b82f6;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.servicios-opciones {
  display: none;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.servicio {
  background-color: #fff;
  color: #222;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.servicio:hover {
  transform: scale(1.05);
}


/*bloque agencia*/

.bloque-diseno .media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.bloque-diseno img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.bloque-diseno .texto-hover {
  position: absolute;
  bottom: 5%;
  left: 5%;
  color: #fff;
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem 2rem;
  border-radius: 10px;
  max-width: 90%;
  text-align: center;
}

.bloque-diseno .btn {
  display: inline-block;
  margin-top: 1rem;
  background-color: #3b82f6;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.bloque-diseno .btn:hover {
  background-color: #2563eb;
}

/*bloque iberik*/

.bloque-dron .media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.bloque-dron img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.bloque-dron .texto-hover {
  position: absolute;
  bottom: 5%;
  left: 5%;
  color: #fff;
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem 2rem;
  border-radius: 10px;
  max-width: 90%;
  text-align: center;
}

.bloque-dron .btn {
  display: inline-block;
  margin-top: 1rem;
  background-color: #3b82f6;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.bloque-dron .btn:hover {
  background-color: #2563eb;
}


.cabecera-divache {
  background-color: #011c38;
  color: white;
  text-align: center;
  padding: 4rem 3rem;
  background-image: url('imagenes/cabecera\ divache.jpg'); /* Ajusta con tu imagen */
  background-size: cover;
  background-position: center;
}

.cabecera-divache {
  font-size: 2rem; /* Aumenta a gusto: 2.5, 3rem, etc. */
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.subtitulo-divache {
  font-size: 1.2rem; /* Ajusta según lo que necesites */
  font-weight: 300;
}

.seccion {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

.seccion h2 {
  color: #011c38;
  margin-bottom: 1rem;
  border-bottom: 3px solid #ddd;
  padding-bottom: .5rem;
}

.seccion ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: #333;
  text-align: left;
  list-style-type: disc;
  padding-left: 1.5em;
}
.servicio li {
  margin-bottom: 0.5em;
}
/*
  old styles here...
} .footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  padding: 2rem 1rem;
}*/


/* estilos página iaaplicada */

/* Botón común */
.btn {
  display: inline-block;
  background-color: #0055ff;
  color: white;
  padding: 10px 20px;
  margin-top: 15px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #003bb3;
}

/* Sección cabecera con imagen */
.cabecera-ia img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-bottom: 5px solid #0055ff;
}

/* Descripción */
.descripcion {
  padding: 40px 20px;
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.descripcion h2 {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #222;
}

.descripcion p {
  font-size: 1.2em;
  color: #555;
  line-height: 1.6em;
}

/* Servicios IA */
.servicios-ia {
  background-color: #f5f5f5;
  padding: 50px 20px;
}

.servicios-ia h3 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
}

.servicios-ia ul {
  max-width: 800px;
  margin: auto;
  list-style-type: none;
  padding: 0;
}

.servicios-ia li {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.5em;
  color: #333;
  padding-left: 25px;
  position: relative;
}

.servicios-ia li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0055ff;
  font-size: 1.5em;
}

/* Llamada a la acción final */
.llamada {
  background-color: #e7f0ff;
  text-align: center;
  padding: 40px 20px;
}

.llamada p {
  font-size: 1.2em;
  color: #222;
  margin-bottom: 20px;
}

/* === SECCIÓN SOBRE MÍ === */

/* Imagen de cabecera */
.cabecera-sobremi {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.cabecera-sobre-mi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.fondo-sobremi {
  background-image: url('imagenes/portada\ youtube3.jpg'); /* cambia el nombre por el tuyo */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #e6f0fa; /* color de respaldo */
  color: #fff; /* texto blanco */
}
body::before.fondo-sobremi {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* negro con opacidad del 40% */
  z-index: -1;
}


.cabecera-sobre-mi .texto-cabecera {
  position: absolute;
  top: 20px;
  left: 30px;
  color: white;
  font-size: 4rem;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* Presentación personal */
.presentacion {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.presentacion h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #222;
}

.presentacion p {
  font-size: 1.2em;
  color: #555;
  line-height: 1.8em;
  margin-bottom: 30px;
}

/* Imagen lateral en sección */
.presentacion .imagen-david {
  float: right;
  width: 250px;
  margin: 0 0 20px 30px;
  border-radius: 10px;
  opacity: 0.95;
}

/* Subsecciones */
.sobre-seccion {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
}

.sobre-seccion h2 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #0055ff;
}

.sobre-seccion p {
  font-size: 1.1em;
  line-height: 1.7em;
  color: #444;
  margin-bottom: 20px;
}

.sobre-seccion ul {
  list-style-type: disc;
  padding-left: 20px;
}

.sobre-seccion ul li {
  margin-bottom: 10px;
  color: #333;
}

/* CV o recorrido profesional */
.sobre-cv {
  background-color: #f5f5f5;
  padding: 50px 20px;
  text-align: center;
}

.sobre-cv h3 {
  font-size: 2em;
  color: #222;
  margin-bottom: 20px;
}

.sobre-cv p {
  font-size: 1.1em;
  max-width: 700px;
  margin: auto;
  color: #444;
  line-height: 1.6em;
}


.sobremi .bloque-diseno {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.sobremi .media {
  position: relative;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sobremi .media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.sobremi .media-hover:hover img {
  transform: scale(1.05);
}

.sobremi .texto-hover {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 100%;
  padding: 15px;
  box-sizing: border-box;
}

.sobremi .texto-hover h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.sobremi .texto-hover p {
  margin: 0;
  font-size: 16px;
}



@media (max-width: 768px) {

  body {
    font-size: 16px;
    padding: 0;
    margin: 0;
  }

  header {
    padding: 20px;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero {
    padding: 40px 20px;
    text-align: center;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .pantallas {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .pantalla {
    width: 90%;
    max-width: 400px;
  }

  .pantalla img {
    width: 100%;
    height: auto;
  }

  .pantalla h3 {
    font-size: 20px;
  }

  .pantalla p {
    font-size: 15px;
  }
}

  /*footer {
    padding: 20px;
    text-align: center;
  }
}*/

/* ==== ESTILOS RESPONSIVE PARA MÓVIL ==== */
@media screen and (max-width: 768px) {

  .intro {
    height: auto;
    padding-bottom: 2rem;
  }

  .letras,
  .intro .overlay {
    position: static;
    transform: none;
    max-width: 90%;
    margin: 2rem auto;
    padding: 1.5rem;
    text-align: center;
    box-shadow: none;
  }

  .letras h1 {
    font-size: 2rem;
  }

  .letras p,
  .intro .overlay p {
    font-size: 1.1rem;
  }

  .intro h1 {
    font-size: 2.5rem;
    text-align: center;
  }

  .btn-servicios {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    margin: 1rem auto;
    display: block;
    text-align: center;
  }

  .servicios-opciones {
    flex-direction: column;
    align-items: center;
  }

  .servicio {
    width: 90%;
    text-align: center;
    font-size: 1rem;
  }

  .media img {
    border-radius: 8px;
  }

  .texto-hover {
    font-size: 0.95rem;
    bottom: 0.5rem;
    left: 0.5rem;
    padding: 0.6rem 1rem;
    max-width: 90%;
  }

.footer {
  background-color: #111;
  padding: 20px 0;
  text-align: center;
}

.footer .redes a {
  margin: 0 10px;
  display: inline-block;
}

.footer .redes img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer .redes img:hover {
  transform: scale(1.1);
  filter: brightness(0) invert(0.5) sepia(1) hue-rotate(180deg);
}

}
.footer {
  background-color: #111;
  padding: 20px 0;
  text-align: center;
}

.footer .redes a {
  margin: 0 10px;
  display: inline-block;
}

.footer .redes img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer .redes img:hover {
  transform: scale(1.1);
  filter: brightness(0) invert(0.5) sepia(1) hue-rotate(180deg);
}
