@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');



*,
*::after,
*::before
 {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  outline-color: transparent;
}


/* ----------------
   reglas generales
   ---------------- */

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 6em;
}


@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}


body {
  font-family: Raleway;
  background-color: #5d0084;
  width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p { 
  margin-block-end: 1em;
}


h1
{
  color: #FC7BC2;
  font-size: 40px;
  line-height: 1.1;
  text-wrap: balance;
  margin-block-end: 1em;
}
h2
{
  color: #FC7BC2;
  font-size: 30px;
  line-height: 1.1;
  text-wrap: balance;
  margin-block-end: 1em;
  display:contents
}

h4 {
  color: #ffffff;
  font-size: 30px;
  display: contents;
}
p {
  line-height: 1.6;
  color: #f9f9f9;
}


p,
li,
figcaption {
  text-wrap: pretty;
}


a {
  text-decoration: none;
}

.curso{
  background-color: #f36db7;
  color: white;
  padding: 10px 20px;
  width: 100%;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2)

}

ul,
ol {
  list-style: none; 
  padding: 0;
}


img {
  max-width: 100%;
  height: auto;
  vertical-align:middle
}



/* "Contenedora" centra contenidos y limita su ancho */

.contenedora {
  width: min(70rem, 100%); /* limita el ancho a 800px */
  margin-inline: auto; 
  padding: 1rem; 
}

.contenedora-contacto {
  width: min(70rem, 100%); /* limita el ancho a 800px */
  margin-inline: auto; 
  padding: 1rem;
  background-color:#AE0060;
  border-radius: 1rem;
}
header,
footer {
  background-color: #5d0084;
  color: white;
  width: 100%;
}


/* menu y encabezado */


header {
  box-shadow: 0 4px 2px hsl(0 0% 0% / 0.25); /* sombra difusa  */
  /* "pegado" al borde superior de la ventana */
  position: sticky;
  /* capa superior arriba de casi todo */
  z-index: 8000;
}

header .contenedora {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#logo {
  display: flex; /* caja flexible */
  align-items: center; /* hijos centrados en la vertical */
  /* sale del fondo pero no parece */
  position: relative;
  /* capa superior, arriba de todo */
  z-index: 9999;
}

#logo img {
  width: 6em;
  margin-inline-end:.75em;
}
#logo h3 {
  margin: 0;
  color: hsl(0 0% 90%);
  font-size: 1.5rem;
}

/* menu - boton hamburguesa */

.menu-btn {
  background: hsl(0 0% 100% / 0.25);
  border-radius: 50%;
  box-shadow: -5px 5px 5px hsl(180 100% 4% / 0.2);
  padding: .75rem;
  width: 3rem;
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.3s ease-out;
  position: relative;
  z-index: 9000;
}

.menu-btn .btn-linea {
  width: 25px;
  height: 3px;
  margin: 4px 0 4px 0;
  background: hsl(0 0% 90%);
  transition: all 0.3s ease-out;
}

.menuVisible .menu-btn .btn-linea {
  transform: rotate(180deg);
}
/* Las tres barras para formar la "X" */
.menuVisible .menu-btn .btn-linea:nth-child(1) {
  transform: rotate(45deg) translate(4px, 6px);
}
.menuVisible .menu-btn .btn-linea:nth-child(2) {
  opacity: 0;
}
.menuVisible .menu-btn .btn-linea:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -6px);
}

/* menú propiamente dicho */
nav ul {

  display: grid;
  place-items: center;
  place-content: center;
  position: fixed;
  inset: 0;
  z-index: 8000;
  translate: 100%; 
  transition: all .6s ease; /* anima cuando "nav" NO tiene la clase "menuVisible" */
}

.menuVisible ul {
  background-color: hsla(315, 30%, 55%, 0.95);
  transition: all .3s ease; /* anima cuando "nav" tiene la clase "menuVisible" */
  translate: 0;
}

/* cada vínculo del menu */
nav ul li a {
  border-bottom: solid 3px hsl(0 0% 100% / 0.1);
  color: white;
  display: block;
  font-size: 1.5rem;
  margin-block-end: .5rem;
  width: min(70vw, 20rem); /* el valor menor entre el 40% del ancho de la ventana del navegador y 240px */
  text-align: center;
   padding: .5rem;
  text-decoration: none;
}

nav ul li a:hover {
  border-bottom: solid 3px hsl(0 0% 100% / 0.5);
  transition: all .3s;
}




