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


body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}


header {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: fixed;
  top: 0;
  z-index: 1000;
}

header .logo img {
  height: 40px;
}

header .nav-links {
  display: flex;
  gap: 15px;
}

header .nav-links a {
  width: 100%;
  text-align: center;   
  text-decoration: none;
  color: black;
  font-size: 16px;
  background-color: white;
  margin: 5px;
  padding: 10px;
  transition: 0.3s;
}

.nav-links a i {
  margin-right: 2px; /* Espacio entre el icono y el texto */
}

header .nav-links a:hover {
  background-color: #5dade2;
  color: white;
}

.menu-toggle {
  position: relative;
  width: 40px;
  height: 30px;
  cursor: pointer;
  display: none;
}

.menu-toggle input {
  display: none;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: black;
  border-radius: 9px;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.menu-toggle span:nth-of-type(1) {
  top: 0;
  transform-origin: left center;
}

.menu-toggle span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.menu-toggle span:nth-of-type(3) {
  top: 100%;
  transform: translateY(-100%);
  transform-origin: left center;
}

.menu-toggle input:checked ~ span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle input:checked ~ span:nth-of-type(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle input:checked ~ span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 28px;
}

/* Menú móvil */
.mobile-menu {
   z-index: 999;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-toggle input:checked ~ .mobile-menu {
  visibility: visible;
  opacity: 1;
}

.mobile-menu a {
  text-decoration: none;
  font-size: 20px;
  color: black;
}

/* Submenú debajo de 'Inicio' */
.submenu {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  width: 200px;
  z-index: 100;
}

.submenu a {
  text-decoration: none;
  font-size: 16px;
  color: black;
  padding: 10px;
  display: block;
  background-color: white;
  transition: background-color 0.3s ease;
}

/* Estilo de los iconos dentro del submenú */
.submenu a i {
  margin-right: 8px;            /* Espacio entre el icono y el texto */
}

.submenu a:hover {
  background-color: #5dade2;
  color: white;
}

/* Mostrar el submenú cuando se hace clic en "Inicio" */
nav .menu-item:focus + .submenu,
nav .menu-item:hover + .submenu {
  display: block;
}

/* Aseguramos que el contenido principal no tape el footer */
main {
  flex-grow: 1;
}

@media (max-width: 768px) {
  header .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    top: 0;
  }
}

























.container {
            display: flex;
            flex-wrap: wrap; /* Permitir que los elementos se adapten en móviles */
            align-items: flex-start;
            justify-content: center;
            gap: 50px; /* Separación inicial entre los elementos */
            padding: 20px;
          margin-top: 80px;
        }

        .rectangle-container {
            position: relative;
            width: 310px;
            height: 360px;
            border: 20px solid #007ACC; /* Borde celeste */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Sombra */
            flex-shrink: 0; /* Evitar que se reduzca de tamaño */
        }

        .rectangle-container img {
            position: absolute;
            right: -63%; /* Sobresaliente a la derecha */
            width: 163%; /* Doble del ancho original para que sobresalga */
            height: 100%;
            object-fit: cover; /* Mantener la proporción y rellenar el contenedor */
        }

        .texto {
            margin-top: 50px;
            flex: 1; /* Tomar el espacio disponible */
            color: #007ACC; /* Texto azul */
            max-width: 400px; /* Limitar el ancho máximo */
        }

        .texto h2 {
            margin-bottom: 10px;
            border-bottom: 2px solid #007ACC; /* Línea separadora */
            padding-bottom: 5px;
        }

        .texto ul {
            list-style-type: none;
            padding: 0;
        }

        .texto ul li {
            margin-bottom: 10px;
        }

        .texto ul li i {
            margin-right: 10px;
        }

           .additional-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
            margin-top: 50px;
        }

        .button-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .social-button {
    display: flex;
    align-items: center;
     justify-content: center; 
    width: 150px; /* Ancho para escritorio */
    height: 80px;
    background-color: #007ACC;
    color: white;
    font-size: 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease-in-out; /* Transición suave */
    border: 2px solid #007ACC;
}

.social-button i {
    margin-right: 10px; /* Espacio entre ícono y texto */
    transition: color 0.1s ease-in-out; /* Transición para el color del ícono */
  
}

