/* =========================
   RESET Y BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  color: #fff;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  min-width: 100vw;
  width: 100dvw;
  height: 100dvh;
  min-height: 100dvh;
  min-width: 100dvw;  
  overflow-x: hidden;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  padding: 1rem;
  z-index: 1000;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.navbar a:hover {
  color: #ffcc00;
}

/* =========================
   SECCIONES Y OVERLAY
========================= */
.section {
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.overlay {
  background: rgba(0,0,0,0.4);
  padding: 2rem;
  border-radius: 0.67rem;
  max-width: 50rem;
  margin: 3rem 0 1.1rem 0;
}

/* =========================
   HERO Y TITULARES
========================= */
.hero h1 {
  font-size: 6rem;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* =========================
   SERVICIOS
========================= */
.servicios {
  list-style: none;
  margin-top: 1rem;
}

.servicios li {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

/* =========================
   CONTACTO
========================= */
.contacto {
  list-style: none;
  padding: 0;
  margin: 0;
}

#contacto .overlay {
  background: rgba(255,255,255,0.1);
}

.contacto li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.1rem 0;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.83rem 1.1rem;
  border-radius: 0.56rem;
  border-left: 0.22rem solid #28a745;
  transition: all 0.3s ease;
}

.contacto li:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(0.28rem);
}

.contact-icon {
  margin-right: 0.83rem;
  stroke: #28a745;
  width: 1.33rem;
  height: 1.33rem;
  min-width: 1.33rem;
}

.contacto a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.contacto a:hover {
  color: #28a745;
  text-decoration: underline;
}

/* =========================
   COLORES DESTACADOS
========================= */
.color1 { color: #ffcc00; }
.color2 { color: #00e5ff; }
.color3 { color: #ff66b2; }
.color4 { color: #66ff66; }
.color5 { color: #ff884d; }

/* =========================
   FONDOS DE SECCIÓN
========================= */
#inicio { background-image: url('images/home.jpg'); }
#que-hacemos { background-image: url('images/que-hacemos.jpg'); }
#valores { background-image: url('images/valores.jpg'); }
#contacto { background-image: url('images/contacto.jpg'); }

.webp #inicio { background-image: url('images/home.webp'); }
.webp #que-hacemos { background-image: url('images/que-hacemos.webp'); }
.webp #valores { background-image: url('images/valores.webp'); }
.webp #contacto { background-image: url('images/contacto.webp'); }

/* =========================
   LOGO Y COPYRIGHT
========================= */
#creattia-logo-container {
  position: fixed;
  bottom: 1.1rem;
  left: 1.1rem;
  border-radius: 0.67rem;
  padding: 0.56rem;
  z-index: 1000;
}

#creattia-logo-container img {
  display: block;
  max-width: 6.67rem;
  height: auto;
}

#copyright {
  font-size: 0.7rem;
  color: white;
  position: fixed;
  bottom: 0.06rem;
  right: 0.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 0.67rem;
  padding: 0.28rem;
  z-index: 1000;
}

/* =========================
   TIPOGRAFÍAS
========================= */
h1, h2 {
  font-family: 'Fredericka the Great', serif;
  font-weight: 400;
  font-style: normal;
}

.frederika { font-family: 'Fredericka the Great', serif; }
.varela { font-family: 'Varela Round', sans-serif; }
.montserrat { font-family: 'Montserrat', sans-serif; }
.im-fell { font-family: 'IM Fell English', serif; }

/* =========================
   SWIPER / CARRUSEL
========================= */
.swiper {
  padding-bottom: 2rem;
}

.swiper-slide {
  padding: 2.22rem 0.56rem;
}

.slide-title {
  font-size: 2rem;
  font-family: 'Varela Round', sans-serif;
}

.slide-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
}

.swiper-pagination-bullet {
  background-color: white;
}

.swiper-button-next,
.swiper-button-prev {
  color: white;
  font-size: 1.5rem;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #28a745;
}

/* =========================
   VALORES
========================= */
.valores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
  justify-content: center;
  align-items: stretch;
}

.valor-item {
  background: rgba(255,255,255,.2);
  border-radius: 0.83rem;
  padding: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 11.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 13.9rem;
  max-width: 19.4rem;
  min-width: 11.1rem;
}

.valor-icono {
  height: 3rem;
}

.valor-titulo {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 1rem 0 0.5rem 0;
}

.valor-texto {
  font-size: 1.1rem;
  color: white;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

/* =========================
   MEDIA QUERIES
========================= */


/* Estilos para dispositivos con ratón y pantalla grande */
@media (hover: hover) and (pointer: fine) {
  .navbar {
    right: 17px;
  }
}

/* Tamaño más grande por defecto */
html {
  font-size: 28px;
}

/* Tablets y móviles grandes horizontal */
@media (max-width: 2400px) and (orientation: landscape) {
  html { font-size: 24px; }
}

/* Tablets y móviles grandes horizontal */
@media (max-width: 2000px) and (orientation: landscape) {
  html { font-size: 20px; }
}

/* Tablets y móviles grandes horizontal */
@media (max-width: 1600px) and (orientation: landscape) {
  html { font-size: 16px; }
}

/* Tablets y móviles grandes horizontal */
@media (max-width: 1200px) and (orientation: landscape) {
  html { font-size: 12px; }
}

/* Tablets y móviles medianos horizontal */
@media (max-width: 900px) and (orientation: landscape) {
  html { font-size: 10px; }
}

/* Móviles horizontal */
@media (max-width: 600px) and (orientation: landscape) {
  html { font-size: 8px; }
}

/* Ordenadores grandes horizontal */
@media (max-width: 1800px) and (orientation: portrait) {
  html { font-size: 22px; }
}

/* Ordenadores horizontal */
@media (max-width: 1200px) and (orientation: portrait) {
  html { font-size: 18px; }
}

/* Móviles horizontal */
@media (max-width: 600px) and (orientation: portrait) {
  html { font-size: 14px; }
}


/* Móviles, tablets y ordenadores en vertical: ajustes específicos */
/*@media screen and (max-width: 600px) and (orientation: portrait) {*/
@media (orientation: portrait) {
  .navbar ul { gap: 1rem; }
  #creattia-logo-container { left: 0; }
  .section h2 { font-size: 2.5rem; }

  .valores {
    overflow-y: auto;
    max-height: 90vh;
  }

  .valor-item {
    max-width: 45%;
    margin: 0 auto 0.5rem auto;
    min-height: 6rem;
    min-width: 6rem;
    padding: 0.5rem;
  }

  .valor-icono { height: 2.5rem; }
  .valor-titulo { font-size: 1.4rem; }
  .valor-texto { font-size: 1rem; }

  .overlay {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    padding: 1rem;
    margin: 0;
  }

  .swiper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .swiper-slide {
    padding: 2rem;
  }

  .slide-title { font-size: 1.5rem; }
  .slide-description { font-size: 1rem; }
  .swiper-button-next { right: 0; }
  .swiper-button-prev { left: 0; }
}
