/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header y Navegación --- */
.header {
    background-color: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-main);
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Estructura Principal del Contenido (Grid) --- */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 2rem;
}

.grid-layout {
	
    display: grid;
   /* grid-template-columns: 1fr 420px; /* Tarjetas ocupan espacio disponible, formulario es fijo */
    gap: 3rem;
    width: 100%;
    max-width: 1100px;
    align-items: center;
}

/* --- Sección de Tarjetas (Imagen Izquierda, Texto Derecha) --- */
.cards-section {

    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {

    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex; /* Alinea la imagen a la izquierda y el texto a la derecha */
    transition: transform 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
}

.card-image-wrapper {
    padding:20px;
    width: 600px; /* Ancho fijo para la sección de la imagen */
    flex-shrink: 0;
}

.card-image {
    
border-radius: 16px;
border: solid 5px rgb(200,200,240);
    width: 100%;
    height: auto;
   /* object-fit: cover; /* Hace que la imagen llene el espacio sin deformarse */
}

.card-text {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pie-text {
    
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: left;
}
.pie-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.card-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.card-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Sección del Formulario --- */
.form-container {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.form-container h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-container p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Inputs flotantes animados */
.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    background: transparent;
    transition: border-color 0.2s ease;
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
    background-color: var(--card-bg);
    padding: 0 0.25rem;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: var(--primary-color);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
}

/* --- Diseño Responsive (Mobile / Tablet) --- */
@media (max-width: 900px) {

    .grid-layout {
        grid-template-columns: 1fr; /* Pasa a ser una sola columna */
        gap: 2.5rem;
    }

    .form-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.5rem;
    }   
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    .nav-item {
        padding: 1.25rem 2rem;
        border-top: 1px solid #f1f5f9;
        width: 100%;
    }

    .menu-toggle:checked ~ .nav-menu {
        max-height: 300px;
       
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
         
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Responsividad extra para que las tarjetas se apilen en pantallas muy chicas */
@media (max-width: 550px) {
     .main-content {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.5rem;
    }
    .info-card {
        flex-direction: column; /* La imagen se va arriba del texto */
    }
    
    .card-image-wrapper {
        width: 100%;
        height: auto;
    }
}
.parallax {
  /* The image used */
  background-image: url("images/20474.jpg");
 font-family:bitter;
 font-size:1em;
color:rgb(255,255,255);
text-align:center;
  /* Set a specific height */
  min-height: 400px; 

  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
h3{
 font-family:bitter;
 color: var(--primary-color);
}
h1{
 font-family:bitter;
 color: var(--primary-color);
}
.ptext{
 color: var(--primary-color);

}
.etiquetas {
				
	border: none;
	text-align: center;
	padding: 10px;
	float: left;
	background-color: white;
}
.etiqueta:hover {
	box-shadow: 0px 8px 8px 0px rgba(0,0,255,0.2);
	border:1px solid rgb(210,210,210);
			
	background-color:white;
}

.flex-container {
  padding: 20px;
  background-color:rgb(255,255,255);
  display: flex;
  flex-direction: row;
}


.divflex{
  width: 100%;

  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.9em;
  text-align: left;
  color: var(--text-muted);

  border-radius: 10px;
 
}
.divflex h3{

    color: var(--text-main);
}
.flex-item {
  padding: 10px;
  font-size: 1em;
  text-align: center;
  height:100%;
}

@media (max-width: 800px) {
  .flex-container {
    flex-direction: column;
  }

}
