:root {
    --brand-color: #004481;
    --brand-second-color: #0075be;
    --white: #fefefe;
    --gray: #6c757d;
    --light-grey: #eaeaea;
    --light: #f8f9fa;
    --gray-dark: #343a40;
    --dark: #212529;
    --principal-color:#004481;
    --show: block;
    --hidden: none;
    --all-width: 100%;
    --box: inset -15.5em 0 0 0 #004481,inset 15.5em 0 0 0 #00448199;
    --backgroundtransparent: #0075be68;
    --box-two: inset -.1em 0 0 0 #004481,inset .1em 0 0 0 #00448199;
    --gray100: hsl(0,0%,100%);
    --gray70: hsl(0,0%,70%);
    --gray0: hsl(0,0%,0%);
    --background: linear-gradient(to left, #36D1DC99 0%, #fefefe59 100%);
/*  --background: linear-gradient(to left, #36D1DCc9, #36D1DC10);*/
    --solid-bground: linear-gradient(to right, #0075be 0%, #004481 100%);
}

::-webkit-scrollbar {
    display: var(--hidden);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--background);
/*    background: linear-gradient(to left, #fefefe 40%, #36D1DC99 100%);*/
}

body {
    /*text-size-adjust: var(--all-width);*/
  -webkit-tap-highlight-color: #1b1b1b90;
    width: auto;    
/*  color:var(--dark);*/
    color: var(--gray-dark);
    font-family: "Roboto", system-ui, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    font-optical-sizing: auto;
    text-size-adjust: auto;
    /*letter-spacing: .05ch;*/
}

header {
    /*background: var(--background) no-repeat center;*/
    height: auto;
}

/*h1 {
    margin-bottom: 20px;
    padding: 10px;
    font-size: clamp(2.5em, 3vw, 3.5em);
    font-weight: 900;
    letter-spacing: .5cap;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 40px;
    color: var(--white);
}*/

h2 {
    margin-bottom: 20px;
    padding: 5px;
    font-size: clamp(1.4em, 4vw, 2.1em);
    font-weight: 900;
    /*letter-spacing: .1cap;*/
    line-height: 1.1;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 40px;
/*    color: var(--principal-color);*/
/*    filter: drop-shadow(1px 2px 3px #2b2b2b99);*/
}


h3 {
    font-size: 1.4em;
    /*letter-spacing: .1cap;*/
    line-height: 1;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--gray-dark);
/*    filter: drop-shadow(1px 2px 3px #2b2b2b99);*/
}

h4 {
    font-size: 1.30em;
}

h5 {
    font-size: 1.25em;
    margin-bottom: 20px;
}

h6 {
    font-size: 1em;
    margin-bottom: 20px;
}

p {
    width: auto;
    max-width: 75ch;
    margin: 0 auto;
    margin-block: 1lh;
    text-align: justify;
    /*text-wrap: balance;*/
    hyphenate-limit-chars: 7;
    hyphens: auto;
}

button {
    border-radius: 5px;
    cursor: pointer;
}

button:focus {
    outline: 1px solid var(--gray);
}

a {
    text-decoration: var(--hidden);
    color: #2b2b2b;

    &:hover{
        color: #2b2b2be5;
    }
}

details[open] {
    summary {
        display: none;
    }
    
}

.header {
    display: flex;    
    flex-direction: column;
    position: relative;
    /*align-items: center;*/
    /*justify-content: space-evenly;*/
    /*padding: 0 30px;*/
    /*gap: 2em;*/
    /*width: 100%;*/
    max-width: 1800px;
    margin: auto;
    height: auto;
}

.logo-contains {
    display: flex;
    position: relative;
    /*flex-direction: space-around;*/
    justify-content: space-around;
    /*align-items: center;*/
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 20px auto;
    /*border: 1px solid black;*/
}

/*.header::before {
    content: "";
    display: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    background: url("./public/videos/vinicio.mov");
}*/

.logo-container {
    /*display: block;*/
    /*position: relative;*/
    /*justify-content: center;*/
    width: 450px;
    height: auto;
    place-content: center;
    padding: 15px;
    /*border: 1px solid black;*/
    /*overflow: hidden;*/
    margin: auto;
    /*left: 0;*/

   /* video {
        width: 100%;
        height: 100%;
        mix-blend-mode: darken;
       
        margin: auto;
        z-index: -1;
    }*/
}