.social-button:hover {
    background-color: white; /* Fondo blanco */
    color: #007ACC; /* Cambiar color del texto e ícono a azul */
    border: 2px solid #007ACC; /* Agregar un borde azul */
}

      

        .orange-rectangle {
            left: 100px;
            position: relative;
            width: 310px;
            height: 360px;
            border: 20px solid #FFA500; /* Borde naranja */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Sombra */
            flex-shrink: 0; /* Evitar que se reduzca de tamaño */
        }

        .orange-rectangle img {
            position: absolute;
            top: -44%; /* Sobresaliente hacia arriba */
            left: -155px;
            width: 160%;
            height: 144%; /* Doble del alto original para que sobresalga */
            object-fit: cover; /* Mantener la proporción y rellenar el contenedor */
        }
 /* Ajustes para pantallas grandes */
        @media (min-width: 769px) {
            .container {
                gap: 100px; /* Más separación entre los elementos */
            }
            .social-button {
        position: relative; /* Permitir ajustar la posición */
        left: -50px; /* Mover hacia la izquierda */
        top: 50px; /* Mover hacia abajo */
         width: 150px; /* Ancho para escritorio */
         height: 150px;
         font-size: 40px;
    }
        }
        @media (max-width: 768px) {
           .container {
                flex-direction: column; /* Colocar los elementos uno debajo del otro */
                align-items: center; /* Centrar los elementos */
            }

            .rectangle-container {
              margin-left: -50px;
                width: 300px; /* Reducir el tamaño en móviles */
                height: 360px;
            }

            .rectangle-container img {
              margin-left: 10px;
                right: -62%; /* Reducir el sobresaliente en móvil */
                width: 162%;
            }

            .texto {
               margin-top: 0px;
                max-width: 300px; /* Ajustar el ancho máximo en móviles */
                text-align: center; /* Centrar el texto */
            }
             .additional-content {
                
            }

            .social-button {
              margin-bottom: 20px;
              z-index: 1;
                width: 80px; /* Ancho reducido en móviles */
                justify-content: center; /* Centrar solo el ícono */
            }

            .social-button i {
                margin-right: 0; /* Sin espacio en móviles */
            }

            .orange-rectangle {
              left: 20px;
                width: 200px;
                height: 240px;
            }

            .orange-rectangle img {
               left: -90px;
                top: -50%;
                height: 150%;
               width: 160%;
              }
        }
      
 .content-linkedin {
            display: flex;
            flex-wrap: wrap; /* Allows items to wrap to the next line */
            width: 100vw;
            background-color: black;
   margin-top: 100px;
   margin-bottom: 50px;
        }

        .left-half,
        .right-half {
            flex: 1 1 100%; /* Ensures both halves take full width on smaller screens */
            height: auto;
        }

        .left-half {
            background: url('https://i.postimg.cc/B6ZgLBg8/29.png') no-repeat center center;
            background-size: cover; /* Ensures the image fills its container width */
            aspect-ratio: 2 / 1; /* Ensures the height matches the width proportionally */
        }

        .right-half {
            background: url('https://i.postimg.cc/3RLZg0St/30.png') no-repeat center center;
            background-size: cover;
            height: 50vh; /* Ensures it has visible height even without content */
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .content {
            text-align: center;
            color: white;
            background-color: rgba(0, 0, 0, 0.6);
            padding: 20px;
            border-radius: 10px;
           width: 100%; /* Ocupa todo el ancho */
    height: 100%; /* Ocupa todo el alto */  display: flex; /* Centrado adicional si es necesario */
    flex-direction: column; /* Asegura que los elementos internos estén en columna */
    justify-content: center; /* Centra verticalmente el contenido */
    align-items: center; /* Centra horizontalmente el contenido */
    box-sizing: border-box; /* Considera el padding al calcular el tamaño */
        }

        .linkedin-button {
            display: inline-flex;
            align-items: center;
            padding: 10px 20px;
            background-color: #0077b5;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-size: 16px;
            font-weight: bold;
            margin-top: 10px;
            transition: background-color 0.3s;
            border: 2px solid #0077B5;
        }

        .linkedin-button i {
            margin-right: 8px;
        }

        .linkedin-button:hover {
            background-color: white;
            color: #0077B5;
            border: 2px solid #0077B5;
        }

        @media (min-width: 768px) {
            .left-half,
            .right-half {
                flex: 1; /* Resets the stacking behavior for larger screens */
            }
        }
      
      
      footer {
            font-family: Arial, sans-serif;
        }

        /* Primer div dentro del footer */
        .footer-white {
            background-color: #f4f4f4;
            color: #273181;
            text-align: center;
            padding: 15px 0;
            border-bottom: 1px solid #ddd;
        }
        .footer-white img {
            vertical-align: middle;
            width: 90px; /* Ajusta el tamaño del logo */
            margin-right: 10px;
        }

        /* Segundo div dentro del footer */
        .footer-dark {
            background-color: #222222;
            color: #b6b5b3;
            text-align: center;
            padding: 20px 0;
            font-size: 14px;
        }
        .footer-dark a {
            color: #dfdfdf;
            text-decoration: none;
        }
        .footer-dark a:hover {
            text-decoration: underline;
        }