/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com/
Description: Child theme de GeneratePress
Author: Tu nombre
Template: generatepress
Version: 1.0
*/

@font-face {
    font-family: 'Brunson_Rough';
    src: url('fonts/BrunsonRough.woff2') format('woff2'),
        url('fonts/BrunsonRough.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}
.main-navigation a {
    font-size: 1.2rem;
}
.main-navigation, .main-navigation ul ul {
    background-color: transparent;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: #fff;
}

.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a, .main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a, .main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a, .main-navigation .menu-bar-item:hover > a, .main-navigation .menu-bar-item.sfHover > a {
    color: #fff;
}
.copyright-bar a {
	color: #222;
	text-decoration:none;
}
.copyright-bar a:hover {
	color: #fff;
	text-decoration:none;
}

header, footer {
	background: transparent url(images/fondoazul.jpg) no-repeat center center scroll;
	background-size:cover;
}

body, button, input, select, textarea {
	font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, h4, h5 , header, footer {
    font-family: 'Brunson_Rough';	
}

.inside-header {
    padding: 10px 40px;
}

#masthead .gp-icon svg {
    height: 2em;
    width: 2em;
    top: -0.40em;
    position: relative;
    fill: currentColor;
}


.hero {
	position: relative;
    width: 100%;
    aspect-ratio: 1366 / 768;
    background: url(images/fondohero_web_esp_cdt.jpg) center center / cover no-repeat;
}

.seccion {
	scroll-margin-top: 60px;
	position:relative;
	width:100%;
	margin:0px auto;
	max-width:1200px;
	min-height:min(100vh, 600px);
	padding:30px 20px;
	box-sizing: border-box;
	 overflow: hidden;
}


.menu-secciones {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    margin: 0px auto;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    font-family: 'Brunson_rough';
	transition: background-color 0.3s ease;
}
.menu-secciones.scrolled {
    position: fixed;
  	background: transparent url(images/fondoazul.jpg) no-repeat center center scroll;
	background-size:cover;
	transition: background-color 0.3s ease;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	max-width:unset;
}
.menu-secciones:has(.menu-secciones-list.is-open) {
	background: transparent url(images/fondoazul.jpg) no-repeat center center scroll;
	background-size:cover;
	
}

.menu-secciones-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.menu-secciones.scrolled .menu-secciones-list {
    width: 100%;
	max-width: 1200px;
	position:relative;
	justify-content: flex-start;
	padding: 0px 20px;
    box-sizing: border-box;
	left:50%;
	transform:translateX(-50%);
	
}

.menu-secciones-list a {
    color: #111;
    text-decoration: none;
    font-size: 1.6rem;
    transition: opacity .2s ease;
}

.menu-secciones-list a:hover {
    opacity: .6;
}

/* Hamburguesa */

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #000;
    transition: transform .3s ease, opacity .3s ease;
}


.seccion-contenido {
    display: flex;
    align-items: center;
    gap: 50px;
}

.seccion-contenido .texto-seccion {
    flex: 1 1 50%;
    min-width: 0;
}
.seccion-1 .seccion-contenido .texto-seccion {
    flex: 1 1 70%;
}

.seccion-contenido .iframe-seccion,
.seccion-contenido .imagen-seccion {
    flex: 1 1 50%;
    min-width: 0;
}

.seccion-contenido .iframe-seccion iframe {
    width: 100%;
    display: block;
}

.seccion-contenido .imagen-seccion img {
    width: 100%;
    height: auto;
    display: block;
}

.texto-seccion-full {
    width: 100%;
}


.botoncompra {
display: inline-block;
    padding: 15px 32px;
    background: transparent url(images/fondoazul.jpg) no-repeat center center scroll;
    background-size: cover;
    color: #000 !important;
    font-size: 3rem;
    /* font-weight: 700; */
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(114, 184, 236, 0.30);
    transition: all 0.25s ease;
    left: 50%;
    float: left;
    position: relative;
    transform: translateX(-50%);
    font-family: 'Brunson_rough';
    text-align: center;
    line-height: normal;
}

.botoncompra:hover {
    opacity:0.7;
    color: #fff !important;
    transform: translate(-50%,-8px);
    box-shadow: 0 8px 20px rgba(114, 184, 236, 0.40);
}

.botoncompra:active {
    transform: translate(-50%,0);
    box-shadow: 0 3px 8px rgba(114, 184, 236, 0.30);
}

.tituloiframe {
	float:left;
	width:100%;
	margin:0px 0px 15px;
}
.iframe-seccion iframe {
	margin-bottom:30px;
}



.seccion::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 210px;
    background-image: url('images/fondoazul.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* El contenido queda por encima */
.seccion > * {
    position: relative;
    z-index: 1;
}

/* Sección 1 */
.seccion-2::before, .seccion-4::before {
    width: 580px;
    height: 190px;
    top: -50px;
    right: -80px;
    transform: rotate(-8deg);
}
.seccion-4::before {
   width: 480px;
    transform: rotate(188deg);
}

/* Sección 2 */
.seccion-1::before {
    width: 650px;
    height: 225px;
    bottom: -70px;
    left: -120px;
    transform: rotate(6deg);
}

/* Sección 3 */
.seccion-3::before {
    width: 520px;
    height: 160px;
    top: 30px;
    left: -90px;
    transform: rotate(-15deg);
}

/* Sección 4 
.seccion-4::before {
    width: 400px;
    height: 200px;
    bottom: 20px;
    right: -100px;
    transform: rotate(12deg);
}*/

/* Sección 5 */
.seccion-5::before {
    width: 340px;
    height: 170px;
    top: -40px;
    left: 35%;
    transform: rotate(4deg);
}

/* Sección 6 */
.seccion-6::before {
    width: 470px;
    height: 235px;
    bottom: -100px;
    right: 15%;
    transform: rotate(-10deg);
}

@media (max-width: 1240px) {
.menu-secciones.scrolled .menu-secciones-list {
    width: 100%;
	max-width: unset;
	padding: 0px 0px;
  
	
}	
}


@media (max-width: 768px) {

    .seccion-contenido {
		gap: 30px;
		flex-direction: column;
	}
	.seccion-contenido .texto-seccion,
    .seccion-contenido .iframe-seccion,
    .seccion-contenido .imagen-seccion {
        width: 100%;
        flex: 0 0 100%;
    }

    .seccion-contenido .iframe-seccion iframe {
        width: 100% !important;
        max-width: 100%;
        display: block;
    }

	.menu-toggle {
        display: block;
        margin-left: auto;
    }
	
	.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
	
	.menu-secciones {
		padding: 10px;
	}
	
	.menu-secciones button.menu-toggle {
		flex-grow: 0;
		margin: 0;
	}
	
	.menu-secciones:has(.menu-secciones-list.is-open) {
		flex-direction: column;
	}


    .menu-secciones-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: relative;
        top: 100%;
        left: 0;
        width: 100%;
        /*background: transparent url(images/fondoazul.jpg) no-repeat center center scroll;
		background-size:cover;*/
        padding: 0px 20px;
    }

    .menu-secciones-list.is-open {
        display: flex;
    }

    .menu-secciones-list a {
        padding: 12px 0;
    }

}

