/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: #222;
  line-height: 1.6;
  background-color: #fff;
}

/* Variables */
:root {
  --primario: #b52121;
  --oscuro: #111;
  --claro: #f8f8f8;
  --gris: #666;
  --borde: #eaeaea;
}

/* Utilidades */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem;
}

h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.2rem;
  color: var(--primario);
}

p {
  margin-bottom: 1rem;
}

ul {
  list-style: none;
  padding-left: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* Botones */
.boton-cta,
.boton-secundario {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
  text-align: center;
}

.boton-cta {
  background-color: var(--primario);
  color: white;
}

.boton-cta:hover {
  background-color: #a61e1e;
}

.boton-secundario {
  border: 2px solid var(--primario);
  color: var(--primario);
  background: transparent;
}

.boton-secundario:hover {
  background-color: var(--primario);
  color: white;
}

/* HERO */
.hero {
  background: url('hero.webp') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  color: white;
}

.hero .container {
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero .resaltado {
  color: var(--primario);
}

.hero p {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* POR QUÉ ELEGIRNOS */
.porque-elegirnos {
  background: var(--claro);
  padding: 4rem 0;
}

.porque-elegirnos .grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card img {
  width: 50px;
  margin-bottom: 1rem;
}


.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  justify-items: center;
}

.price-card {
  background: white;
  border: 2px solid var(--borde);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  width: 100%;
  max-width: 340px;
}

.price-card:hover {
  box-shadow: 0 0 0 4px var(--primario);
}

.price-card ul li {
  padding: 0.5rem 0;
  color: var(--gris);
}

.destacado {
  border-color: var(--primario);
  background-color: #fff4f4;
  transform: scale(1.05);
  z-index: 1;
  box-shadow: 0 0 0 2px var(--primario);
}

/* FAQ */
.faq {
  background-color: var(--claro);
  padding: 4rem 0;
}

.faq-item {
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item h3 {
  margin-bottom: 0.5rem;
}

/* CONTACTO */
.contacto {
  padding: 4rem 0;
  text-align: center;
  background-color: #fdfdfd;
}

/* FOOTER */
footer {
  background: var(--oscuro);
  color: white;
  text-align: center;
  padding: 2rem;
}

footer nav a {
  color: #ccc;
  margin: 0 0.5rem;
  font-size: 0.9rem;
}

footer nav a:hover {
  color: white;
}

/* Animación scroll */
.oculto {
  opacity: 0;
  transform: scale(0.98) translateY(30px);
  transition: all 0.6s ease;
}

.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Botón flotante WhatsApp */
.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #ffffff;
  border-radius: 50%;
  padding: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.btn-whatsapp:hover {
  transform: scale(1.1);
}

.btn-whatsapp img {
  width: 32px;
  height: 32px;
}

@media (max-width: 480px) {
  .btn-whatsapp {
    bottom: 15px;
    right: 15px;
    padding: 0.6rem;
  }

  .btn-whatsapp img {
    width: 28px;
    height: 28px;
  }
}

.price-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.destacado:hover {
  background-color: #ffeaea;
}

.price-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}


.acordeon-titulo {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem;
  font-size: 1rem;
  font-weight: bold;
  color: var(--primario);
  cursor: pointer;
  border-bottom: 1px solid var(--borde);
  transition: background-color 0.2s ease;
}

.acordeon-titulo:hover {
  background-color: #f9f9f9;
}

.acordeon-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: white;
  padding: 0 1rem;
}

.acordeon-item.active .acordeon-contenido {
  max-height: 500px;
  padding: 1rem;
}

/* Página de condiciones */
.condiciones {
  padding: 4rem 0;
  background-color: var(--claro);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.condicion {
  background: white;
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s ease;
}

.condicion:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.condiciones-hero {
  background: url('/images/hero-zaragoza.webp') center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  height: 90vh;
}

.slider {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

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

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  z-index: 2;
}

.hero-slider h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero-slider p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.price-card p {
  font-size: 0.95rem;
  color: var(--gris);
  margin-bottom: 1rem;
}
.hero-secundario {
  height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--claro);
  overflow: hidden;
}

.hero-secundario .hero-bg {
  background: url('images/hero1.webp') center/cover no-repeat;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-secundario .hero-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
}

.hero-secundario h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.hero-secundario .subtitulo {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}
.banner-cookies {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f0f0f0;
  color: #333;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  flex-wrap: wrap;
  gap: 1rem;
}

.banner-cookies p {
  margin: 0;
  flex: 1 1 auto;
}

.banner-cookies button {
  flex: 0 0 auto;
}
.banner-descuento {
  position: sticky;
  top: 0;
  background-color: #fff4f4;
  color: #b52121;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 1000;
  border-bottom: 1px solid #f0dcdc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.banner-descuento button {
  background-color: #b52121;
  color: white;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 5px;
  margin-left: 1rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.banner-descuento button:hover {
  background-color: #a61e1e;
}
.precio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin: 1rem 0;
}

.precio-final {
  font-size: 2.2rem;
  color: var(--oscuro);
  font-weight: bold;
}

.precio-original {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}


.precio-descuento {
  color: var(--oscuro);
  font-size: 2rem;
}

.precio-original.oculto,
.precio-descuento.oculto {
  display: none;
}

.seccion-proyectos {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

.titulo-seccion {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #c2185b;
}

.proyecto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: auto;
}

.img-proyecto {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.info-proyecto {
  text-align: left;
}

.info-proyecto h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.info-proyecto p {
  font-size: 1rem;
  color: #555;
}

.boton-verde {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #00c853;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.boton-verde:hover {
  background-color: #009624;
}

.seccion-proyectos {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

.titulo-seccion {
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  color: var(--primario);
}

.tarjeta-proyecto {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  max-width: 1100px;
  margin: auto;
}

.tarjeta-proyecto:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.tarjeta-imagen img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.tarjeta-info {
  padding: 2rem;
  text-align: left;
}

.tarjeta-info h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: #222;
}

.tarjeta-info p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
}

.boton-ver-web {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: #00c853;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.tarjeta-proyecto:hover .boton-ver-web {
  background-color: #009624;
}

/* RESPONSIVE: columnas en pantallas grandes */
@media (min-width: 768px) {
  .tarjeta-proyecto {
    flex-direction: row;
  }

  .tarjeta-imagen {
    flex: 1;
  }

  .tarjeta-info {
    flex: 1;
    padding: 2rem 2.5rem;
  }
}
.sobre-mi {
  padding: 4rem 2rem;
  background-color: var(--claro);
  color: var(--oscuro);
  text-align: center;
}

.sobre-mi h2 {
  font-size: 2rem;
  color: var(--primario);
  margin-bottom: 1rem;
}

.sobre-mi p {
  max-width: 850px;
  margin: 0 auto 1.2rem auto;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.65;
}

.enlace-portfolio {
  color: var(--primario);
  font-weight: 600;
  text-decoration: underline;
}

.enlace-portfolio:hover {
  color: #a61e1e;
}