/* imagen principal */ 

/* Sección principal con imagen de fondo */

.comitente {
width: 100%;
min-height: clamp(1rem, 0.3043rem + 3.4783vw, 3rem);
position: relative;
display: flex;
align-items: center;
gap: 2rem;
background-image: url(../imagenes/header.jpg);
background-size: cover;
color: #fbfbfb;
background-position: right;
padding-block: clamp(5rem, 2.3913rem + 13.0435vw, 12.5rem);


}


.comitentetexto{
max-width: 40rem;
background-color: hsla(0, 0%, 0%, 0.702);
padding: 1rem;
padding-left: clamp(1rem, 0.3043rem + 3.4783vw, 3rem);
}

.tituloPrincipal {
  top: 3em;
  position: absolute;
  padding: 1em;
}



/* Contenedor de contenido a la izquierda */
.content {
  background: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente para mejorar la legibilidad */
  padding: 40px;
  margin-left: 30px;
  border-radius: 10px;
  max-width: 45%; /* Limita el ancho del contenido */
}

/* Título y botón */
.custom-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.custom-button {
  background-color: #AE0060;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  margin-top: 10px;
  transition: background-color 0.3s ease;
  display: block;
  width: fit-content;
}

.custom-button:hover {
  background-color: #c21273;
}


@media (min-width: 40em) {
  .custom-section {
    flex-direction: column; /* Cambia a disposición vertical en pantallas pequeñas */
    align-items: center; /* Centra el contenido horizontalmente */
    padding: 20px;
  }

  .content {
    max-width: 100%; /* Ocupa todo el ancho en pantallas pequeñas */
    padding: 15px;
  }

  .custom-section h2 {
    font-size: 1.5rem;
  }

  .custom-button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* iconos */ 

.features-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  background-color: #5d0084; /* Color de fondo similar al de tu imagen */
  padding: 20px;
}

.feature {
  flex: 1 1 200px; /* Flexibilidad para ocupar un espacio mínimo en dispositivos pequeños */
  max-width: 220px; /* Ancho máximo para cada bloque */
  text-align: center;
  color: white;
  margin: 10px;
}

.icon img {
  width: 50px; /* Tamaño del icono */
  height: 50px;
  margin-bottom: 10px;
}

h3 {
  margin-top: 10px;
  font-size: 18px;
}

p {
  font-size: 16px;
  margin-top: 5px;
}


.features-section {
flex-direction: row;
}
  
.features-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  background-color: #5d0084; /* Color de fondo similar al de tu imagen */
  padding: 20px;
}

.feature {
  flex: 1 1 200px; /* Flexibilidad para ocupar un espacio mínimo en dispositivos pequeños */
  min-width: 220px; /* Ancho máximo para cada bloque */
  text-align: center;
  color: white;
  margin: 10px;
}

.icon img {
  width: 50px; /* Tamaño del icono */
  height: 50px;
  margin-bottom: 10px;
}

h3 {
  margin-top: 10px;
  font-size: 18px;
}

