/*
Theme Name: Serendipity - Fully Responsive HTML Blog
Theme URI: http://themes.iki-bir.com/serendipity-html
Author: elemis (optimizado por Gabriel Sellens)
Author URI: http://iki-bir.com
Version: 3.1 (Marzo 2025 - Marco naranja en menú, textos en negro, optimizado para videos/imágenes)
*/

/*-----------------------------------------------------------------------------------*/
/* RESET */
/*-----------------------------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

:focus {
  outline: 0;
}

body {
  line-height: 1;
  background: #2e2e2e url(style/images/bg1.jpg) repeat fixed;
  color: #000000;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  padding: 0 40px;
}

ol, ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/*-----------------------------------------------------------------------------------*/
/* UTILITIES */
/*-----------------------------------------------------------------------------------*/
.transition {
  -webkit-transition: all 200ms ease-in;
  -o-transition: all 200ms ease-in;
  -moz-transition: all 200ms ease-in;
  transition: all 200ms ease-in;
}

.clear {
  clear: both;
  display: block;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
}

/*-----------------------------------------------------------------------------------*/
/* GENERAL */
/*-----------------------------------------------------------------------------------*/
body, input, textarea {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 27px;
  color: #000000;
}

h1, h2, h3, h4, h5, h6 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #000000;
}

h1 { font-size: 32px; line-height: 34px; margin-bottom: 14px; }
h2 { font-size: 28px; line-height: 30px; margin-bottom: 10px; }
h3 { font-size: 24px; line-height: 26px; margin-bottom: 15px; }
h4 { font-size: 20px; line-height: 22px; margin-bottom: 4px; }
h5 { font-size: 17px; line-height: 19px; }
h6 { font-size: 12px; line-height: 14px; }

hr {
  background: url(style/images/line.png) repeat-x bottom left;
  border: 0;
  height: 1px;
  margin: 20px 0 40px;
}

p {
  margin-bottom: 20px;
}

ul { list-style: none; margin: 0 0 20px; }
ul li { background: url(style/images/dark-bullet.png) no-repeat left 13px; padding-left: 15px; }

ol { list-style: decimal inside; margin: 0 0 20px; }
ol ol { list-style: upper-alpha; }
ol ol ol { list-style: lower-roman; }
ol ol ol ol { list-style: lower-alpha; }

strong { font-weight: bold; }
cite, em, i { font-style: italic; }

blockquote {
  margin: 0 0 20px;
  font-size: 15px;
  border-left: 5px solid #ededed;
  padding-left: 20px;
}

pre {
  background: #f4f4f4;
  font-family: "Courier 10 Pitch", Courier, monospace;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 40px;
  overflow: auto;
  padding: 0.75em 20px;
}

code, kbd {
  font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  font-size: 13px;
}

a {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #000000;
  text-decoration: none;
}

a:hover {
  color: #000000;
}

a.button,
input#submit,
.forms fieldset .btn-submit {
  background: #555 url(style/images/button-bg.png) repeat-x;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  height: 28px;
  padding: 0 17px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  border: 1px solid #383838;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 25px;
  display: inline-block;
}

/*-----------------------------------------------------------------------------------*/
/* STRUCTURE */
/*-----------------------------------------------------------------------------------*/
#page {
  max-width: 1040px;
  margin: 50px auto;
  -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

#wrapper {
  background: #fff;
  border: 1px solid #f8f8f8;
  -webkit-box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.15);
 平素は大変お世話になっております。
  -moz-box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.15);
}

#content {
  margin: 0 39px;
}

#main {
  padding: 8px 0 0;
}

/* HEADER */
#branding {
  position: relative;
  z-index: 9999;
  overflow: hidden;
  width: 100%;
}

#site-title {
  padding: 39px 0 0;
  margin: 0 39px 39px;
  text-align: left;
  max-width: 100%;
}

#site-title a {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #000000;
  font-size: 30px;
  line-height: 36px;
  display: block;
}

#site-title a:hover {
  color: #000000;
}

/* Optimización para imágenes del header */
#branding img,
#branding a img,
#branding #site-title img,
#branding #site-title a img {
  max-width: 1000px !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0;
}

img[src="style/images/MURCIARAPIDTECNIC.png"],
img[src="/style/images/MURCIARAPIDTECNIC.png"] {
  max-width: 1000px !important;
  width: 100% !important;
  height: auto !important;
}

#site-title picture {
  max-width: 100%;
  display: block;
}

.social {
  position: absolute;
  top: 76px;
  right: 82px;
  min-width: 500px;
  width: 329px;
  height: 43px;
}

.social ul {
  display: flex;
  justify-content: flex-end;
}

.social ul li {
  margin-right: 5px;
  background: none;
}

/* MENU */
.triangle-l {
  border-color: transparent #ff9900 transparent transparent;
  border-style: solid;
  border-width: 8px;
  height: 0;
  width: 0;
  position: relative;
  left: -17px;
  top: -8px;
  z-index: -1;
}

