/* Variables Globales */
:root {
    --primary-blue: #264653;
    --primary-dark: #003049;
    --text-color: #333;
    --text-light: #666;
    --background-light: #f5f5f5;
    --warning-color: #ff9800;
    --warning-bg: #fff4e5;
    --link-color: #0066cc;
    --border-color: #e0e0e0;
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", serif;
    line-height: 1.4;
    color: var(--text-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

li {
	margin-bottom:6px;
}

/* Tipografía */
.poppins-thin { font-weight: 100; }
.poppins-extralight { font-weight: 200; }
.poppins-light { font-weight: 300; }
.poppins-regular { font-weight: 400; }
.poppins-medium { font-weight: 500; }
.poppins-semibold { font-weight: 600; }
.poppins-bold { font-weight: 700; }
.poppins-extrabold { font-weight: 800; }
.poppins-black { font-weight: 900; }

[class*="poppins-"] {
    font-family: "Poppins", serif;
    font-style: normal;
}

[class$="-italic"] {
    font-style: italic;
}

/* Encabezados */
h1, h2, h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

h2 {
    color: var(--primary-dark);
}

/* Layout Secciones Principales */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

ul {
    margin-left: 40px;
}

.main-product,
.main-procedimiento,
.main-recomendaciones {
    background-color: var(--background-light);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

/* Elementos Comunes */
.product-image {
    width: 100%;
    max-width: 800px;
    margin: 1rem auto;
    display: block;
}

.tech-details {
    background-color: white;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.destacado {
    font-weight: bold;
    color: #c1121f;
}

/* Grid de Productos */
.product-list,
.procedure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* Tarjetas de Producto */
.product-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.product-icon {
    font-size: 2em;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.product-item:hover .product-icon {
    transform: scale(1.1);
}

.product-item h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    width: 100%;
}

.product-item p {
    color: var(--text-light);
    flex-grow: 1;
    margin: 0;
    line-height: 1.5;
}

/* Procedimiento */
.procedure-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.procedure-item::after {
    content: 'Click para ver detalles';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 48, 73, 0.9);
    color: white;
    padding: 0.5rem;
    transform: translateY(100%);
    transition: transform 0.2s ease;
}

.procedure-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.procedure-item:hover::after {
    transform: translateY(0);
}

.procedure-icon {
    font-size: 2.5em;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.preview-text {
    color: var(--text-light);
    margin: 1rem 0;
    font-size: 0.9em;
}

/* Modales */
.modal,
.tech-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content,
.tech-modal-content {
    background-color: white;
    margin: 5% auto; 
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-button {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.close-button:hover {
    color: #666;
}

.modal-body {
    margin-top: 1rem;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-content h3 {
    margin-top: 22px;
}

/* Advertencias */
.warnings {
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--warning-bg);
    border-radius: 8px;
    border-left: 5px solid var(--warning-color);
}

.warnings h2 {
    color: #e65100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warnings-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.warning-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
    .product-list,
    .procedure-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .product-item,
    .procedure-item,
    .warnings,
    .warning-item {
        padding: 1rem;
    }
}

/* Actualizar en estilos.css */
.legal-button {
    background-color: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    font-family: "Poppins", serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legal-button:hover {
    background-color: #004366;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.legal-button:active {
    transform: translateY(0);
}

.contact-info a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: #004c99;
}