p {
  font-size: 14px;
  margin-top: 5px;
}


  /* Cards */ 

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.contenedora-cards{
  gap: 2rem;
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card{
  width: 325px;
  background-color: #AE0060;
  border-radius: 5px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.6s ease;
}

.card2{
  width: 325px;
  background-color: #7A0043;
  border-radius: 5px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.6s ease;
}

.card:hover{
  transform:translateY(-20px);
}

.card2:hover{
  transform:translateY(-20px);
}

.card img{
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-content{
  padding: 2rem;
}

.card-content h2{
  font-size: 24px;
  margin-bottom: 2rem;
  color: #ffffff;
}

.card-content p{
  font-size: 14px;
  margin-bottom: 1rem;
}

.card-boton{
  display: inline-block;
  background-color: #c91f7c;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  padding: 8px 16px;
}

.card-boton:hover{
  background-color: #d42485;
}


/* testimonios */ 

.testimonial{
  text-align: center;
  padding: 85px 50px 45px 70px;
  margin: 90px 15px 35px;
  background: #f9f9f9;
  border-radius: 1em;
  position: relative;
}
.testimonial .pic{
  width: 120px;
  height: 120px;
  border: 5px solid #d34593;
  margin: 0 auto;
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
}
.testimonial .pic img{
  width: 100%;
  height: auto;
}
.testimonial .description{
  font-size: 15px;
  color: #030303;
  line-height: 27px;
  margin-bottom: 20px;
  position: relative;
}
.testimonial .description:before{
  font-family: "Raleway";
  font-size: 32px;
  color: #d364d3;
  position: absolute;
  top: -15px;
  left: -35px;
}
.testimonial .testimonial-profile{
  position: relative;
  margin: 20px 0 10px 0;
}
.testimonial .testimonial-profile:after{
  content: "";
  width: 50px;
  height: 2px;
  background: #c957a7;
  margin: 0 auto;
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
}
.testimonial .title{
  display: inline-block;
  font-size: 18px;
  color: #d34593;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}
.testimonial .post{
  display: inline-block;
  font-size: 15px;
  color: #000000;
  text-transform: capitalize;
}
.owl-theme .owl-controls{
  margin-top: 10px;
}
.owl-theme .owl-controls .owl-page span{
  background: #5e5f5f;
  opacity: 1;
  transition: all 0.4s ease 0s;
}
.owl-theme .owl-controls .owl-page.active span,
.owl-theme .owl-controls.clickable .owl-page:hover span{
  background: #77a9dd;
}
.owl-theme .owl-controls .owl-page.active span{
  width: 22px;
  height: 12px;
}




/* formulario contacto */

.formulario {
  background:hsl(312, 17%, 77%);
  width: min(70rem, 100%); /* limita el ancho a 800px */
  margin-inline: auto; 
  padding: 2rem; 
}

form { min-width:400px; margin:50px auto; }

.feedback-input {
  font-family: Raleway;
  color:rgb(0, 0, 0);
  font-size: 18px;
  border-radius: 5px;
  line-height: 22px;
  background-color: white;
  border:2px solid #ffffff;
  transition: all 0.3s;
  padding: 13px;
  margin-bottom: 15px;
  width:100%;
  box-sizing: border-box;
  outline:0;
}

.feedback-input:focus { border:2px solid hsl(327, 85%, 69%); }

textarea {
  height: 150px;
  line-height: 150%;
  resize:vertical;
}

[type="submit"] {
  font-family: Raleway;
  width: 100%;
  background:hsl(330, 29%, 95%);
  border-radius:5px;
  border:0;
  cursor:pointer;
  color:rgb(0, 0, 0);
  font-size:18px;
  padding-top:10px;
  padding-bottom:10px;
  transition: all 0.3s;
  margin-top:-4px;
}
[type="submit"]:hover { background:#ffd1ea; }



/* textos */

.textos-titulo {
  padding-inline-start: 15px;
  margin: 30px;
  font-size: 35px;
}


.textos-parrafo-op {
  padding-inline-start: 15px;
  margin: 30px;
  font-size: 15px;
  color: white;
}

/* footer */


footer {
  padding: 20px;
  background-color: #5d0084;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.918);
  margin-top: 3rem;
}

footer .redes{
  display: flex;
  text-align: center;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: space-between;
  margin: 1.4em;
}

 footer img{
  width: 11rem;
 }

 footer h3{
  font-size: 24px;
  text-align: center;
  color:rgb(255, 255, 255);
 }

 footer p{
  font-size: 18px;
  text-align: center;
 }

/* parte del menu/encabezado */

@media(min-width: 50em) {

  header nav {
    position: unset;
  }

  /* botón "hamburguesa" oculto */
  .menu-btn {
    display: none;
  }

  /* menu visible */
  header nav ul,
  header .menuVisible ul {
    /* caja flexible para menu horizontal*/
    display: flex;
    /* separación entre sus elementos */
    gap: .40em;

    /* para que NO esté en capa superior */
    position: unset;

    /* elimina desplazamiento */
    translate: unset;

    /* elimina fondo */
    background-color: unset;
  }

  /* items de lista  que contienen los vínculos del menu */
  header nav ul li {
    min-width: 4em; /* que no midan menos de: */
  }

  /* vínculos del menu principal */
  header nav ul li a {
    background-color: #AE0060;
    border-radius: .50em;
    color: white;
    font-size: 1rem;
    width: auto;
    padding: .25em 1em;
    text-align: center;
    display: block; /* para que sean "cajas" */
    margin-block-end: unset;
    border-block-end: unset;
  }

  /* cuando el cursor se posiciona sobre los vínculos */
  header nav ul li a:hover {
    background-color: white;
    color: hsl(278, 79%, 26%);
    border-block-end: unset;
  }
}


