/* ===== RESET ===== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:black;
  line-height:1.65;
  background:#ffffff;
}

img{
  max-width:100%;
  display:block;
  border-radius:18px;
}

.hero img{
  max-width:350px;
  width:100%;
  height:auto;
  margin:auto;
  box-shadow:0 20px 40px rgba(0,0,0,0.08);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp{
  from{opacity:0; transform:translateY(25px);}
  to{opacity:1; transform:translateY(0);}
}
@keyframes fadeIn{
  from{opacity:0;}
  to{opacity:1;}
}

/* ===== LAYOUT ===== */
.container{
  width:90%;
  max-width:1100px;
  margin:0 auto;
}

.section{
  padding:90px 0;
  position:relative;
  animation:fadeUp .8s ease both;
}

.section .btn {
  margin-top: 25px;
  display: inline-block;
}

.section.alt{
  background:#efeaff;
}

h1{
  font-size:44px;
  line-height:1.15;
  margin-bottom:20px;
  font-weight:600;
  letter-spacing:-0.5px;
}

h2{
  font-size:34px;
  margin-bottom:35px;
  font-weight:600;
  letter-spacing:-0.3px;
}

h3{
  font-size:20px;
  margin-bottom:12px;
}

p{
  color:black;
  font-size:16px;
}

/* ===== HEADER ===== */
.header{
  position:sticky;
  top:0;
  background:rgba(230,224,255,0.75);
  backdrop-filter:blur(12px);
  border-bottom:1px solid #eee;
  z-index:100;
  transition:.25s ease;
}

.header:hover{
  backdrop-filter:blur(16px);
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:22px 0;
}

.logo{
  font-family: "Playfair Display", serif;
  font-size:22px;
  font-weight:600;
  letter-spacing:.5px;
}

nav{
  display:flex;
  align-items:center;
}

nav a{
  margin-left:28px;
  text-decoration:none;
  color:#333;
  font-size:15px;
  position:relative;
  transition:.2s ease;
}

nav a:hover{
  opacity:.7;
  color:#4c3bbd;
}

nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:#4c3bbd;
  transition:.25s ease;
}

nav a:hover::after{
  width:100%;
}

/* ===== HERO ===== */
.hero{
  padding:110px 0 70px 0;
  background:
  linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.95)),
  url("img/hero-bg.jpg");
  background-size:cover;
  background-position:center;
  animation:fadeIn 1s ease both;
}

.hero-content{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  align-items:center;
}

.hero p{
  margin-bottom:28px;
  font-size:18px;
  color:black;
}

.hero img{
  box-shadow:0 20px 60px rgba(0,0,0,0.08);
  transition:.4s ease;
}

.hero img:hover{
  transform:translateY(-6px);
}

/* ===== BUTTON ===== */
.btn{
  display:inline-block;
  background:#4c3bbd;
  color:white;
  padding:15px 28px;
  text-decoration:none;
  border-radius:10px;
  font-size:15px;
  transition:.25s ease;
  box-shadow:0 6px 20px rgba(76,59,189,0.25);
  border:none;
  cursor:pointer;
  position:relative;
  overflow:hidden;
}

.btn:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(76,59,189,0.35);
  background:#3b2ea3;
}

.btn:active{
  transform:translateY(-1px);
}

/* botón dentro de cards */
.card .btn{
  margin-top:15px;
  align-self:flex-start;
}

/* ===== SOBRE DECORACIÓN ===== */
#sobre::before{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  background:#e3dbff;
  border-radius:50%;
  top:-120px;
  left:-120px;
  z-index:-1;
}

/* ===== CARDS ===== */
.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  margin-top:45px;
}

.card{
  background:white;
  padding:32px;
  border-radius:18px;
  border:1px solid #eee;
  transition:.3s ease;
  display:flex;
  flex-direction:column;
  position:relative;
}

.card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 50px rgba(76,59,189,0.18);
}

/* ===== RESEÑAS ===== */
#resenas{
  background:linear-gradient(to bottom,#efeaff,#ffffff);
}

#resenas .card{
  font-style:italic;
}

#resenas .card strong{
  display:block;
  margin-top:15px;
  font-style:normal;
}

/* ===== FORM ===== */
form{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:35px;
  max-width:600px;
}

