body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  
}

header{
    background-image: url(image.png);
    background-size: 100vw 40vh;
    background-repeat: no-repeat;
    height: 19em;
    color: #fff;
    padding: 20px;
   /* text-align: center;*/
    text-align: -webkit-right;
}
header nav{
    background-color: #f1f1f1;
    color: #333;
    border-radius: 1em;
    overflow: hidden;
    width: fit-content;
    position: fixed;
    left: 65%;
    box-shadow: 0px 0px 5px 0px;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  /*justify-content: space-between;*/
}

header nav ul li {
    padding: 1em;
    position: relative;
    z-index: 1;
    overflow: hidden;
}


nav li::after { 
  content: "";
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;  
  height: 100%; 
  background: #3498db;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: center; 
  transition: transform 0.3s ease;
}
nav li:hover::after {
  transform: scaleX(1);
}

nav li:hover a {
  color: #fff;
  transition: color 0.3s ease;
}

/*
header nav a {
  color: #fff;
  text-decoration: none;
}*/

header nav a {
  color: #181818;
  text-decoration: none;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

section {
  background-color: #f7f7f7;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
  color: #333;
  margin-bottom: 10px;
}

p {
  color: #666;
  margin-bottom: 20px;
}

button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background-color: #444;
}

.galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.galeria img {
  width: 200px;
  height: 150px;
  margin: 10px;
  border-radius: 10px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
}

textarea {
  height: 100px;
}

footer {
  background-color: #333;
  color: #fff;
  padding: 10px;
  text-align: center;
  clear: both;
  text-align: -webkit-center;
}
a{
                outline:none;text-decoration:none;color: black;
            }
            .redes{
                overflow:hidden;
                width: 30px;
                height: 30px;
                align-content: center;
                border-radius: 30px;
            }
            .redes img{
                position: relative;
                top:-4.3px;
            }
            .redes img:hover{
                top:-43px;
            }
            .redes img:out{
                top:-4.3px;
            }
/*Modal*/
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0,0,0,0.6); 
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  max-width: 90%;
  text-align: center;
  position: relative;
}
.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}
.cerrar:hover {
  color: red;
}

/* ---------------------------------------------------- */
        /* CAPA DE CARGA (El overlay que se va a revelar) */
        /* ---------------------------------------------------- */

       .chip-table{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1000; 
            /* Animación: dura 2.5s, se mantiene al final y luego se oculta */
            animation: chip-table 4.5s ease-in-out forwards;
            pointer-events: none;
            border-collapse: collapse;
        }


        /* Contenedor del Chip: Centrado en el overlay */
        .chip-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 35vw; /* Tamaño inicial visible */
            max-width: 1500px;
            
            /* Animación del chip: se agranda y se desvanece */
            animation: chip-zoom-out 4.5s ease-in-out forwards;
        }

        
       /* Animación: El chip se agranda y se desvanece */
        @keyframes chip-zoom-out {
            40% { 
                opacity: 1; 
                transform: translate(-45%, -50%) scale(1);
            }
            100% { 
                opacity: 0; /* Desaparece completamente */
                transform: translate(-45%, -50%) scale(15);
            }
        }

        @keyframes chip-table {
            40% { 
                opacity: 1; 
            }
            100% { 
                opacity: 0; /* Desaparece completamente */
                transform: translate(-60%, -55%) scale(15);
            }
        }
        
        /* Animación para ocultar el overlay */
        @keyframes hide-overlay {
            0% { opacity: 1;}
            50% { opacity: 1; } /* Se mantiene visible hasta casi el final */
            100% { opacity: 0; display: none; } /* Se desvanece y oculta por completo */
        }
        
        /* Estilos del SVG del Chip */
        .chip-svg {
            width: 100%;
            height: auto;
            background-blend-mode: exclusion;
            
            /* No necesitamos invert filter si el SVG ya está diseñado con los colores correctos */
        }
    