/*
Theme Name: Atom Theme
Author: Preuniversitario Atom
Description: Tema personalizado para el Preuniversitario Atom.
Version: 1.0.0
Text Domain: atom-theme
*/

/* Tailwind Reset */

*,
::after,
::before,
::backdrop,
::file-selector-button {
  box-sizing: border-box; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 2 */
  border: 0 solid; /* 3 */
}

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  tab-size: 4; /* 3 */
  font-family: --theme(
    --default-font-family,
    'Montserrat',
    ui-sans-serif,
    system-ui,
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji'
  ); /* 4 */
  font-feature-settings: --theme(--default-font-feature-settings, normal); /* 5 */
  font-variation-settings: --theme(--default-font-variation-settings, normal); /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  -webkit-text-decoration: inherit;
  text-decoration: inherit;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp,
pre {
  font-family: --theme(
    --default-mono-font-family,
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    'Liberation Mono',
    'Courier New',
    monospace
  ); /* 1 */
  font-feature-settings: --theme(--default-mono-font-feature-settings, normal); /* 2 */
  font-variation-settings: --theme(--default-mono-font-variation-settings, normal); /* 3 */
  font-size: 1em; /* 4 */
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

:-moz-focusring {
  outline: auto;
}

progress {
  vertical-align: baseline;
}

summary {
  display: list-item;
}

ol,
ul,
menu {
  list-style: none;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

img,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
optgroup,
textarea,
::file-selector-button {
  font: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  border-radius: 0; /* 2 */
  background-color: transparent; /* 3 */
  opacity: 1; /* 4 */
}

:where(select:is([multiple], [size])) optgroup {
  font-weight: bolder;
}

:where(select:is([multiple], [size])) optgroup option {
  padding-inline-start: 20px;
}

::file-selector-button {
  margin-inline-end: 4px;
}

::placeholder {
  opacity: 1;
}

@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
  (contain-intrinsic-size: 1px) /* Safari 17+ */ {
  ::placeholder {
    color: color-mix(in oklab, currentcolor 50%, transparent);
  }
}

textarea {
  resize: vertical;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-date-and-time-value {
  min-height: 1lh; /* 1 */
  text-align: inherit; /* 2 */
}

::-webkit-datetime-edit {
  display: inline-flex;
}

::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

::-webkit-datetime-edit,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-millisecond-field,
::-webkit-datetime-edit-meridiem-field {
  padding-block: 0;
}

::-webkit-calendar-picker-indicator {
  line-height: 1;
}

:-moz-ui-invalid {
  box-shadow: none;
}

button,
input:where([type='button'], [type='reset'], [type='submit']),
::file-selector-button {
  appearance: button;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

[hidden]:where(:not([hidden='until-found'])) {
  display: none !important;
}

/* THEME */

:root {
  /* Color Palette */
  --color-bg: #ffffff;
  --color-heading: #0f172a;
  --color-heading-hover: #1e293b;
  --color-body: #1e293b; /* A slightly softer version of your dark blue for long text */
  --color-muted: #a3a7b3;
  --color-primary: #2563eb;
  --color-primary-hover: #1e3a8a;

  /* Typography */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.25rem;     /* 20px */
  --font-size-xl: 1.5rem;      /* 24px */
  --font-size-2xl: 2rem;       /* 32px */
  --font-size-3xl: 2.5rem;     /* 40px */
  --font-size-4xl: 3rem;       /* 48px */
  
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing */
  --space-sm: 0.5rem;          /* 8px */
  --space-md: 1rem;            /* 16px */
  --space-lg: 1.5rem;          /* 24px */
  --space-xl: 2rem;            /* 32px */
  --space-2xl: 3rem;            /* 48px */
  --space-3xl: 4rem;            /* 64px */

  /* Radius (Usually okay in px, but rem is more consistent) */
  --radius-md: 0.5rem;         /* 8px */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-none: none;
  
  /* Navbar */
  --navbar-height: 4rem;       /* 64px */
  --navbar-padding-x: var(--space-xl); /* 32px */
  --navbar-padding-y: var(--space-md); /* 16px */
  --navbar-total-height: calc(var(--navbar-height) + (var(--navbar-padding-y) * 2));
  --navbar-bg: var(--color-bg);
  --navbar-link-hover: var(--color-primary);
  --font-family: 'Montserrat', sans-serif;
}

* {
  font-family: var(--font-family);
}

/* Font Sizes */
.text-base { font-size: var(--font-size-base); } /* textos */
.text-lg   { font-size: var(--font-size-lg); } /* textos grandes */
.text-xl   { font-size: var(--font-size-xl); } /* subtitulos */
.text-2xl  { font-size: var(--font-size-2xl); } /* titulos */
.text-3xl  { font-size: var(--font-size-3xl); } /* titulos grandes */

/* Font Weights */
.font-normal    { font-weight: var(--font-normal); } /* normal */
.font-medium    { font-weight: var(--font-medium); }
.font-semibold  { font-weight: var(--font-semibold); }
.font-bold      { font-weight: var(--font-bold); }

/* Colors */
.text-heading   { color: var(--color-heading); }
.text-body      { color: var(--color-body); }
.text-muted     { color: var(--color-muted); }
.text-primary   { color: var(--color-primary); }
.text-white     { color: #ffffff; }

/* Shadows */
.shadow-sm      { box-shadow: var(--shadow-sm); }
.shadow-md      { box-shadow: var(--shadow-md); }
.shadow-lg      { box-shadow: var(--shadow-lg); }
.shadow-xl      { box-shadow: var(--shadow-xl); }
.shadow-2xl     { box-shadow: var(--shadow-2xl); }
.shadow-none    { box-shadow: var(--shadow-none); }

/* Buttons */
.btn {
  display: inline-block;
  color: #ffffff;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-medium);
  cursor: pointer;
}

.btn-primary {
  color: #ffffff;
  background-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* ========================
   Layout Utilities
   ======================== */

/* Standard section padding */
.section {
  padding: var(--space-3xl) var(--navbar-padding-x);
}

/* Alternate background for visual rhythm */
.section-alt {
  background-color: #f8fafc;
}

/* Dark section (--color-heading bg) */
.section-dark {
  background-color: var(--color-heading);
  color: #ffffff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.75);
}

/* Primary color section */
.section-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.section-primary h2,
.section-primary h3,
.section-primary h4 {
  color: #ffffff;
}

.section-primary p {
  color: rgba(255, 255, 255, 0.85);
}

/* Centered max-width wrapper — use inside every .section */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Centered section intro text */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-3xl);
}

.section-header > * + * {
  margin-top: var(--space-md);
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) var(--space-md);
  }
}