@import url('../fonts/AtkinsonHyperlegible-Bold.ttf');

body{
    margin:0;
    color: #555650;
    font-size: 18px;
    line-height: 1.5;
     font-family: "Atkinson Hyperlegible", sans-serif;
}

h1{
    font-size: 40px;
}

h2{
    font-size: 32px;
    font-weight: 600;
    color: #06847F;

}

h3{
    font-size: 24px;
    font-weight: 600;
    color: #06847F;
}

p, li{
    font-size: 18px;
}

a{
    color: #555650;
}

a:hover, a:focus-visible{
    text-decoration: none;
    color: #06847F;
    
}

:focus-visible{
	outline: 2px solid #4E0B32;
	outline-offset: 4px;
  border-radius: 2px;

}


.skip {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
    white-space: nowrap;
}


.skip:focus {
    color: #555650;
    clip-path: inset(0%);
    clip: auto;
    height: auto;
    width: auto;
    top: 0;
    padding: 1rem;
    background-color: #ffffff;
    border: 2px solid #4E0B32;
    border-radius: 6px;
}





hr{
    margin: 30px;
    
}



label{
    display: block;
    margin-top: 10px;
}


form {
    max-width: 400px;
    margin-block-start: 1.2em;
  }
  

  
  input, textarea {
    width: 100%;
    padding: 10px 20px;
    margin-bottom: 5px;
    border: 2px solid #555650 !important;
    border-radius: 6px;
    font-size: 18px;
    font-family: "Atkinson Hyperlegible", sans-serif;
    color: #555650;
  }
  
  .mensaje-error {
    color: #D83C48;
    font-size: 0.9em;
    margin-bottom: 10px;
  }
  
  input[aria-invalid="true"] {
    border: 1px solid #555650 !important;
    outline: 2px solid #D83C48;
	outline-offset: 4px;
  }
  
  #resumenErrores {
    color: #D83C48;
    margin-bottom: 15px;
    border: 0px solid red;
    display: none;
  }
  
  #resumenErrores a {
    color: #D83C48;
    text-decoration: underline;
    cursor: pointer;
  }

button, .button{
    background-color: #831354;
    border-radius: 6px;
    padding-left: 45px;
    padding-right: 45px;
    padding-top: 12px;
    padding-bottom: 12px;
    border: 0;
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}

button:hover{
    background-color: #4E0B32;
}

button:focus-visible{
    background-color: #4E0B32;
}

a.button{
    text-decoration: none;
}

a:hover.button{
    color: #ffffff;
    background-color: #4E0B32;
}

.button:focus-visible{
    outline: 2px solid #ffffff;
	outline-offset: 4px;
  border-radius: 2px;
    background-color: #ffffff;
    color: #4E0B32;
}


.button.btn-secondary {
            background-color: transparent;
            color: #ffffff;
            text-decoration: underline;
        }

.button.btn-secondary:hover {
     background-color: transparent;
            color: #ffffff;
    text-decoration: none;
}

.button.btn-secondary:focus-visible{
    outline: 2px solid #ffffff;
	outline-offset: 4px;
  border-radius: 2px;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
}





/*CONTENIDO*/

.profes{
    font-weight: 600;
}

.img-redondo{
    border-radius: 550px;
}

.margen-sup{
    margin-top: 24px;
}
.center{
    text-align: center;
}

.fondo{
    background-color: #E6F2F2;
    
}

.margenes{
padding-top: 35px;
    padding-bottom: 20px;
}

.testimonios:before{
    content:url(../images/comillas.png);
    
    padding-right: 10px;
}
.testimonios{
    text-indent: -30px;
}




/*HEADER*/

header{
    width: 100%;
    height: 100px;
    background-color: #ffffff;
    margin: 0;
}

div.cabecera{
    
    padding-top: 10px;
    padding-left: 20px;
    float:left;
}


 .hero-banner {
    position: relative;
    width: 100%;
    height: 538px;
    background-image: url('../images/banner-microcredencial.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 10%;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    
    padding: 0 20px;
    max-width: 900px;
}

.hero-title {
    color: #ffffff;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    
    flex-wrap: wrap;
}


 nav ul {
            list-style: none;
            display: flex;
            justify-content: center;
            gap: 2rem;
        }

nav#menu-principal{
    position: absolute;
    right: 0px;
    margin-right: 20px;
    margin-top:18px;
    height: 44px;
    margin-bottom: 33px;
    z-index: 999;
}

