*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body{
    display:flex;
    min-height:100vh;
    background:#f4f6f9;
}

/* ===== SIDEBAR ===== */
.sidebar{
    width:250px;
    background:#1417c9;
    color:white;
    padding:20px;
    position:fixed;
    height:100%;
    transition:0.3s;
}

.sidebar h2{
    text-align:center;
    margin-bottom:30px;
}

.sidebar ul{
    list-style:none;
}

.sidebar ul li{
    margin:20px 0;
}

.sidebar ul li a{
    color:white;
    text-decoration:none;
    font-size:18px;
}
.sidebar-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.close-btn{
    display:none;
    background:none;
    border:none;
    color:white;
    font-size:26px;
    cursor:pointer;
}

.sidebar ul li a{
    position:relative;
    display:block;
    padding:12px 15px 12px 20px;
    color:white;
    text-decoration:none;
    font-size:18px;
    transition:color 0.3s ease, background 0.3s ease;
}

/* Borde lateral oculto */
.sidebar ul li a::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    height:100%;
    width:4px;
    background:#93c5fd;
    transform:scaleY(0);
    transition:transform 0.3s ease;
    transform-origin:top;
}

/* Hover (mouse) */
.sidebar ul li a:hover::before{
    transform:scaleY(1);
}

/* Hover color */
.sidebar ul li a:hover{
    background:rgba(255,255,255,0.1);
}

/* Touch (móvil) */
.sidebar ul li a:active::before{
    transform:scaleY(1);
}



/* ===== CONTENIDO ===== */
.main-content{
    margin-left:250px;
    text-align: justify;
    width:100%;
}

/* ===== HEADER MÓVIL ===== */
.mobile-header{
    display:none;
    align-items:center;
    gap:15px;
    padding:15px;
    background:white;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.menu-btn{
    font-size:28px;
    background:none;
    border:none;
    cursor:pointer;
}

/* ===== SLIDER ===== */
.slider{
    width:100%;
    max-width:1000px;
    height:350px;
    margin:30px auto;
    overflow:hidden;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.slides{
    display:flex;
    width:300%;
    height:100%;
    animation:slide 12s infinite;
}

.slide{
    width:100%;
}

.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* ===== TEXTO ===== */
.content{
    padding:20px;
    max-width:1000px;
    margin:auto;
}

* {box-sizing: border-box}
body {font-family: "Lato", sans-serif;}

/* Style the tab */
.tab {
  float: left;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  width: 30%;
  height: 300px;
}

/* Style the buttons inside the tab */
.tab button {
  display: block;
  background-color: inherit;
  color: black;
  padding: 22px 16px;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  font-size: 17px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current "tab button" class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  float: left;
  padding: 0px 12px;
  border: 1px solid #ccc;
  width: 70%;
  border-left: none;
  height: 300px;
  display: none;
}

/* Clear floats after the tab */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

* {box-sizing: border-box}
body {font-family: "Lato", sans-serif;}

/* Style the tab */
.tab {
  float: left;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  width: 30%;
  height: 300px;
  margin-bottom: 20px;
}

.tabs-section{
    margin-top: 60px;
    padding: 30px;
}


/* Style the buttons inside the tab */
.tab button {
  display: block;
  background-color: inherit;
  color: black;
  padding: 22px 16px;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  font-size: 17px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current "tab button" class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  float: left;
  padding: 0px 12px;
  border: 1px solid #ccc;
  width: 70%;
  border-left: none;
  height: 300px;
  display: none;
}

/* Clear floats after the tab */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.btn-1 {
    display: inline-block;
    background-color: #181a9a;
    margin-top: 80px;
    margin-bottom: 60px;
    padding: 15px 25px;
    color: #ffffff;
    border-radius: 10px;
}

.btn-1:hover {
    background-color: #919191;
}

/* ===== ANIMACIÓN ===== */
@keyframes slide{
    0%{margin-left:0;}
    33%{margin-left:0;}
    38%{margin-left:-100%;}
    66%{margin-left:-100%;}
    71%{margin-left:-200%;}
    100%{margin-left:-200%;}
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){

    body{
        flex-direction:column;
    }

    .sidebar{
        left:-250px;
        z-index:1000;
    }

    .sidebar.active{
        left:0;
    }

    .main-content{
        margin-left:0;
    }

    .mobile-header{
        display:flex;
    }

    .slider{
        margin-top:20px;
    }

    @media(max-width:768px){

    .close-btn{
        display:block;
    }

}

}