* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.topbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    background-color: #1c1318;
    padding: 0 20px;
}

.logo {
    height: 80px;
}

.menu {
    display: flex;
    gap: 15px;
}

.menu button {
    padding: 10px 20px;
    font-size: 16px;
    color: #000;
    background-color: #cac380;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.menu button:hover {
    background-color: #777;
}

.sobre-mi {
    padding: 50px 20px;
    background-color: #f3f3f3; /* Color de fondo claro para el apartado */
    text-align: center;
}

.sobre-mi h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1c1318; /* Color del título */
}

.sobre-mi p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}


/* Estilos del carrusel */
.carrusel {
    position: relative;
    max-width: 800px;
    height: 300px; /* Define la altura del carrusel */
    margin: 50px auto;
    overflow: hidden;
    border-radius: 10px;
}

.carrusel-imagenes {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: calc(100% * 5); /* Ancho total para las 5 imágenes */
}

.carrusel-imagenes a {
    flex: 0 0 100%; /* Cada imagen ocupa el 100% del contenedor del carrusel */
    height: 100%;
    text-align: center;
}

.carrusel-imagenes img {
    height: 300px;
    border-radius: 5px; /* Bordes redondeados */
    display: flex;
}

/* Botones para navegar */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.areas-de-derecho {
    background-color: #f3f3f3;
    padding: 40px 20px;
    text-align: center;
}

.areas-de-derecho h2 {
    font-size: 32px;
    color: #1c1318;
    margin-bottom: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.areas-de-derecho ul {
    list-style-type: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.areas-de-derecho ul li {
    font-size: 20px;
    padding: 15px;
    color: #333;
    background-color: #ffffff;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.areas-de-derecho ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.areas-de-derecho ul li .descripcion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease, padding 1s ease;
    font-size: 16px;
    color: #555;
    text-align: left;
    line-height: 1.5;
    padding: 0;  /* Inicialmente sin padding */
}

.areas-de-derecho ul li.active .descripcion {
    max-height: 150px; /* Ajusta esta altura según el contenido */
    padding: 10px 0;  /* Añade padding cuando está activo */
}

.contacto {
    background-color: #f3f3f3;
    padding: 50px 20px;
    text-align: center;
}

.contacto h2 {
    font-size: 32px;
    color: #1c1318;
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contacto-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.mapa, .formulario-contacto {
    flex: 1;
    min-width: 300px;
    max-width: 48%; /* Asegura que ambos ocupen la mitad de la pantalla */
    height: 400px; /* Altura consistente para ambos */
}

.mapa iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.formulario-contacto {
    display: flex;
    justify-content: center;
    align-items: center;
}

.formulario-contacto form {
    width: 100%;
    max-width: 450px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.formulario-contacto label {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
    font-weight: bold;
}

.formulario-contacto input, 
.formulario-contacto textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease; 
    resize: none; /* Evita que el textarea se pueda agrandar */
}

.formulario-contacto input:focus, 
.formulario-contacto textarea:focus {
    border-color: #1c1318;
    outline: none;
}

.formulario-contacto button {
    background-color: #1c1318;
    color: white;
    padding: 15px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.formulario-contacto button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.float{
	position:fixed;
	width:60px;
	height:60px;
	bottom:40px;
	right:40px;
	background-color:#25d366;
	color:#FFF;
	border-radius:50px;
	text-align:center;
  font-size:30px;
	box-shadow: 2px 2px 3px #999;
  z-index:100;
}
.float:hover {
	text-decoration: none;
	color: #25d366;
  background-color:#fff;
}

.my-float{
	margin-top:16px;
}