.triangle-r {
  border-color: transparent transparent transparent #ff9900;
  border-style: solid;
  border-width: 8px;
  height: 0;
  width: 0;
  position: relative;
  left: 1039px;
  top: -23px;
  z-index: -1;
}

#access .menu {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #ff9900;
}

#access .menu ul {
  display: flex;
  justify-content: center;
  height: 42px;
  margin: 0 -9px;
  background: #ff9900 url(style/images/menu-bg.png) repeat-x;
  -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

#access .menu ul li {
  padding: 8px 15px 0;
  height: 34px;
  position: relative;
  background: none;
}

#access .menu ul li a {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #000000;
}

#access .menu ul li a:hover,
#access .menu ul li.active a,
#access .menu ul li a.selected {
  color: #000000;
}

/* Submenús desplegables */
#access .menu ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #3c3c3c;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  min-width: 130px;
  height: auto;
  margin: 0;
  padding: 0;
  z-index: 1000;
}

#access .menu ul li:hover > ul {
  display: block;
}

#access .menu ul li ul li {
  padding: 10px;
  height: auto;
  width: 100%;
  border-bottom: 1px solid #333;
}

#access .menu ul li ul li a {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #000000;
}

#access .menu ul li ul li a:hover,
#access .menu ul li ul li.active a {
  background-color: #333;
  color: #000000;
}

/* CONTENT */
.intro {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 20px;
  line-height: 32px;
  color: #000000;
  text-align: left;
  margin-top: -9px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #000;
  overflow: hidden;
}

.intro img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hentry {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid #000;
}

.entry-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #000000;
  font-size: 28px;
  margin: 0 0 5px;
  text-align: left;
}

.entry-title a:hover {
  color: #000000;
}

.entry-meta {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #000000;
  font-size: 12px;
  line-height: 18px;
  margin-bottom: 26px;
}

.entry-content a,
.intro a,
.hentry a {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: left !important;
  display: inline;
  color: #000000;
}

p img,
.entry-content img,
picture img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  display: inline-block;
  vertical-align: middle;
}

p img[align="left"],
.entry-content img[align="left"],
picture img[align="left"] {
  float: left;
  margin: 0 15px 15px 0;
}

p img[align="right"],
.entry-content img[align="right"],
picture img[align="right"] {
  float: right;
  margin: 0 0 15px 15px;
}

a picture img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

/* GALLERY */
.gallery-items {
  margin: 0 -40px 20px;
  display: flex;
  flex-wrap: wrap;
}

.gallery-items li.item {
  flex: 0 0 20%;
  padding: 0;
  position: relative;
  background: none;
}

.gallery-items li.item img {
  max-width: 100%;
  height: auto;
  display: block;
}

.gallery-items li.item a span {
  display: none;
  height: 100%;
  position: absolute;
  text-decoration: none;
  width: 100%;
  z-index: 100;
}

.zoom {
  position: absolute;
  background: url(style/images/icon-plus.png) no-repeat center center;
}

.overlay {
  background-color: rgba(15, 15, 15, 0.6);
}

/* MAP */
.map {
  margin-bottom: 20px;
}

.map.full {
  margin: 0 -40px;
}

.map iframe {
  max-width: 100%;
  height: 600px;
  display: block;
}

/* VIDEO */
video {
  width: 50%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  max-width: 100%;
  border-radius: 5px;
}

.video-container {
  max-width: 100%;
  margin-bottom: 20px;
  text-align: center;
}

/* FOOTER */
#colophon {
  clear: both;
  background-color: #191919;
  margin: 40px -1px -1px;
  background-color: #000000;
  color: #ffffff;
  padding: 10px;
  text-align: center;
}

#supplementary {
  padding: 40px 39px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3.7%;
}

#supplementary.four .widget-area {
  flex: 0 0 22.2%;
}

#site-generator {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #ffffff !important;
  font-size: 12px;
  line-height: 2.2em;
  padding: 1.2em 0.5em;
  text-align: center;
  background-color: #131313 !important;
}

#site-generator a {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #ffffff;
}

#site-generator a:hover {
  color: #ffffff;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  body {
    padding: 0 20px;
  }

  #page {
    margin: 20px auto;
  }

  #content {
    margin: 0 20px;
  }

  #site-title {
    margin: 0 20px 20px;
    padding: 20px 0 0;
  }

  #site-title a {
    font-size: 24px;
    line-height: 28px;
  }

  #branding img,
  #branding a img,
  #branding #site-title img,
  #branding #site-title a img {
    max-width: 1000px !important;
    width: 100% !important;
    height: auto !important;
  }

  img[src="style/images/MURCIARAPIDTECNIC.png"],
  img[src="/style/images/MURCIARAPIDTECNIC.png"] {
    max-width: 1000px !important;
    width: 100% !important;
    height: auto !important;
  }

  .social {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 10px 0;
  }

  #access .menu ul {
    flex-direction: column;
    height: auto;
    margin: 0;
  }

  #access .menu ul li {
    padding: 10px 15px;
    height: auto;
  }

  #access .menu ul li ul {
    position: static;
    display: none;
    background: #3c3c3c;
    padding-left: 20px;
  }

  #access .menu ul li:hover > ul {
    display: block;
  }

  .triangle-l,
  .triangle-r {
    display: none;
  }

  .intro {
    font-size: 16px;
    line-height: 24px;
    margin-top: 0;
    padding-bottom: 20px;
    text-align: left;
  }

  .entry-title {
    text-align: left;
  }

  .gallery-items { margin: 0 0 20px; }
  .gallery-items li.item { flex: 0 0 50%; }

  .map.full { margin: 0; }
  .map iframe { height: 400px; }

  video { width: 75%; }

  p img,
  .entry-content img,
  picture img,
  a picture img {
    float: none;
    margin: 10px 0;
    width: 100%;
  }

  #supplementary { padding: 20px; }
  #supplementary.four .widget-area {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  body { padding: 0 10px; }
  #content { margin: 0 10px; }
  #site-title a { font-size: 20px; line-height: 24px; }
  .intro { font-size: 14px; line-height: 20px; text-align: left; }
  .entry-title { text-align: left; }
  .gallery-items li.item { flex: 0 0 100%; }
  .map iframe { height: 300px; }
  video { width: 100%; }
}