nav#menu-principal ul li{
   float:left; 
   list-style-type: none;
   padding: 10px;
}

nav#menu-principal a{
    text-decoration: none;
    color: #555650;
}

nav#menu-principal a:hover, nav#menu-principal a:focus{
    color: #1F7D84;

}

 /* Botón hamburguesa - oculto por defecto */

 button.menu-toggle{
background: none;
margin-right: 20px;
 }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    
    position: absolute;
    right: 1rem;
    top: 50px;
    transform: translateY(-100%);
    z-index: 1001;
    
}

.hamburger {
    width: 30px;
    height: 3px;
    background-color: #555650;
    position: relative;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: #555650;
    transition: all 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Animación del botón cuando está activo */
.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}






/*COLUMNAS*/
.container {
            max-width: 1200px;
            margin: 0 auto;
            padding-left: 30px;
            padding-right: 30px;
        }

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.column {
    
    text-align: center;
}


.container-50-50 {
            display: flex;
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
            padding-left: 30px;
            padding-right: 30px;
        }

.column-50 {
    flex: 1;
    
}


.container-70-30 {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            gap: 20px;
            flex-direction: column-reverse;
            
        }

.columna-principal {
    
}

.columna-secundaria {
    
}


.container3 {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 30px;
}

.row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.column3 {
    flex: 1;
    
}


.container-30-70 {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    flex-direction: column;
    padding-left: 30px;
            padding-right: 30px;
}

.columna-sidebar {
    
}

.columna-principal-70 {
    
}


/*TABLAS*/

table {
    background-color: transparent;
    border-collapse:collapse;
    font-family: Arial, Helvetica, sans-serif
}
th {
    text-align:left
}

.dcf-table caption {
      color: #555650;
      font-size: 24px;
      font-weight: 700;
      
    }
    .dcf-table thead {
      font-size: 24px;
      text-align: left !important;
    }
    .dcf-table tbody {
      border-bottom: 1px solid var(--b-table);
      border-top: 1px solid var(--b-table);
      
    }
    .dcf-table tfoot {
      font-size: .84em
    }
    .dcf-table td, .dcf-table th {
      padding-right: 1.78em;
      border-bottom: 1px solid #06847F;
    }
    .dcf-table thead td, .dcf-table thead th {
      padding-bottom: .75em;
      vertical-align: bottom
    }
    .dcf-table tbody td, .dcf-table tbody th, .dcf-table tfoot td, .dcf-table tfoot th {
      padding-top: .75em;
      vertical-align: top
    }
    .dcf-table tbody td, .dcf-table tbody th {
      padding-bottom: .75em
    }
    .dcf-wrapper-table-scroll {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      left: 50%;
      margin-left: -50vw;
      margin-right: -50vw;
      padding-bottom: 1em;
      position: relative;
      right: 50%;
      width: 100vw
    }
    .dcf-w-100\% {
    width: 100% !important;
}


/*FOOTER*/

footer{
    background-color: #06847F;
    color: #ffffff;
    height: 100px;
    padding-top: 40px;
}

footer p{
    text-align: center;
    font-size: 16px;
}

footer a, footer a:focus-visible{
    color: #ffffff;
}

footer a:hover{
    text-decoration: none;
}

footer :focus-visible{
	outline: 2px solid #ffffff;
	outline-offset: 4px;
  border-radius: 2px;

}

.switch-container {
    display: flex;
    align-items: center;
    
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    outline: none; 
    
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4E0B32;
}

.switch:focus-within .slider {
    box-shadow: 0 0 5px #4E0B32; 
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.switch-label {
    margin-left: 10px;
}



/*DARK MODE*/
body.dark-mode {

	background-color: #121212;
		color: #fff;

}
body.dark-mode a, body.dark-mode nav#menu-principal a{
    color: #ffffff;
}