.logo {
    display:block;
    width: 100%;
    height: auto;
    margin:auto;
    /*background: url('../img/svg/crcvlogo.svg') center center / contain no-repeat;*/
}

#second-img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

#load-img {
    display: block;
    width: 70px;
    height: 70px;
}

.header-title {
    position: relative;
    text-align: center;
    align-self: center;
    font-weight: 900;
    letter-spacing: .2cap;
    font-size: clamp(1.1em, 3vw, 1.5em);
    color: var(--white);
    filter: drop-shadow(1px 1px 3px #1b1b1b);
    margin: 20px;
    /*border: 1px solid red;*/
}

.navbar {
    display: flex;
    position: relative;
    flex-direction: row-reverse;
    margin: 15px;
    height: 40px;
    max-width: 1600px;
    /*margin: auto;*/
}

.nav-bar {
    display: flex;
    position: relative;
    list-style: none;
    margin: 0 20px;
    letter-spacing: .1cap;
    align-items: center;
    justify-content: stretch;

}

.nav-item {
    width: 109px;
    border-right: 1px solid #00448135;
}

.nav-link, .nav-link--footer {
    display: flex;
    position: relative;
    font-size: 0.75rem;
    margin: 0 2px;    
    text-align: center;
    justify-content: center;
    align-items: center;
    height: 40px;
    cursor: pointer;
    opacity: 1;
    text-decoration: var(--hidden);
    /*color: var(--dark); */
    color: hsl(0, 0%, 30%);
    transition: .4s ease-in;
    z-index: 1;
}

.active {
    color: #fefefee9;
    background-color: var(--backgroundtransparent);
}

.nav-link:hover {
    z-index: 1;
    color: var(--white);
    opacity: 0.8;
    box-shadow: var(--box);
    border-bottom: 3px solid var(--gray);
}

.nav-link::before,
.nav-link::after {
    position: absolute;
    content: "";
    &:has(.active) {
        z-index: -1;
    }
    background: var(--backgroundtransparent);
}

.lineB {
    position: relative;
    height: 55px;
    background: var(--background);
    border-bottom: 2px solid #36c0dc;    
    margin-bottom: .1em;
    /*overflow: hidden;*/
    place-content: center;
}

.nav-button {
    display: var(--hidden);
}

.social--line {
    display: flex;
    position: relative;
    align-self: center;
    gap: 1.5em;
}

.social--line div{
    width: 45px;
    height: 35px;
}

.social--line div .facebook {
    display: block;
    background: url('../img/svg/facebook.svg') center no-repeat;
    width: 100%;
    height: 100%;
    color: #3b5998;
    transition: all .5s ease-in-out;
}

.social--line div .whatsapp {
    display: block;
    background: url('../img/svg/WhatsApp.svg') center no-repeat;
    width: 100%;
    height: 100%;
    color: #25D366;
    transition: all .5s ease-in-out;
}

.social--line div .youtube {
    display: block;
    background: url('../img/svg/youtube.svg') center no-repeat;
    width: 100%;
    height: 100%;
    color: #c4302b;
    transition: all .5s ease-in-out;
}

.social--line div .instagram {
    display: block;
    background: url('../img/svg/instagram.svg') center no-repeat;
    width: 100%;
    height: 100%;
/*    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);*/
/*    -webkit-background-clip: text;*/
/*    background-clip: text;*/
/*    -webkit-text-fill-color: transparent;*/
    transition: all .5s ease-in-out;
}

.social--line .youtube:hover,
.social--line .instagram:hover {
	filter: drop-shadow(0 -7mm 4px #dc143c);
}

.social--line .facebook:hover {
	filter: drop-shadow(0 -7mm 4px #3b5998);
}

.social--line .whatsapp:hover {
	filter: drop-shadow(0 -7mm 4px #008000);
}


main {
/*    background: var(--background);*/
    padding-bottom: 30px;
    user-select: var(--hidden);
}

.home-start-side {
    /*gap: 0.3em;*/
    display: grid;
    position: relative;
    /*bottom: 0;*/
    /*left: 0;*/
    place-content: center;
    /*align-items: center;*/
    /*border: 1px solid black;*/
    /*200px repeat(auto-fill, 100px) 300px*/
    /*grid-template-columns: repeat(auto-fit, minmax(150px, 200px));*/
    grid-template-columns: 600px repeat(auto-fill, minmax(150px, 300px));
    height: auto;
    margin: 15px auto;
    gap: 1em;
    overflow:hidden;
}

.home-slider-content {
    position: relative;
    display: block;
    place-content: center;
    text-align: center;
    width: auto;
    height: 300px;
    /*z-index: -1;*/
    /*place-content: end;*/
   /* @starting-style {
        opacity: 0;
    }*/
    /*background: linear-gradient(to bottom, transparent, #000000cc 65%, #000000 95%), url('../img/drxnuevemil.avif') center / contain no-repeat;*/
    /*overflow: hidden;*/
    /*background: url('../img/drxnuevemil.avif') center / contain no-repeat;*/
    /*background-size: contain;*/
    /*filter: blur(5px);*/
    border-radius: 10px;
    /*backdrop-filter: blur(5px);*/
    transition: all 1.5s ease-in-out;
}

.home-slider-content::before {    
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, transparent, #000000cc 65%, #000000 95%), url('../img/drxnuevemil.avif') center / contain no-repeat;
    mask-image: linear-gradient(to top, transparent, #11111140 5%, #111111cc 100%);
    filter: blur(5px);
}


.home-slider-content h1 {
    /*margin: 0;*/
    font-size: clamp(1.4em, 7vw, 2.3em);
    letter-spacing: .09em;
    color: var(--white);
    /*margin-bottom: 10px;*/
    /*background: white;*/
    /*color: #1b2b1b;*/
    filter: drop-shadow(1px 3px 5px #121212);
    /*backdrop-filter: blur(5px);*/
    span {
        display: block;
        font-weight: 600;
        font-size: 1rem;
        margin-top: 10px;
        line-height: 1.5;
        /*color: var(--gray70);*/
        color: hsl(222, 0%, 90%);
    }
}


.aside-social-web {
    background: url('../img/webp/crcv.avif') center / contain no-repeat;
    /*background-size: ;*/
    /*background: url("https://qjsvnfogbaqnjbqi.public.blob.vercel-storage.com/crcv/discosherniados.jpg")center / contain no-repeat;*/
    /*https://qjsvnfogbaqnjbqi.public.blob.vercel-storage.com/crcv/discosherniados.jpg*/
    height: auto;
    object-fit: fill;
    border-radius: 10px;
    /*column:2;*/
}

.hidden {
    display: var(--hidden);
}

.home-start {
    display: var(--show);
}


.whatsapp--widget {
     display: var(--hidden); 
    position: fixed;
    background-image: url(../img/svg/WhatsApp.svg);
    width: 70px;
    height: 70px;
    bottom: 2%;
    right: 2%;
    cursor: pointer;
    z-index: 3000;
    animation: alert 6.5s linear infinite;
    opacity: .8;
    transition: all .4s ease-in;
}

@keyframes alert {
	from {filter: drop-shadow(2px 2px 4px white);}
	25% {filter: drop-shadow(2px 2px 4px green);}
	45% {filter: drop-shadow(2px 2px 4px green);}
	65% {filter: drop-shadow(3px 4px 6px green);}
	85% {filter: drop-shadow(3px 4px 6px white);}
	to {filter: drop-shadow(2px 3px 5px white);}
}

.show {
    display: var(--show);
}

.whatsapp--numbers {
    display: var(--show);
    position: fixed;
    bottom: 3%;
    right: 15%;
    width: 60%;
    height: auto;
    z-index: 4000;
    text-align: center;
    opacity: 0;
    border-radius: 10px;
    padding: 1ch;
    border: 5px solid white;
    background: var(--solid-bground);
/*    background: #36D1DC;*/
/*    background: linear-gradient(to right, #277b82 0%, #36D1DC 100%);*/
    animation: showW .6s linear forwards;
}

.hide__parr {
	display: var(--hidden);
}

@keyframes showW {
	from {opacity: .1;}
	/*45% {opacity: .6;}
	85% {opacity: .8;}*/
	to {opacity: 1;}
}

.whatsapp--numbers h5 {
    color: var(--white);
    margin: .5em 0;
}

.whatsapp--numbers div {
    display: flex;
    justify-content: space-evenly;
    margin: .4em;
    gap: .7em;
}

.whatsapp--numbers a {
    color: var(--white);
}

.whatsapp--widget:hover {
	opacity: 1;
}

.foot {
    background-color: var(--gray-dark);
    padding: 5px;
}

.foot-social {
    display: flex;
    position: relative;
    margin: 5px auto;
    justify-content: center;
}

.social--line {
    display: flex;
    position: relative;
    padding: .2em;
    gap: 1.5em;
}

.footer--nav {
    display: flex;
    justify-content: center;
}

.footer--nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 5%;
    list-style: var(--hidden);
    column-gap: 1.5em;
}

.footer--nav a {
    border: var(--hidden);
    color: var(--light-grey);
}

.footer--nav a:hover{
	background: var(--backgroundtransparent);
	
}

.foot-rights {
    text-align: center;
    margin: 20px 0;
    color: var(--light);
    font-size: 0.5rem;
    line-height: 1em;
/*    letter-spacing: .3ch;*/
}

.foot-rights a {
/*    color: #696969;*/
    color: var(--light);
}

.cookieBox {
    display: var(--hidden);
    background-color: var(--dark);
    color: #fff;
    position: fixed;
    bottom: 0px;
    width: auto;
    padding: 10px 20px;
    font-size: 0.6rem;
    opacity: 0.9;
    z-index: 2000;
    margin: 0 auto;
}

.cookieBox a {
    color: var(--white);
}

.cookieBox button {
    margin: .4em;
    padding: .3em;
}

.botonRGPD {
    position: relative;
    cursor: pointer;
}

.botonRGPD:hover{
	color: #30303090;
} 

.cookieBox a{color:var(--white)}
.cookieBox a:hover{color:#ccc;}
.cookieBox p{width:85%;}
.cookieBox button{margin: .4em;padding: .3em;}
.cookieBox button:hover{background-color:#c2c2c2;}
.cookieBox ul {
	display: flex;
	position: relative;
	list-style: var(--hidden);
	gap: 1em;
	justify-content: center;
}

.cook {
	width: 90%;
	text-align: center;
	margin: 0 auto;
	justify-content: center;
	object-position: center;
}

/*SERVICES SECTION*/

.service {
    position: relative;
    padding: 20px 4%;
    min-height: 80dvh;
}

.slide-img {
    line-height: 1.3rem;
    margin: 2.5em auto;
    /*border: 1px solid green;*/
    max-width: 1200px;
}

.slide-img h3 {
    display: flex;
    /*position: absolute;*/
    left: 10%;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
}

.img--container {
    display: flex;
    position: relative;
    flex-direction: row;
    width: var(--all-width);
    height: auto;
    margin-bottom: 10px;
    gap: .1em;
}

.img--container img {
    object-fit: fill;
    object-position: center;
    min-width: 400px;
    height: 350px;
    margin: 2em auto auto auto;
}

.img--caption {
    color: #1b2b1b;
    min-width: 300px;
    height: auto;
    text-align: justify;
    padding: 4em .5em 0 .5em;
    overflow: hidden;
}

.img--caption p, details p {
    display: flex;
    min-width: 300px;
    text-align: justify;
    margin: 10px auto;    
    color: #1b2b1b;
    align-items: start;
}

/*SERVICES SECTION*/



/*.diag {    
    position: relative;
    width: var(--all-width);
    height: fit-content;
    text-align: justify;
    margin: 0 auto;
    min-height: 80dvh;
    padding: 20px 10%;
    letter-spacing: .1ch;
    line-height: 1.5rem;
}

.list--diagnostic h4 {
    color: var(--dark);
    margin: .5em auto;
    width: auto; */
    /*max-width: 75ch;

}

.diag ul li {
    margin-bottom: 1em;
    list-style: none;
}
*/

/*#drx {
	display: none;
}*/

details > summary {
    display: var(--show);
    width: 100%;
    position: relative;
    background-color: #0052D409;
    color: var(--blue);
    transition: .4s ease-in;
    opacity: 1;

    justify-content: space-between;
    background-color: #0052D409;
    color: var(--blue);
    text-align: left;
    transition: .4s ease-in;
    opacity: 1;
    align-items: center;  
    margin-left: 1ch;
  display: inline-block;
  font-weight: bold;
  margin: auto 10px;
  padding: 0;  transition: 0.4s;
  border-radius: 5px;
}

details > summary::after {
    position: absolute;
    content: "+";
    z-index: -1;
    right: 10px;
}

details > summary:hover {
    color: var(--white);
    opacity: .9;
    cursor: pointer;
    box-shadow: inset -85.5em 0 0 0 #0052D4,inset 85.5em 0 0 0 #0052D4;
    padding: .2em;
    z-index: 1;
    transition: all 0.3s ease-in-out;
    border-radius: 10px;
}

details[open] > summary::after {
    display: inline-block;
    content: '-';
    margin-left: 1ch;
    font-size: 1.5em;
    font-weight: bold;
    transition: 0.6s;
  }


@media (width <= 800px) {

	.header {
        /*display: grid;*/
        display: var(--show);   
        height: 90dvh;
        place-content: center;
    }

    .logo-contains {
        margin: 0 auto;
        display: block;
    }

    /*.header .logo {
        display: var(--show);
        width: 100%;
        margin:0 auto;
    }*/

    .logo-container {
        width: 300px;
        height: 150px;
        margin: 0 auto;
    }

    .header-title {
        width: 100%;
        margin: 10px auto;
    }

    /*.nav-link:hover {        
        box-shadow: none;
        border-bottom: none;
    }*/

 /*   .pageA {
        display: block;
        margin: 30px;
    }
*/
    .navbar {
        flex-direction: column;
        position: absolute;
        height: auto;
        border-bottom: #3758ba;
        margin: 30px 0 0 0;
        width: 100%;
    }

    .collapse {        
        padding: 20px 0; 
        position: fixed;
        width: 100%;
        top: 10%;
        height: fit-content;
        place-content: center;
/*        transform: translateY(170px);*/
        background: #ffffffea;
/*        transform: translateY(0);*/
        /*height: auto;*/
        z-index: 4000;
        overflow: hidden;
        transition: all 1s ease-in;
        interpolate-size: allow-keywords;
    }

    .nav-bar {
        display: var(--show);
        /*gap: 2em;*/
        /*position: absolute;*/
    }

    .nav-item {
        display: flex;        
        width: auto;    
        justify-content: flex-end;
        border-right: none;

    }

    .nav-link {
        display: flex;         
        padding: 25px 25px; 
        /*border-right: none;*/
        justify-content:right;
        border-bottom: 2px solid #77889922;        
        width: fit-content;

    }

    .nav-button {
        display: block;
        position: fixed;     
        background: url('../img/svg/button.svg') center center / contain no-repeat;
        border: none;
        cursor: pointer;        
        width: 32px;
        height: 32px;
        top: 0;
        right: 0;
        /*padding: 6px 3px;*/
        margin: 15px;
        z-index: 6000;        
        transition: all .05s ease-in-out;
        /*justify-self: flex-end;*/
        /*align-self: anchor-center;*/
        background-color: #fafaface;
    }

    .nav-button:hover {
        filter: drop-shadow(1px 1px 1px #243fa8c8);
        transform: scale(1.05);
    }

    .nav-button:active {
        background-color: var(--backgroundtransparent);
        transform: scale(0.95);
    }

    .navbar-collapse {
/*        position:relative;
/*      display: var(--hidden);*/
        padding: 0;
        height: 0;
    }
    
    .home-start {
        display: var(--show);
    }

    .home-start-side {
        /*display: var(--show);*/
        grid-template-columns: 1fr;
        height: calc(100% - 305px);
        /*height: 520px;*/
        place-content: normal;
    }

    .home-slider-content {
        height: 100%;
    }

    .home-slider-content::before {
        background-size: 100% 100%;
    }

    .aside-social-web {
        display: var(--hidden);
    }

    /*  SERVICIOS*/

    .img--container {
        display: var(--show);       
        margin: 0;      
        width: var(--all-width);
        height: auto;
    }

    .slide-img h3{
        position: relative;
        left: 0;
        color: #303030;
    }

    .img--container img{
        margin-top: .7em;
        min-width: 300px;
        width: var(--all-width);
        height: 350px;
    }

    .images {
        display: var(--show);
        position: relative;
        margin: 0 auto;
        justify-content: center;
    }
}