/* Ajustes específicos para formato de Cerrajero Ciutat Vella y Barrio Gótico */
/* 1. Reducir tamaño de títulos .Estilo21 en móvil horizontal */
@media (min-width: 481px) and (max-width: 768px) and (orientation: landscape) {
  .intro p.Estilo21 strong {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
  }
}

/* 2. Títulos desde el segundo párrafo en adelante */
#content .Estilo25,
#content .Estilo25 strong {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 22px;
  color: #000000;
  text-transform: none;
}

/* 3. Texto de todos los párrafos */
#content p,
#content p span,
#content p strong,
#content .intro p,
#content .intro span,
#content .intro strong {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 28px;
  color: #000000;
  text-transform: none;
}

/* 4. Títulos .Estilo21 en párrafos posteriores */
#content p span.Estilo21,
#content p span.Estilo21 strong {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 22px;
  color: #000000;
  text-transform: none;
}

/* 5. Listas page-navi */
#content ul.page-navi {
  list-style: none;
  padding-left: 0;
}

#content ul.page-navi li .Estilo25,
#content ul.page-navi li .Estilo25 strong {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 22px;
  color: #000000;
  text-transform: none;
}

/* 6. Forzar negro en el primer párrafo y asegurar acentos */
#content .intro p.Estilo21,
#content .intro p.Estilo21 strong,
#content .intro span.Estilo48,
#content .intro span.Estilo48 strong {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #000000;
  text-transform: none;
}

/* 7. Corregir acentos y capitalización en móvil */
@media (max-width: 768px) {
  .intro,
  .intro p,
  .intro span,
  .intro strong,
  #content .Estilo25,
  #content .Estilo25 strong,
  #content p span.Estilo21,
  #content p span.Estilo21 strong,
  #content ul.page-navi li .Estilo25,
  #content ul.page-navi li .Estilo25 strong {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-transform: none;
    color: #000000;
  }
  #content ul.page-navi li {
    list-style: none !important;
    background: none !important;
    padding-left: 0 !important;
  }
}

/* 8. Fijar página en móvil */
body {
  overflow-x: hidden;
  width: 100%;
}

/* 9. Footer en blanco */
#site-generator,
#site-generator p {
  color: #ffffff !important;
}

/* 10. Corrección FINAL para escritorio: mayúsculas en todos los .Estilo25 */
@media (min-width: 769px) {
  #content .Estilo25,
  #content .Estilo25 strong,
  #content p.Estilo25,
  #content p.Estilo25 strong,
  #content div .Estilo25,
  #content div .Estilo25 strong,
  #content ul.page-navi li .Estilo25,
  #content ul.page-navi li .Estilo25 strong,
  #content ul.page-navi li p.Estilo25,
  #content ul.page-navi li p.Estilo25 strong {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-transform: none !important;
    color: #000000 !important;
  }
  #content ul.page-navi li {
    list-style: none !important;
    background: none !important;
    padding-left: 0 !important;
  }
}

/* 11. Corrección del footer para móvil y escritorio */
#site-generator {
  background-color: #131313 !important;
  color: #ffffff !important;
}

#site-generator p {
  color: #ffffff !important |important;
}

/* Estilo para emojis en el footer */
#site-generator p::before,
#site-generator p::after {
  color: #ffcc00 !important;
}

/* Forzar footer en móvil */
@media (max-width: 768px) {
  #site-generator {
    background-color: #131313 !important;
    color: #ffffff !important;
  }
  #site-generator p {
    color: #ffffff !important;
  }
  #site-generator p::before,
  #site-generator p::after {
    color: #ffcc00 !important;
  }
}

/* Forzar centrado en pantallas grandes */
@media (min-width: 769px) {
  .full-size img {
    margin: 0 auto !important;
  }
}

/* Estilos adicionales para diseño de imágenes centradas y texto alineado a la izquierda */
.image-text-container {
  margin-bottom: 2rem;
  text-align: left;
}

.image-text-container img {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .image-text-container img {
    max-width: 50%;
  }
}