@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700');
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');

main_tabs {
	min-width: 320px;
	max-width: 800px;
	padding: 20px 0px;
	margin: 0 auto;
	background: #fff;
}

section_tabs {
	display: none;
	padding: 10px 0px;
	border-top: 1px solid #ddd;
}

label:before {
	font-family: fontawesome;
	font-weight: normal;
	margin-right: 3px;
}

/* https://fontawesome.com/icons?d=gallery */
label[for*='1']:before {
	content: '\f05a';
}

label[for*='2']:before {
	content: '\f2bb';
}

label[for*='3']:before {
	content: '\f02d';
}

label[for*='4']:before {
	content: '\f085';
}

label[for*='5']:before {
	content: '\f212';
}

label[for*='6']:before {
	content: '\f072';
}

label[for*='7']:before {
	content: '\f19d';
}

label[for*='8']:before {
	content: '\f0c5';
}

label[for*='9']:before {
	content: '\f0dd';
}

label:hover {
	color: #888;
	cursor: pointer;
}

input:checked + label {
	color: #555;
	border: 1px solid #ddd;
	border-top: 2px solid orange;
	border-bottom: 1px solid #fff;
}

#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3,
#tab4:checked ~ #content4,
#tab5:checked ~ #content5,
#tab6:checked ~ #content6,
#tab7:checked ~ #content7, 
#tab8:checked ~ #content8, 
#tab9:checked ~ #content9 {
	display: block;
}

@media screen and (max-width: 650px) {
	label {
	/*font-size: 0;*/
	}

	label:before {
	margin: 0;
	font-size: 18px;
	}
}
@media screen and (max-width: 400px) {
	label {
	padding: 15px;
	}
}



/* NUEVOS TABS */
/* ************************************************************************* */


/* --- Contenedor Principal del Formulario --- */
.form-title {
    text-align: center;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.form-subtitle {
    text-align: center;
    color: #3498db;
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 400;
    font-size: 1.1rem;
}

/* --- Sistema de Pestañas (Tabs) --- */
.tabs-wrapper {
    width: 100%;
}

/* Ocultamos los inputs de radio, son solo para control */
.tabs-wrapper input[type="radio"] {
    /*display: none;*/
}

.tab-headers {
    display: flex;
    justify-content: space-between;
    margin-bottom: -1px; /* Solapa el borde inferior con el del contenido */
}

.tab-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 8px 8px 0 0;
    flex-grow: 1;
    text-align: center;
    font-weight: 700;
    color: #555;
    transition: all 0.3s ease;
    border-bottom: 1px solid #ccc;
}

.tab-header:hover {
    background-color: #e9ecef;
}

/* Ocultamos todo el contenido de las pestañas por defecto */
.tab-content {
    display: none;
    padding: 2rem;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* --- Lógica de visualización de pestañas --- */
/* Cuando el input #tab1 está seleccionado, muestra su contenido adyacente (#content1) */
#tab1:checked ~ .tab-content-container #content1,
#tab2:checked ~ .tab-content-container #content2,
#tab3:checked ~ .tab-content-container #content3,
#tab4:checked ~ .tab-content-container #content4 {
    display: block;
}

/* Estilo para la pestaña activa */
#tab1:checked ~ .tab-headers label[for="tab1"],
#tab2:checked ~ .tab-headers label[for="tab2"],
#tab3:checked ~ .tab-headers label[for="tab3"],
#tab4:checked ~ .tab-headers label[for="tab4"] {
    background-color: #ffffff;
    color: #3498db;
    border-bottom: 1px solid #ffffff;
    border-left-color: #3498db;
    border-top-color: #3498db;
    border-right-color: #3498db;
}



