
body {
    background-color: rgb(46, 255, 168);
}


h1 {
    color: rgb(17, 0, 255);
    font-size: 50px;
    font-style: oblique;
    font-weight: bold;
    text-shadow: 2px 2px rgb(43, 15, 15);
    letter-spacing: 4px;
}

.titulo1{
    color: rgb(77, 48, 240);
    font-weight: bold;
    font-style: italic;
    text-shadow: 2px 2px rgb(209, 68, 139);
    border-style:dotted;
    border-color:brown;
    text-align: center;
}


.imagen{
    border-radius: 25px;
    box-shadow: 2px 2px rgb(6, 14, 248);
    display: block;
    margin: auto;
    width: 30%;
    border-style: dotted;
    border-color: rgb(18, 41, 98);
}

#parrafo1{
      font-family: "Playwrite IE", cursive;
  font-optical-sizing: auto;
  font-weight: 80;
  font-style: normal;
}


#parrafo2{
    font-family: "Dancing Script", cursive;
  font-optical-sizing: auto;
  font-weight: 4000;
  font-style: normal;
}


#parrafo3{
    font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}


#parrafo4{
    font-family: "Buda", serif;
  font-weight: 300;
  font-style: normal;
}


#capital1{
    font-size: 90;
    font-weight: 200;
    font-style:normal;
    color: rgb(2, 53, 2);
}


.menu{
    display: flex;
    flex-direction: column;
    padding: 20px;
    justify-content: center;
    gap: 30px;
}


.menu a{
    text-decoration: none;
    color: rgb(37, 37, 233);
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    background-color: rgb(104, 37, 37);
    padding: 2px;
    border-radius: 8px;
}

a.seleccionada{
    background-color: rgb(128, 255, 0);
    text-shadow: 2px 2px rgb(5, 5, 5);
    font-style: normal;
}

a:hover{
    background-color: rgb(153, 56, 243);
    color: white;
}

.redondo:hover{

    border-radius: 20px;
    box-shadow: 6px 6px rgb(212, 177, 123);

}

img:hover{
    animation: animacion 3s ease forwards;
}


@keyframes animacion{
    0%{
        opacity: 10%;
    }
    50%{
        opacity: 70%;
    }
     100%{
        opacity: 100%;
     }   
}


.titulo2:hover{
    animation: colores 0.8s ease-out forwards;
}

@keyframes colores{
    0%{
        color: red;
        font-size: 55px;
    }
    100%{
        color: green;
        font-size: 68px;
    }
}


.contenedor-texto {
  width: 100%;
  overflow: hidden; 
  background: rgb(46, 255, 168);
  padding: 10px 0;
}

.carreras {
  display: inline-block;
  white-space: nowrap; 
  color: #00ffcc;
  font-family: sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  animation: desplazamientoTexto 10s linear infinite;
}

@keyframes desplazamientoTexto {
  0% {
    transform: translateX(-100%); 
  }
  50% {
    color: #ff00ff; 
  }
  100% {
    transform: translateX(100vw); 
  }
}


.escenario {
  width: 100%;
  height: 150px;
  border-bottom: 2px solid #ccc;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.forma {
  width: 80px;
  height: 80px;
  background-color: red;
  animation: transformarYMovimiento 8s ease-in-out infinite;
}

@keyframes transformarYMovimiento {
  0% {
    transform: translateX(0);
    border-radius: 0%;
    background-color: red;
  }
  50% {
    transform: translateX(calc(100vw - 150px)); 
    border-radius: 50%;
    background-color: green;
  }
  100% {
    transform: translateX(0);
    border-radius: 0%;
    background-color: red;
  }
}

caption {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    padding-bottom: 15px;
    text-align: left;
    text-transform: uppercase;
  }

table {
    width: 100%;
    border-spacing: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(1) {
    background-color: #34495e;
    color: white;
}

tr:nth-child(2) {
    background-color: #ebf5fb; 
    color: #2c3e50;
}

tr:nth-child(3) {
    background-color: #fef9e7; 
    color: #7d6608;
}

tr:nth-child(4) {
    background-color: #9598af; 
    color: #1b4b2fa6;
}

tr:hover {
    filter: brightness(0.95);
    transition: 0.2s;
}

@keyframes girar-icono {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

td i {
    display: inline-block; 
    animation: girar-icono 3s linear infinite; 
    margin-right: 12px;   
    width: 20px;         
    text-align: center;
    vertical-align: middle;
}

table {
    width: 100%;
    border-spacing: 0;
    font-family: 'Segoe UI', sans-serif;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #ddd;
}

th, td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

tr:nth-child(1) { background-color: #34495e; color: white; } 
tr:nth-child(2) { background-color: #9161b1; color: #26598b; } 
tr:nth-child(3) { background-color: #e4ce7f; color: #2f6b6d; } 
tr:nth-child(4) { background-color: #8de0d1; color: #7a3939; } 

tr:last-child td { border-bottom: none; }

caption {
    font-size: 1.5rem;
    font-weight: bold;
    padding-bottom: 10px;
    text-align: left;
}


body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.triangulo-container {
    width: 300px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

input {
    width: 90%;
    padding: 8px;
    margin: 8px 0;
}

button {
    padding: 10px 20px;
    background: #007acc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #005f99;
}


/* No afecta a nada fuera de este ID */
#contenedor-triangulo-exclusivo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

#contenedor-triangulo-exclusivo .triangulo-forma {
    background-color: #3b82f6; /* Color azul */
    width: 350px;
    height: 320px;
    /* Crea la forma de triángulo */
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: center;
    padding-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#contenedor-triangulo-exclusivo .contenido-formulario {
    text-align: center;
    color: white;
    width: 140px; /* Estrecho para que no se salga de las paredes del triángulo */
}

#contenedor-triangulo-exclusivo input {
    width: 100%;
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 4px;
    border: none;
    color: #333;
}

#contenedor-triangulo-exclusivo button {
    background-color: #1e293b;
    color: white;
    border: none;
    padding: 8px 10px;
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

#contenedor-triangulo-exclusivo #tri-res {
    margin-top: 10px;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.2);
    padding: 5px;
    border-radius: 4px;
}


.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

h1 {
    color: #1a202c;
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    color: #718096;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 25px;
}

/* Formulario */
.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #4299e1;
    outline: none;
}

button {
    width: 100%;
    padding: 14px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #3182ce;
}

/* Resultados */
.hidden {
    display: none;
}

#resultado {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #edf2f7;
}

.result-box {
    text-align: center;
    background: #ebf8ff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.label {
    display: block;
    color: #2c5282;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.amount {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #2b6cb0;
}

.details {
    font-size: 0.9rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #4a5568;
}

.badge {
    background: #edf2f7;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    color: #2d3748;
}