/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com

 Template:     generatepress

 Version:      0.1

*/



/* FUENTE */



@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=DM+Serif+Display:ital@0;1&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


/* VARIABLES POR DEFECTO */



:root {

    --c-negro: #000;
    --c-blanco: #FFFFFF;

    --c-primario: #000;
    --c-secundario: blue;

    --c-grisclaro: #EFEFEF;
    --c-gris: #f9f9f9;

}



/* OUTLINE */

*:focus { 
  outline: 0px solid orange;
 }

::selection {
  background-color: #ea3876e5; 
  color: var(--c-blanco); 
}


html {
  scroll-behavior: smooth;
}

.zindex0 {
  color: var(--c-negro);
}

.zindex1 {
  z-index:1;
}

/* ESTILOS COMUNES */


body {
  font-family: 'DM Sans', sans-serif;
  color: var(--c-negro);
  font-size: 1.125rem;
  line-height: 1.6875rem;
  font-weight: 300;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 600;
}

h1, h2, h3 {
  font-size: clamp(1.6rem, 2vw, 2.4rem);
}

/* 
Subtitulo con línea

Ejemplo de uso: 

<span class="subtitulo-decorativo">Esto e sun título</span>

*/

.subtitulo-decorativo {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.subtitulo-decorativo::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + 15px);
  transform: translateY(-50%);
  width: 150px;
  height: 1px;
  background: #fff; /* valor por defecto */
}

/* Línea blanca */
.subtitulo-decorativo.line-white::after {
  background: #fff;
}

/* Línea negra */
.subtitulo-decorativo.line-black::after {
  background: #000;
}

@media (max-width:500px) {

  .subtitulo-decorativo::after {
    display: none;
  }
}

/* 
Letras H2 Delineado  

Ejemplo de uso: 

h2 class="line-item outline-negro">Negro Hueco</h2>
<h2 class="line-item outline-blanco">Blanco Hueco</h2>

*/

.line-item {
  font-family: Helvetica, sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 4.6vw, 6.5rem);

  -webkit-text-stroke-width: 0.7px;
  color: transparent;
  
  padding: 0 70px 0 0;
  line-height: 1;
  font-weight: 700;

  position: relative;
  transition: color 0.4s ease-in;
}

.outline-negro {
  --stroke-color: var(--c-negro);
  -webkit-text-stroke-color: var(--stroke-color);
}

.outline-negro:hover {
  color: var(--stroke-color);
}

.outline-blanco {
  --stroke-color: var(--c-blanco);
  -webkit-text-stroke-color: var(--stroke-color);
}

.outline-blanco:hover {
  color: var(--stroke-color);
}


/* Animación de enlaces destacados con linea por debajo */
.a-destacado {
  display: inline-block;
  position: relative;
}

.a-destacado::after {
    content: "";
    position: absolute;
    width: 0px;
    background-color: var(--c-negro);
    height: 6%;
    transform-origin: left bottom;
    bottom: -8px;
    left: 0;
    transition: all 0.5s ease-in-out;
}

.a-destacado:hover::after {
    width: 100%;
}

/* OTROS ESTILOS DE TEXTO */

p {
  margin-bottom: 1.1em;
}

.text-light {
  color: var(--c-blanco);
}

.alinear-centro {
  text-align: center;
}

.sombra-bloques>.vce-col-inner {
  box-shadow: 0 20px 30px 0 rgba(65, 69, 55, 0.1);
}

/* ENLACES */

a {
  opacity: 1;
  text-decoration: none;
  transition: all 0.4s ease !important;
  color: inherit !important;
}

a:hover {
  opacity: 0.8;
  
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: var(--c-primario);
  font-weight: 700;
}

/* Responsive estilos generales */


/* HOME */
.flecha-inicio {
  transform: translateY(0px);
  transition: transform 0.5s ease-in-out;
}

.flecha-inicio:hover {
  transform: translateY(15px);
}

.clickable {
  .vce-asset-background-simple-item.vcv-lozad {
  transition: transform 0.5s ease-in-out;
  transform: scale(1);
}
}

.clickable:hover {
  .vce-asset-background-simple-item.vcv-lozad {
  transform: scale(1.05);
}
}

.servicios h3 {
  position: relative;
  margin-top: 60px;
  padding-top: 20px;
}

.servicios h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background-color: #000; 
}

table, td, th {
    border: 1px solid rgba(255, 255, 255, .7) !important;
}

.pati-image {
  max-width: 700px;
}

/* CLICKABLE */
	
.vce-col.clickable a:after {
  content: "";
  display: block; 
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2; 
}

.servicios-home {
  .vce-col.clickable a:after {
        height: 300%;
        top: -200% !important;
      
  }
}

.clickable .vce-col-content, .clickable .vce-col-inner {
  position: static;
}

/* MARGEN PANTALLAS PANORÁMICAS */

@media (min-width: 1800px) {
  .entry-content > .vce-row-container > .vce-row:not(.full-width)  {
    padding-inline: 25% !important;
  }
  .textwidget.custom-html-widget  {
    padding-inline: 10% !important;
  }

}




