html, body {
    scroll-behavior: smooth;
}

body {
    margin:0;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.hero-image {
    width: 100%;
    height: 100vh;
    display: flex;
    background: url('../img/images/hero-image.webp') center center no-repeat;
    background-size: cover;
    background-position: center;
  }
  
  @keyframes zoomIn {
    from {
      background-size: 100% auto;
    }
    to {
      background-size: 105% auto;
    }
  }

  .info-container {
      flex:1;
      display: flex;
  }

  .mainContainer {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      padding:0 50px;
  }
  .container {
      width: 100%;
      max-width: 860px;
      margin: 0 auto;
      background-color: rgba(255,255,255,0.85);
      padding: 50px;
      border-radius: 16px 16px 128px 16px;
  }

.logo {
    margin: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.h1-elements {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.h1-elements img {
    width:auto;
    height:56px;
}

.h1-fabriano {
  text-align: center;
}

.info{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding:0 150px 25px;
    position: relative;
}

.info:after {
    content: '';
    position:absolute;
    width:40px;
    height:2px;
    background-color: #010101;
    top:100%;

}

.info p {
    font-size: 20px;
    line-height: 24px;
    margin-top:0;
    margin-bottom:0;
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.parrafo-titulo {
    font-size: 40px;
    line-height: 38px;
    font-weight: initial;
    margin: 0;
    padding-bottom:25px;
}

.parrafo-titulo span{
  position: relative;
}

.parrafo-titulo span:after{
    line-height: normal;
    color: #000000;
    content: '';
    margin: 0;
    vertical-align: text-top;
    display: inline-block;
    font-weight: normal;
    overflow: hidden;
    text-align: center;
    width: 100%;
    height: 15px;
    background-image: url(../img/images/subrayado.svg);
    background-position: center right;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    bottom: -5px;
    left:0;
}

/*Estilos para el temporizador*/

.countDownTitle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top:35px;
}

.countDownTitle p {
    margin:0;
    text-align: center;
}

#countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-family: 'Inter', sans-serif;
    padding: 1rem 2rem 2rem 2rem;
  }
  
  /* Círculo principal */
  .time-circle {
    position: relative;
    width: auto;
    height: auto;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: conic-gradient( from 0deg, #D53A48 0deg, #010101 0deg );
    color: #222;
    transition: background 0.6s linear;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    aspect-ratio: 1/1;
    flex: 1;
    max-width: 140px;
  }
  
  /* Círculo interno blanco */
  .time-circle::before {
    content: "";
    position: absolute;
    inset: 2px;
    background: #fff;
    border-radius: 50%;
    z-index: 0;
  }
  
  /* Texto */
  .time-circle .number,
  .time-circle .label {
    position: relative;
    z-index: 1;
  }
  
  .number {
    font-size: 1.8rem;
    line-height: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #D53A48, #010101);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .label {
    font-size: 0.9rem;
    color: #666;
  }
  
  /* Animación del gradiente (leve movimiento continuo) */
  @keyframes hueRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
  }
  
  #countdown {
    animation: hueRotate 10s linear infinite;
  }
  

  /*Estilos para la animación de scroll down*/
    /* Contenedor */
    .scrollDown {
    min-height: 60px;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .scrollDown2{
    margin: 20px;
  }

  /*Enlace abajo*/

  .scrollDownContainer {
    width: auto;
    display:flex;
    padding:15px 10px 18px;
    border-radius: 20px;
    border:1px solid #333;
    background-color: #FFFFFF;
  }
  
  /* Flecha */
  .arrow {
    width: 0;
    height: 20px;
    border: 0.75px solid #333;
    position: relative;
    transform-origin: center top; /* o 'center bottom' si prefieres que crezca hacia abajo */
    will-change: transform;
    animation: scroll 2s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  }
  
  /* Punta de la flecha */
  .arrow::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -2.5px;
    width: 1px;
    height: 5px;
    border-top: 5px solid #333;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
  }
  
  /* Animación fluida */
  @keyframes scroll {
    0%, 100% {
      transform: scaleY(1);
    }
    50% {
      transform: scaleY(0.85);
    }
  }

  /*Estilos para la sección central*/



  .central-section {
    height: auto;
    display: flex;
    background-size: 300px auto;
  }

  .central-section2{
    height: auto;
    display: flex;
    background-size: 300px auto;
  }
  
  .central-section-image {
    overflow: hidden;
    flex:1;
  }

 

  .central-section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .central-section-info {
    flex:1;
 
  }

  .central-section-padding{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
  }

  .central-section-content{
    padding:80px 0px 0px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .central-section-contenido{
     padding:80px 80px 0px 80px;
     display: flex;
     justify-content: center;
     align-items: center;
     flex-direction: column;
  }

  .central-section-info p {
    font-size: 20px;
    line-height: 24px;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
  }

  .central-section-info2{
    flex:1;
  }
  .central-section-info2 p {
    font-size: 20px;
    line-height: 24px;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
  }

  .central-section-imagen{
    height: 250px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .accent-image-svg{
    width: auto;
    height: 100%;
  }

  .central-section-contenido2{
    padding:0px 80px 0px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .central-section-imagen2{
    height: 350px;
    width: 1px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .accent-image-svg2{
    width: auto;
    height: 100%;
  }

  .accent-image2{
    max-width:60%;
    height: auto;
    margin: 0px;
  }

  .central-section-info .svg-image {
    max-width:250px;
    height: auto;
    margin:20px auto 150px;
  }

  .central-section-info .accent-image {
    max-width:60%;
    height: auto;
    margin:20px auto;
  }

  .entradilla {
    font-size: 30px;
    line-height: 35px;
    margin-bottom: 15px;
  }
 

  /*Estilos para la sección de contacto*/
  .contact-section {
    height: 100vh;
    display: flex;
    flex-direction:row-reverse;
    background: url(../img/images/floral2.svg) bottom right no-repeat;
    background-size: 400px auto;
  }

  .contact-section-map,
  .contact-section-info {
    flex:1;
  }

  .contact-section-info {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .contact-section-padding{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:80px;
  }

  .contact-section-info-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .contact-section-info .svg-image {
    max-width:250px;
    height: auto;
    margin:10px auto 20px 0;
  }

  .contact-section-info h2 {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    column-gap: 10px;
    font-weight: 400;
    margin: 0;
  }

  .contact-section-info h2 img {
    max-width:250px;
  }

  .contact-section-info h2 span {
    margin-top:-6px;
  }

  .datos-contacto {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color:#FFFFFF;
    border-radius: 0 0 0 25px;
  }

  .wrapperDatosContacto {
    display: flex;
    flex-direction: column;
    row-gap:20px;
  }
  
  .contact-icon {
    max-width:25px;
  }

  .address {
    display: flex;
    flex-direction: column;
    row-gap:5px;
  }

  .street p,
  .phone p,
  .mail p,
  .time .timecontainer span{
    display: flex;
    column-gap: 5px;
    justify-content: flex-start;
    align-items: center;
    margin:0;
  }

  .time {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    column-gap: 5px;
  }
  .time > img {
    width:25px;
    height:25px;
  }

  .metro {
    display: flex;
    flex-direction: column;
    row-gap:5px;
  }

  .metroItem {
    display: flex;
    column-gap: 8px;
    justify-content: flex-start;
    align-items: center;
  }

  .metroItem img {
    width: 25px;
    height: auto;
    aspect-ratio: 431/261;
  }

  .metroItem img {
    margin-bottom: 0;
  }

  .metroItem p {
    margin:0;
  }

  /*Estilos para el switch de idiomas*/

.languageSwitch {
  position: fixed;
  top: 10px;
  right: 10px;
  border: 0px solid #E7E3DE;
  border-radius:5px;
  background-color: #CC9966;
  padding: 2px 5px 5px 5px;
  color: #010101;
  z-index: 1002;
  display: flex;
  justify-content: center;
  align-items: center;
}

.languageSwitch a {
  color:#010101;
  padding: 3px 5px 0px 5px;
  text-decoration:none;
  font-size:16px;
  font-weight: 300;
}

.languageSwitch span {
  border-radius:0;
  padding:5px 5px 0px 5px;
  text-decoration:none;
  color:#181713;
  font-size:16px;
  border-bottom:2px solid #010101;
  font-weight:bold;
}

@media(max-width:992px){
  .h1-fabriano{
    width: 400px;
  }
  .logo{
    text-align: center;
  }
  .central-section2{
    height: 770px;
  }
  .central-section-info .accent-image {
    max-width: 480px;
    width: 100%;

  }
  .central-section-padding{
    padding: 0px;
  } 
  .central-section-content{
    padding:0px
  }
  .central-section-info p {
    font-size: 16px;
    line-height: 18px;
  }
  .central-section-info .svg-image {
    margin:20px auto 50px;
  }
  .street p, .phone p, .mail p, .metroItem, .time .timecontainer span {
    font-size:14px;
  }
  .contact-section-padding {
    padding:40px;
  }
  .contact-section-info h2 {
    font-size: 20px;
  }
}

@media(max-width:830px){
  .central-section{
    flex-direction: column-reverse;
  }  
  .central-section2{
    flex-direction: column;
    height: auto;
  }
  .central-section-imagen2{
    width: 400px;
  }
  .central-section-image{
    max-height: 50vh;
  }
  .central-section-image img{
    object-fit: cover;
    width: 100%;
    height: 100%;

  }
  .info {
    padding:0 0 15px;
  }
  .contact-section{
    flex-direction: column-reverse;
  }
  #countdown {
    padding:1rem 0rem 2rem 0rem;
  }

  .countDownTitle {
    padding-top:15px;
  }

  .time-circle .label {
    font-size:12px;
  }
}

@media (max-width:645px){
  
  .mainContainer {
    padding:70px 25px 50px;
  }
  
  .h1-elements img {
    width:90%;
    height:auto;
  }

  #countdown {
    gap:5px;
  }

  .central-section {
    background-size:250px auto;
  }


  .contact-section {
    flex-direction: column-reverse;
    background-size: 200px auto;
  }

  .contact-section-info {
    max-height:520px;
  }
}

@media(max-width:480px){
  .hero-image{
    height: 70vh;
  }
  .container {
    padding:25px;
  }

  .parrafo-titulo {
    font-size: 30px;
    line-height: 30px;
  }
  .info p {
    font-size:16px;
    line-height: 18px;
  }

  .countDownTitle p {
    font-size: 14px;
    line-height: 16px;
  }

  .time-circle .label {
    font-size:10px;
  }

  .central-section {
    flex-direction:column-reverse
  }
  .number {
    font-size:1.4rem;
    line-height:1.4rem;
  }

  .mainContainer {
    align-items:flex-start;
    display: flex;
    justify-content: center;
    align-items: center;

  }

   .central-section-imagen{
    align-items: flex-end;
    height: auto;
   }

  .accent-image-svg{
    max-width: 280px;
  }
}