body.dark-mode nav#menu-principal a:hover{
    color: #69B5B2 !important;
}

body.dark-mode header{
    background-color: #121212;
		color: #fff;
    }

body.dark-mode h2, body.dark-mode h3{
    color: #69B5B2;
}


body.dark-mode :focus-visible{
	outline: 2px solid #ffffff;
	outline-offset: 4px;
  border-radius: 2px;

}


body.dark-mode button:focus-visible{
    background-color: #ffffff;
    color: #121212;
}



body.dark-mode .mensaje-error {
    color: #DF636C;
  
  }
  
 body.dark-mode  input[aria-invalid="true"] {
    border: 1px solid #DF636C !important;
    outline: 2px solid #DF636C;

  }
  
body.dark-mode   #resumenErrores {
    color: #DF636C;
   
    border: 0px solid #DF636C;
 
  }
  
body.dark-mode   #resumenErrores a {
    color: #DF636C;
    
  }


 body.dark-mode .fondo {
    background-color: #252525;
}


body.dark-mode .hamburger::before, body.dark-mode .hamburger::after{
    background-color: #ffffff;
}


body.dark-mode nav ul{
    background-color: #121212;
    color: #ffffff;
}



/*RESPONSIVE*/

 /* Desktop: 70% - 30% lado a lado */
        @media (min-width: 768px) {
            .container-70-30 {
                flex-direction: row;
                padding-left: 20px;
            padding-right: 20px;
            }

            .columna-principal {
                flex: 0 0 70%;
            }

            .columna-secundaria {
                flex: 0 0 calc(30% - 20px);
            }


             .container-30-70 {
                flex-direction: row;
            }

            .columna-sidebar {
                flex: 0 0 30%;
            }

            .columna-principal-70 {
                flex: 0 0 calc(70% - 20px);
            }


        }

/* Tablet - 2 columnas 
@media (max-width: 1024px) {
    .container {
            max-width: 1024px;
            margin: 0 auto;
            padding-left: 30px;
            padding-right: 30px;
        }
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}*/

/* Móvil - 2 columnas */
@media (max-width: 768px) {

    .hero-title {
                font-size: 2rem;
            }

    .container {
            max-width: 768px;
            margin: 0 auto;
            padding-left: 20px;
            padding-right: 20px;
        }
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .column {
        
    }

    .container-50-50 {
                flex-direction: column;
                padding-left: 20px;
            padding-right: 20px;
            }

    .column-50 {
   
    }

    .row {
                flex-direction: column;
            }
            
    .column3 {
        width: 100%;
    }


    .menu-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 4rem;
        gap: 0;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    }

    nav ul.active {
        right: 0;
    }

    nav li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }

    nav a {
        padding: 1rem 1.5rem;
    }

    /* Overlay oscuro cuando el menú está abierto 
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .overlay.active {
        display: block;
    }*/
}

    
    



/* Móvil pequeño - opcional: 1 columna */
@media (max-width: 480px) {
    
    .hero-title {
                font-size: 1.5rem;
                margin-bottom: 1.5rem;
            }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .container {
            max-width: 480px;
            margin: 0 auto;
            padding-left: 20px;
            padding-right: 20px;
            
        }

    .grid {
        gap: 10px;
    }

    .column {
        
    }
    .container-70-30 {
                padding-left: 20px;
            padding-right: 20px;
            }
}


/*Tablas responsive*/

@media only screen and (max-width:42.09em) {
      .dcf-table-responsive thead {
        clip: rect(0 0 0 0);
        -webkit-clip-path: inset(50%);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        width: 1px;
        white-space: nowrap
      }
      .dcf-table-responsive tr {
        display: block
      }
      .dcf-table-responsive td {
        -webkit-column-gap: 3.16vw;
        -moz-column-gap: 3.16vw;
        column-gap: 3.16vw;
        display: grid;
        grid-template-columns: 1fr 2fr;
        text-align: left!important
      }
      
      .dcf-table-responsive tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: 700;
        padding-right: 1.78em
      }
      .dcf-table-responsive tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: 700;
        padding-right: 1.78em
      }
    }