input, textarea, select{
  padding:15px;
  border-radius:10px;
  border:1px solid #ddd;
  font-size:15px;
  font-family:inherit;
  transition:.2s ease;
  background:white;
}

input:hover,
textarea:hover,
select:hover{
  border-color:#bbb;
}

input:focus,
textarea:focus,
select:focus{
  outline:none;
  border-color:#4c3bbd;
  box-shadow:0 0 0 3px rgba(76,59,189,0.18);
}

textarea{
  min-height:140px;
  resize:vertical;
}

/* ===== CONTACT TEXT ===== */
#contacto p{
  margin-top:25px;
  font-size:14px;
  line-height:1.6;
}

/* ===== FOOTER ===== */
.footer{
  padding:50px 0;
  border-top:1px solid #eee;
  background:rgb(66,61,55);
}

.footer .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:15px;
}

.footer a, .footer p{
  color:#e8e5e5;
  text-decoration:none;
}

/* ===== ANCHOR CORRECTION (sticky header) ===== */
#sobre,
#servicios,
#proceso,
#resenas,
#contacto{
  scroll-margin-top:110px;
}

/* ===== AVISO LEGAL ===== */
.section_al{
  padding:90px 0;
  position:relative;
  animation:fadeUp .8s ease both;
}

.section_al .container{
  max-width:800px;
}

.section_al h1{
  font-size:44px;
  line-height:1.15;
  margin-bottom:20px;
  font-weight:600;
  letter-spacing:-0.5px;
  color:black;
  text-align:left;
}

.section_al h2{
  font-size:22px;
  font-weight:600;
  letter-spacing:-0.2px;
  margin-top:50px;
  margin-bottom:16px;
  color:black;
  border-bottom:none;
  padding-bottom:0;
  position:relative;
}

.section_al h2::after{
  content:"";
  display:block;
  width:36px;
  height:3px;
  background:#4c3bbd;
  border-radius:2px;
  margin-top:8px;
}

.section_al p{
  font-size:16px;
  color:#333;
  line-height:1.8;
  margin-bottom:18px;
}

.section_al ul{
  margin-left:0;
  margin-bottom:20px;
  padding-left:0;
  list-style:none;
}

.section_al ul li{
  font-size:16px;
  color:#333;
  line-height:1.8;
  margin-bottom:10px;
  padding-left:22px;
  position:relative;
}

.section_al ul li::before{
  content:"";
  position:absolute;
  left:0;
  top:11px;
  width:8px;
  height:8px;
  background:#4c3bbd;
  border-radius:50%;
  opacity:0.5;
}

/* ========================= */
/* ===== RESPONSIVE ======== */
/* ========================= */
@media (max-width:900px){
  h1{font-size:34px;}
  .hero-content{grid-template-columns:1fr; gap:45px;}
  .cards{grid-template-columns:1fr 1fr;}

  .hero img{
    max-width:280px;
  }
  .nav{
    padding:16px 0;
  }

  .logo{
    font-size:18px;
  }

  .section_al h1{
    font-size:34px;
  }
}

@media (max-width:600px){
  .section{padding:65px 0;}
  h1{font-size:28px;}
  h2{font-size:24px;}
  .nav{flex-direction:column; align-items:flex-start; gap:10px;}
  nav{display:flex; flex-wrap:wrap; gap:15px;}
  nav a{margin:0;}
  .cards{grid-template-columns:1fr;}
  .hero-content{
    grid-template-columns: 1fr;
  }

  .hero-content h1{ order:1; }
  .hero-content p{ order:2; }
  .hero-content img{ 
    order:3;
    margin: 15px 0;
  }
  .hero-content .btn{ 
    order:4;
    margin-top: 10px;
  }
  form{width:100%;}
  .nav{
    padding:12px 0;
  }

  .logo{
    font-size:25px;
  }

  nav a{
    font-size:14px;
  }

  #sobre::before{
    width:160px;
    height:160px;
    top:-60px;
    left:-60px;
    opacity:0.5;
  }

  .section_al{
    padding:65px 0;
  }

  .section_al h1{
    font-size:28px;
  }

  .section_al h2{
    font-size:20px;
    margin-top:38px;
  }
}