/*
Theme Name: Reveex
Theme URI: https://papayadigital.cl/
Author: Papaya Digital
Author URI: https://papayadigital.cl/
Description: Tema WordPress personalizado, liviano y optimizado para el sitio web de Laboratorios Reveex, desarrollado para trabajar con Elementor y Elementor Pro.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reveex
Tags: custom-logo, elementor, full-width-template, translation-ready
*/

/* ==========================================================================
   1. Reset mínimo
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	line-height: 1.15;
}

body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #333;
	background-color: #fff;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. Estilos base neutrales
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	margin-bottom: 0.5em;
	font-weight: 600;
	line-height: 1.3;
}

p {
	margin-top: 0;
	margin-bottom: 1em;
}

a {
	color: inherit;
	text-decoration: underline;
}

a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
	border: 0;
}

figure {
	margin: 0;
}

ul, ol {
	padding-left: 1.5em;
}

table {
	border-collapse: collapse;
	width: 100%;
}

/* ==========================================================================
   3. Compatibilidad WordPress
   ========================================================================== */

/* Alineaciones nativas */
.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1em;
}

.alignwide {
	width: 100%;
}

.alignfull {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

/* Captions */
.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 0.875em;
	opacity: 0.7;
	margin-top: 0.5em;
}

/* Galerías */
.gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.gallery-item {
	flex: 1 1 auto;
}

.gallery-item img {
	width: 100%;
	height: auto;
}

/* Imágenes responsivas */
.wp-block-image img,
.wp-block-image figcaption {
	max-width: 100%;
}

/* Sticky posts */
.sticky {
	display: block;
}

/* Screen reader text */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: static;
	width: auto;
	height: auto;
	padding: 0.5em 1em;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background-color: #f1f1f1;
	color: #21759b;
	font-size: 0.875rem;
	font-weight: 600;
	z-index: 100000;
}

/* Bypostauthor */
.bypostauthor {
	display: block;
}

/* ==========================================================================
   4. Accesibilidad
   ========================================================================== */

/* Skip link */
.reveex-skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	z-index: 999999;
	padding: 0.75em 1.5em;
	background-color: #333;
	color: #fff;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
}

.reveex-skip-link:focus {
	top: 0;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   5. Prevención de desbordamientos
   ========================================================================== */

body {
	overflow-x: hidden;
}

embed,
iframe,
object,
video {
	max-width: 100%;
}

pre {
	max-width: 100%;
	overflow-x: auto;
}

/* ==========================================================================
   6. WordPress embeds responsivos
   ========================================================================== */

.wp-block-embed__wrapper {
	position: relative;
}

.wp-has-aspect-ratio .wp-block-embed__wrapper::before {
	content: "";
	display: block;
	padding-top: 56.25%;
}

.wp-has-aspect-ratio .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
