/* Estilo Pin-Up Retro Stylesheet */

/* CSS Variables for theming */
:root[data-theme="estilo"] {
  /* Color system */
  --er-brand: #7C3AED;
  --er-brand-2: #FF8FAB;
  --er-accent: #F4D06F;
  --er-bg: #FFFDF8;
  --er-text: #0F1020;
  --er-text-secondary: #4A4B5C;
  --er-text-muted: #6B7280;
  --er-border: #E5E7EB;
  --er-border-light: #F3F4F6;
  
  /* Semantic colors */
  --er-success: #059669;
  --er-warning: #D97706;
  --er-error: #DC2626;
  
  /* Layout */
  --er-radius: 16px;
  --er-radius-sm: 8px;
  --er-radius-lg: 24px;
  --er-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --er-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Spacing system */
  --er-space-xs: 8px;
  --er-space-sm: 12px;
  --er-space-md: 16px;
  --er-space-lg: 24px;
  --er-space-xl: 32px;
  --er-space-2xl: 48px;
  --er-space-3xl: 64px;
  
  /* Typography */
  --er-font-family: "Source Sans 3", "PT Sans", Arial, sans-serif;
  --er-font-size-xs: 0.75rem;
  --er-font-size-sm: 0.875rem;
  --er-font-size-base: 1rem;
  --er-font-size-lg: 1.125rem;
  --er-font-size-xl: 1.25rem;
  --er-font-size-2xl: 1.5rem;
  --er-font-size-3xl: 1.875rem;
  --er-font-size-4xl: 2.25rem;
  --er-font-size-5xl: 3rem;
  
  --er-line-height-tight: 1.2;
  --er-line-height-normal: 1.5;
  --er-line-height-relaxed: 1.75;
  
  --er-letter-spacing: 0.01em;
  --er-letter-spacing-wide: 0.025em;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--er-font-family);
  font-size: var(--er-font-size-base);
  line-height: var(--er-line-height-normal);
  color: var(--er-text);
  background-color: var(--er-bg);
  letter-spacing: var(--er-letter-spacing);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(124, 58, 237, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 143, 171, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(244, 208, 111, 0.01) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--er-line-height-tight);
  color: var(--er-text);
  margin-bottom: var(--er-space-md);
  letter-spacing: var(--er-letter-spacing-wide);
}

h1 { font-size: var(--er-font-size-5xl); }
h2 { font-size: var(--er-font-size-4xl); }
h3 { font-size: var(--er-font-size-3xl); }
h4 { font-size: var(--er-font-size-2xl); }
h5 { font-size: var(--er-font-size-xl); }
h6 { font-size: var(--er-font-size-lg); }

p {
  margin-bottom: var(--er-space-md);
  color: var(--er-text-secondary);
}

a {
  color: var(--er-brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--er-brand-2);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--er-brand);
  outline-offset: 2px;
  border-radius: var(--er-radius-sm);
}

/* Lists */
ul, ol {
  margin-bottom: var(--er-space-md);
  padding-left: var(--er-space-lg);
}

li {
  margin-bottom: var(--er-space-xs);
  color: var(--er-text-secondary);
}

/* Skip link */
.er-estilo-skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--er-brand);
  color: white;
  padding: 8px;
  border-radius: var(--er-radius-sm);
  text-decoration: none;
  z-index: 1000;
  transition: top 0.2s ease;
}

.er-estilo-skip-link:focus {
  top: 6px;
  outline: 2px solid white;
}

/* Container */
.er-estilo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--er-space-md);
}

/* Header */
.er-estilo-header {
  background: var(--er-bg);
  border-bottom: 1px solid var(--er-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.er-estilo-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--er-space-md) 0;
}

.er-estilo-logo-section {
  display: flex;
  flex-direction: column;
  gap: var(--er-space-xs);
}

.er-estilo-logo {
  font-size: var(--er-font-size-2xl);
  font-weight: 700;
  color: var(--er-brand);
  text-decoration: none;
  letter-spacing: var(--er-letter-spacing-wide);
}

.er-estilo-badges {
  display: flex;
  gap: var(--er-space-xs);
  flex-wrap: wrap;
}

.er-estilo-badge {
  font-size: var(--er-font-size-xs);
  padding: 2px var(--er-space-xs);
  border-radius: var(--er-radius-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.er-estilo-badge-editorial {
  background: var(--er-brand);
  color: white;
}

.er-estilo-badge-location {
  background: var(--er-accent);
  color: var(--er-text);
}

.er-estilo-badge-age {
  background: var(--er-error);
  color: white;
}

/* Navigation */
.er-estilo-nav {
  position: relative;
}

.er-estilo-mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--er-space-sm);
  border-radius: var(--er-radius-sm);
}

.er-estilo-mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--er-text);
  transition: all 0.3s ease;
}

.er-estilo-nav-list {
  display: flex;
  list-style: none;
  gap: var(--er-space-lg);
  margin: 0;
  padding: 0;
}

.er-estilo-nav-link {
  padding: var(--er-space-sm) var(--er-space-md);
  border-radius: var(--er-radius-sm);
  transition: all 0.2s ease;
  color: var(--er-text-secondary);
  font-weight: 500;
}

.er-estilo-nav-link:hover {
  background: var(--er-brand);
  color: white;
  text-decoration: none;
}

.er-estilo-nav-link-active {
  background: var(--er-brand);
  color: white;
}

/* Mobile navigation */
@media (max-width: 768px) {
  .er-estilo-mobile-menu-btn {
    display: flex;
  }
  
  .er-estilo-nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--er-bg);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius);
    box-shadow: var(--er-shadow-lg);
    flex-direction: column;
    gap: 0;
    min-width: 200px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .er-estilo-nav-list.er-estilo-nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .er-estilo-nav-link {
    display: block;
    padding: var(--er-space-md);
    border-radius: 0;
    border-bottom: 1px solid var(--er-border-light);
  }
  
  .er-estilo-nav-link:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--er-radius) var(--er-radius);
  }
  
  .er-estilo-nav-link:first-child {
    border-radius: var(--er-radius) var(--er-radius) 0 0;
  }
}

/* Breadcrumb */
.er-estilo-breadcrumb {
  background: var(--er-border-light);
  padding: var(--er-space-sm) 0;
}

.er-estilo-breadcrumb ol {
  display: flex;
  list-style: none;
  gap: var(--er-space-sm);
  margin: 0;
  padding: 0;
  font-size: var(--er-font-size-sm);
}

.er-estilo-breadcrumb ol li::after {
  content: '→';
  margin-left: var(--er-space-sm);
  color: var(--er-text-muted);
}

.er-estilo-breadcrumb ol li:last-child::after {
  display: none;
}

.er-estilo-breadcrumb ol li[aria-current="page"] {
  color: var(--er-text-muted);
}

/* Hero section */
.er-estilo-hero {
  padding: var(--er-space-3xl) 0;
  background: linear-gradient(135deg, var(--er-bg) 0%, rgba(244, 208, 111, 0.1) 100%);
}

.er-estilo-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--er-space-3xl);
  align-items: center;
}

.er-estilo-hero-title {
  font-size: var(--er-font-size-5xl);
  font-weight: 700;
  color: var(--er-text);
  margin-bottom: var(--er-space-lg);
  line-height: var(--er-line-height-tight);
}

.er-estilo-hero-subtitle {
  font-size: var(--er-font-size-xl);
  color: var(--er-text-secondary);
  margin-bottom: var(--er-space-md);
  line-height: var(--er-line-height-relaxed);
}

.er-estilo-hero-description {
  font-size: var(--er-font-size-lg);
  color: var(--er-text-muted);
  margin-bottom: var(--er-space-xl);
}

.er-estilo-hero-actions {
  display: flex;
  gap: var(--er-space-md);
  margin-bottom: var(--er-space-lg);
  flex-wrap: wrap;
}

.er-estilo-hero-badges {
  display: flex;
  gap: var(--er-space-sm);
  flex-wrap: wrap;
}

.er-estilo-info-badge {
  font-size: var(--er-font-size-sm);
  padding: var(--er-space-xs) var(--er-space-sm);
  background: var(--er-border-light);
  color: var(--er-text-muted);
  border-radius: var(--er-radius-sm);
  font-weight: 500;
}

.er-estilo-hero-visual {
  position: relative;
  height: 400px;
}

.er-estilo-hero-pattern {
  width: 100%;
  height: 100%;
  background-image: url('../images/01.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  border-radius: var(--er-radius-lg);
}

/* Buttons */
.er-estilo-btn {
  display: inline-block;
  padding: var(--er-space-md) var(--er-space-lg);
  border-radius: var(--er-radius);
  font-weight: 600;
  font-size: var(--er-font-size-base);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: var(--er-letter-spacing);
  margin-top: 0.5rem;
}

.er-estilo-btn-primary {
  background: var(--er-brand);
  color: white;
  border-color: var(--er-brand);
}

.er-estilo-btn-primary:hover {
  background: var(--er-brand-2);
  border-color: var(--er-brand-2);
  text-decoration: none;
  color: white;
}

.er-estilo-btn-secondary {
  background: var(--er-brand-2);
  color: white;
  border-color: var(--er-brand-2);
}

.er-estilo-btn-secondary:hover {
  background: var(--er-brand);
  border-color: var(--er-brand);
  text-decoration: none;
  color: white;
}

.er-estilo-btn-outline {
  background: transparent;
  color: var(--er-brand);
  border-color: var(--er-brand);
}

.er-estilo-btn-outline:hover {
  background: var(--er-brand);
  color: white;
  text-decoration: none;
}

/* Sections */
section {
  padding: var(--er-space-3xl) 0;
}

.er-estilo-section-title {
  text-align: center;
  margin-bottom: var(--er-space-2xl);
  position: relative;
}

.er-estilo-section-title::after {
  content: '';
  position: absolute;
  bottom: -var(--er-space-md);
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--er-brand), var(--er-brand-2));
  border-radius: var(--er-radius-sm);
}

.er-estilo-section-cta {
  text-align: center;
  margin-top: var(--er-space-xl);
}

/* Page layouts */
.er-estilo-page-header {
  padding: var(--er-space-3xl) 0 var(--er-space-xl) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--er-bg) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.er-estilo-page-subtitle {
  font-size: var(--er-font-size-xl);
  color: var(--er-text-muted);
  font-weight: 400;
  margin-bottom: 0;
}

.er-estilo-last-updated {
  font-size: var(--er-font-size-sm);
  color: var(--er-text-muted);
  margin-top: var(--er-space-sm);
}

/* Content layouts */
.er-estilo-content {
  padding: var(--er-space-3xl) 0;
}

.er-estilo-content-layout,
.er-estilo-legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.er-estilo-main-content {
  line-height: var(--er-line-height-relaxed);
}

/* History section */
.er-estilo-history {
  background: rgba(244, 208, 111, 0.05);
}

.er-estilo-history-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: var(--er-line-height-relaxed);
}

/* Timeline/Table */
.er-estilo-timeline {
  background: var(--er-bg);
}

.er-estilo-table-wrapper {
  overflow-x: auto;
  margin: var(--er-space-xl) 0;
}

.er-estilo-epochs-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--er-radius);
  overflow: hidden;
  box-shadow: var(--er-shadow);
}

.er-estilo-epochs-table th,
.er-estilo-epochs-table td {
  padding: var(--er-space-md);
  text-align: left;
  border-bottom: 1px solid var(--er-border-light);
}

.er-estilo-epochs-table th {
  background: var(--er-brand);
  color: white;
  font-weight: 600;
}

.er-estilo-epochs-table tbody tr:nth-child(even) {
  background: rgba(244, 208, 111, 0.05);
}

.er-estilo-epochs-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.05);
}

/* Gallery */
.er-estilo-gallery-preview,
.er-estilo-gallery-full {
  background: rgba(255, 143, 171, 0.05);
}

.er-estilo-gallery-grid,
.er-estilo-gallery-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--er-space-xl);
  margin: var(--er-space-xl) 0;
}

.er-estilo-gallery-card,
.er-estilo-gallery-item {
  background: white;
  border-radius: var(--er-radius);
  box-shadow: var(--er-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.er-estilo-gallery-card:hover,
.er-estilo-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--er-shadow-lg);
}

.er-estilo-gallery-placeholder {
  width: 100%;
  height: 200px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.er-estilo-gallery-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.8;
}

.er-estilo-pattern-1::before { background-image: url(../images/02.webp);}
.er-estilo-pattern-2::before { background-image: url(../images/03.webp);}
.er-estilo-pattern-3::before { background-image: url(../images/04.webp);}
.er-estilo-pattern-4::before { background-image: url(../images/05.webp);}
.er-estilo-pattern-5::before { background-image: url(../images/06.webp);}
.er-estilo-pattern-6::before { background-image: url(../images/07.webp);}

.er-estilo-pattern-classic { background: linear-gradient(135deg, #7C3AED, #9D4EDD); }
.er-estilo-pattern-colors { background: linear-gradient(135deg, #FF8FAB, #FFB3C1); }
.er-estilo-pattern-typography { background: linear-gradient(135deg, #F4D06F, #F9E784); }
.er-estilo-pattern-fashion { background: linear-gradient(135deg, #7C3AED, #FF8FAB); }
.er-estilo-pattern-technique { background: linear-gradient(135deg, #FF8FAB, #F4D06F); }
.er-estilo-pattern-influence { background: linear-gradient(135deg, #F4D06F, #7C3AED); }
.er-estilo-pattern-poses { background: linear-gradient(135deg, #9D4EDD, #FF8FAB); }
.er-estilo-pattern-makeup { background: linear-gradient(135deg, #FFB3C1, #F4D06F); }
.er-estilo-pattern-advertising { background: linear-gradient(135deg, #F9E784, #9D4EDD); }
.er-estilo-pattern-illustration { background: linear-gradient(135deg, #7C3AED, #F4D06F); }

.er-estilo-gallery-caption,
.er-estilo-gallery-info {
  padding: var(--er-space-lg);
}

.er-estilo-gallery-caption h4,
.er-estilo-gallery-info h3 {
  margin-bottom: var(--er-space-sm);
  color: var(--er-text);
}

.er-estilo-gallery-meta {
  display: flex;
  gap: var(--er-space-xs);
  margin-top: var(--er-space-md);
}

.er-estilo-tag {
  font-size: var(--er-font-size-xs);
  padding: 2px var(--er-space-xs);
  background: var(--er-border-light);
  color: var(--er-text-muted);
  border-radius: var(--er-radius-sm);
  font-weight: 500;
}

/* Icons section */
.er-estilo-icons {
  background: rgba(124, 58, 237, 0.05);
}

.er-estilo-icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--er-space-xl);
  margin: var(--er-space-xl) 0;
}

.er-estilo-icon-card {
  background: white;
  padding: var(--er-space-xl);
  border-radius: var(--er-radius);
  box-shadow: var(--er-shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.er-estilo-icon-card:hover {
  transform: translateY(-4px);
}

.er-estilo-icon-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--er-brand), var(--er-brand-2));
  margin: 0 auto var(--er-space-lg) auto;
  position: relative;
}

.er-estilo-icon-placeholder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  opacity: 0.3;
}

.er-estilo-icon-content h4 {
  color: var(--er-brand);
  margin-bottom: var(--er-space-sm);
}

/* Wardrobe section */
.er-estilo-wardrobe {
  background: var(--er-bg);
}

.er-estilo-wardrobe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--er-space-xl);
  margin: var(--er-space-xl) 0;
}

.er-estilo-wardrobe-category {
  background: white;
  padding: var(--er-space-xl);
  border-radius: var(--er-radius);
  box-shadow: var(--er-shadow);
}

.er-estilo-wardrobe-category h4 {
  color: var(--er-brand);
  margin-bottom: var(--er-space-md);
  border-bottom: 2px solid var(--er-border-light);
  padding-bottom: var(--er-space-sm);
}

.er-estilo-wardrobe-category ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.er-estilo-wardrobe-category li {
  padding: var(--er-space-xs) 0;
  border-bottom: 1px solid var(--er-border-light);
  color: var(--er-text-secondary);
  position: relative;
  margin-bottom: 0;
}

.er-estilo-wardrobe-category li:last-child {
  border-bottom: none;
}

.er-estilo-wardrobe-category li::before {
  content: '✓';
  color: var(--er-brand);
  font-weight: bold;
  margin-right: var(--er-space-sm);
}

/* Culture section */
.er-estilo-culture {
  background: rgba(255, 143, 171, 0.05);
}

.er-estilo-culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--er-space-xl);
  margin: var(--er-space-xl) 0;
}

.er-estilo-culture-article {
  background: white;
  padding: var(--er-space-xl);
  border-radius: var(--er-radius);
  box-shadow: var(--er-shadow);
  border-left: 4px solid var(--er-brand);
}

.er-estilo-culture-article h4 {
  color: var(--er-brand);
  margin-bottom: var(--er-space-md);
}

/* Resources section */
.er-estilo-resources {
  background: rgba(244, 208, 111, 0.05);
}

.er-estilo-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--er-space-xl);
  margin: var(--er-space-xl) 0;
}

.er-estilo-resource-category {
  background: white;
  padding: var(--er-space-xl);
  border-radius: var(--er-radius);
  box-shadow: var(--er-shadow);
}

.er-estilo-resource-category h4 {
  color: var(--er-brand);
  margin-bottom: var(--er-space-md);
}

.er-estilo-resource-category ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.er-estilo-resource-category li {
  margin-bottom: var(--er-space-sm);
}

/* FAQ */
.er-estilo-faq-preview {
  background: var(--er-bg);
}

.er-estilo-faq-list,
.er-estilo-faq-full {
  max-width: 800px;
  margin: var(--er-space-xl) auto 0 auto;
}

.er-estilo-faq-item {
  background: white;
  border-radius: var(--er-radius);
  box-shadow: var(--er-shadow);
  margin-bottom: var(--er-space-md);
  overflow: hidden;
}

.er-estilo-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--er-space-lg);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--er-font-size-lg);
  font-weight: 600;
  color: var(--er-text);
  transition: background-color 0.2s ease;
}

.er-estilo-faq-question:hover {
  background: rgba(124, 58, 237, 0.05);
}

.er-estilo-faq-icon {
  width: 24px;
  height: 24px;
  border: 2px solid var(--er-brand);
  border-radius: 50%;
  position: relative;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.er-estilo-faq-icon::before,
.er-estilo-faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--er-brand);
  transition: all 0.3s ease;
}

.er-estilo-faq-icon::before {
  width: 8px;
  height: 2px;
}

.er-estilo-faq-icon::after {
  width: 2px;
  height: 8px;
}

.er-estilo-faq-question[aria-expanded="true"] .er-estilo-faq-icon {
  transform: rotate(45deg);
}

.er-estilo-faq-answer {
  padding: 0 var(--er-space-lg) var(--er-space-lg) var(--er-space-lg);
  display: none;
  border-top: 1px solid var(--er-border-light);
  background: rgba(244, 208, 111, 0.02);
}

.er-estilo-faq-answer.er-estilo-faq-open {
  display: block;
}

.er-estilo-faq-answer p {
  margin-bottom: 0;
  line-height: var(--er-line-height-relaxed);
}

/* Newsletter */
.er-estilo-newsletter {
  background: linear-gradient(135deg, var(--er-brand), var(--er-brand-2));
  color: white;
  text-align: center;
}

.er-estilo-newsletter-title {
  color: white;
  margin-bottom: var(--er-space-md);
}

.er-estilo-newsletter-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--er-font-size-lg);
  margin-bottom: var(--er-space-xl);
}

.er-estilo-newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.er-estilo-form-group {
  gap: var(--er-space-sm);
  margin-bottom: var(--er-space-md);
}

.er-estilo-form-checkbox {
  text-align: left;
}

.er-estilo-form-checkbox input {
  margin-right: var(--er-space-sm);
}

.er-estilo-form-checkbox label {
  font-size: var(--er-font-size-sm);
}

.er-estilo-form-checkbox a {
  text-decoration: underline;
}

/* Contact teaser */
.er-estilo-contact-teaser {
  background: rgba(124, 58, 237, 0.05);
  text-align: center;
}

.er-estilo-contact-content h3 {
  margin-bottom: var(--er-space-md);
}

.er-estilo-contact-content p {
  font-size: var(--er-font-size-lg);
  margin-bottom: var(--er-space-xl);
}

/* Forms */
.er-estilo-input {
  width: 100%;
  padding: var(--er-space-md);
  border: 2px solid var(--er-border);
  border-radius: var(--er-radius-sm);
  font-size: var(--er-font-size-base);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
}

.er-estilo-input:focus {
  outline: none;
  border-color: var(--er-brand);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.er-estilo-input:invalid {
  border-color: var(--er-error);
}

label {
  display: block;
  margin-bottom: var(--er-space-xs);
  font-weight: 600;
  color: var(--er-text);
}

/* Contact page specific */
.er-estilo-contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--er-space-3xl);
  margin: var(--er-space-xl) 0;
}

.er-estilo-contact-form {
  background: white;
  padding: var(--er-space-xl);
  border-radius: var(--er-radius);
  box-shadow: var(--er-shadow);
}

.er-estilo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--er-space-md);
}

.er-estilo-form-group {
  margin-bottom: var(--er-space-lg);
}

.er-estilo-form-checkboxes {
  margin: var(--er-space-xl) 0;
}

.er-estilo-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--er-space-sm);
  margin-bottom: var(--er-space-md);
}

.er-estilo-form-checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
  margin-top: 2px;
}

.er-estilo-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.er-estilo-contact-info {
  background: rgba(124, 58, 237, 0.05);
  padding: var(--er-space-xl);
  border-radius: var(--er-radius);
  height: fit-content;
}

.er-estilo-contact-block {
  margin-bottom: var(--er-space-xl);
  padding-bottom: var(--er-space-lg);
  border-bottom: 1px solid var(--er-border-light);
}

.er-estilo-contact-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.er-estilo-contact-block h3 {
  color: var(--er-brand);
  margin-bottom: var(--er-space-sm);
  font-size: var(--er-font-size-lg);
}

/* Stories layout */
.er-estilo-stories-layout {
  max-width: 800px;
  margin: 0 auto;
}

.er-estilo-story {
  background: white;
  padding: var(--er-space-xl);
  border-radius: var(--er-radius);
  box-shadow: var(--er-shadow);
  margin-bottom: var(--er-space-xl);
}

.er-estilo-story-header {
  margin-bottom: var(--er-space-lg);
  padding-bottom: var(--er-space-lg);
  border-bottom: 1px solid var(--er-border-light);
}

.er-estilo-story-header h2 {
  color: var(--er-brand);
  margin-bottom: var(--er-space-sm);
}

.er-estilo-story-meta {
  display: flex;
  gap: var(--er-space-sm);
  font-size: var(--er-font-size-sm);
  color: var(--er-text-muted);
  align-items: center;
}

.er-estilo-story-content {
  line-height: var(--er-line-height-relaxed);
}

/* Legal content */
.er-estilo-legal-content {
  line-height: var(--er-line-height-relaxed);
}

.er-estilo-legal-info {
  background: rgba(124, 58, 237, 0.05);
  padding: var(--er-space-lg);
  border-radius: var(--er-radius);
  margin: var(--er-space-xl) 0;
}

.er-estilo-legal-contacts {
  background: white;
  padding: var(--er-space-xl);
  border-radius: var(--er-radius);
  box-shadow: var(--er-shadow);
  margin: var(--er-space-xl) 0;
}

.er-estilo-legal-contacts h3 {
  color: var(--er-brand);
  margin-bottom: var(--er-space-sm);
  padding-bottom: var(--er-space-sm);
  border-bottom: 1px solid var(--er-border-light);
}

.er-estilo-copyright-contacts {
  background: rgba(220, 38, 38, 0.05);
  padding: var(--er-space-xl);
  border-radius: var(--er-radius);
  border-left: 4px solid var(--er-error);
  margin: var(--er-space-xl) 0;
}

.er-estilo-legal-notice {
  background: rgba(217, 119, 6, 0.1);
  padding: var(--er-space-lg);
  border-radius: var(--er-radius);
  border-left: 4px solid var(--er-warning);
  margin: var(--er-space-xl) 0;
  font-weight: 600;
}

.er-estilo-legal-footer {
  text-align: center;
  font-style: italic;
  color: var(--er-text-muted);
  margin-top: var(--er-space-xl);
  padding-top: var(--er-space-lg);
  border-top: 1px solid var(--er-border-light);
}

/* Sitemap */
.er-estilo-sitemap-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--er-space-xl);
  margin: var(--er-space-xl) 0;
}

.er-estilo-sitemap-section {
  background: white;
  padding: var(--er-space-xl);
  border-radius: var(--er-radius);
  box-shadow: var(--er-shadow);
}

.er-estilo-sitemap-section h2 {
  color: var(--er-brand);
  margin-bottom: var(--er-space-lg);
  font-size: var(--er-font-size-2xl);
}

.er-estilo-sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.er-estilo-sitemap-list li {
  padding: var(--er-space-sm) 0;
  border-bottom: 1px solid var(--er-border-light);
  margin-bottom: 0;
}

.er-estilo-sitemap-list li:last-child {
  border-bottom: none;
}

.er-estilo-contact-summary {
  background: rgba(124, 58, 237, 0.05);
  padding: var(--er-space-lg);
  border-radius: var(--er-radius);
}

/* Footer */
.er-estilo-footer {
  background: var(--er-text);
  color: white;
  padding: var(--er-space-3xl) 0 var(--er-space-lg) 0;
}

.er-estilo-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--er-space-xl);
  margin-bottom: var(--er-space-xl);
}

.er-estilo-footer-section h4 {
  color: var(--er-brand-2);
  margin-bottom: var(--er-space-md);
  font-size: var(--er-font-size-lg);
}

.er-estilo-footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.er-estilo-footer-section li {
  margin-bottom: var(--er-space-sm);
}

.er-estilo-footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.er-estilo-footer-section a:hover {
  color: var(--er-brand-2);
  text-decoration: none;
}

.er-estilo-footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--er-space-sm);
}

.er-estilo-cookie-settings-btn {
  background: var(--er-brand);
  color: white;
  border: none;
  padding: var(--er-space-sm) var(--er-space-md);
  border-radius: var(--er-radius-sm);
  cursor: pointer;
  font-size: var(--er-font-size-sm);
  transition: background-color 0.2s ease;
  margin-bottom: var(--er-space-md);
}

.er-estilo-cookie-settings-btn:hover {
  background: var(--er-brand-2);
}

.er-estilo-age-mark {
  background: var(--er-error);
  color: white;
  padding: var(--er-space-xs) var(--er-space-sm);
  border-radius: var(--er-radius-sm);
  font-weight: 600;
  font-size: var(--er-font-size-sm);
  display: inline-block;
}

.er-estilo-footer-bottom {
  padding-top: var(--er-space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.er-estilo-footer-compliance {
  font-size: var(--er-font-size-xs);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  line-height: var(--er-line-height-relaxed);
  margin: 0;
}

/* Cookie banner */
.er-estilo-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--er-border);
  box-shadow: var(--er-shadow-lg);
  padding: var(--er-space-lg);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.er-estilo-cookie-banner.er-estilo-cookie-show {
  transform: translateY(0);
}

.er-estilo-cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--er-space-lg);
}

.er-estilo-cookie-content p {
  margin: 0;
  color: var(--er-text-secondary);
}

.er-estilo-cookie-actions {
  display: flex;
  gap: var(--er-space-sm);
  flex-shrink: 0;
}

/* Modal */
.er-estilo-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: var(--er-space-lg);
}

.er-estilo-modal.er-estilo-modal-open {
  opacity: 1;
  visibility: visible;
}

.er-estilo-modal-content {
  background: white;
  border-radius: var(--er-radius);
  box-shadow: var(--er-shadow-lg);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.er-estilo-modal-open .er-estilo-modal-content {
  transform: scale(1);
}

.er-estilo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--er-space-lg);
  border-bottom: 1px solid var(--er-border-light);
}

.er-estilo-modal-header h3 {
  margin: 0;
  color: var(--er-brand);
}

.er-estilo-modal-close {
  background: none;
  border: none;
  font-size: var(--er-font-size-2xl);
  cursor: pointer;
  color: var(--er-text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.er-estilo-modal-close:hover {
  background: var(--er-border-light);
}

.er-estilo-modal-body {
  padding: var(--er-space-lg);
}

.er-estilo-modal-footer {
  padding: var(--er-space-lg);
  border-top: 1px solid var(--er-border-light);
  display: flex;
  justify-content: flex-end;
  gap: var(--er-space-sm);
}

/* Cookie categories */
.er-estilo-cookie-category {
  margin-bottom: var(--er-space-lg);
  padding-bottom: var(--er-space-lg);
  border-bottom: 1px solid var(--er-border-light);
}

.er-estilo-cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.er-estilo-cookie-category-header {
  display: flex;
  gap: var(--er-space-md);
  align-items: flex-start;
}

.er-estilo-cookie-category h4 {
  margin-bottom: var(--er-space-xs);
  color: var(--er-text);
}

.er-estilo-cookie-category p {
  margin: 0;
  font-size: var(--er-font-size-sm);
  color: var(--er-text-muted);
}

/* Switch component */
.er-estilo-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.er-estilo-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.er-estilo-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--er-border);
  transition: 0.3s;
  border-radius: 24px;
}

.er-estilo-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .er-estilo-slider {
  background-color: var(--er-brand);
}

input:checked + .er-estilo-slider:before {
  transform: translateX(20px);
}

input:disabled + .er-estilo-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Disclaimer */
.er-estilo-disclaimer {
  background: rgba(244, 208, 111, 0.1);
  padding: var(--er-space-lg);
  border-radius: var(--er-radius);
  border-left: 4px solid var(--er-accent);
  margin: var(--er-space-xl) 0;
}

.er-estilo-disclaimer p {
  margin: 0;
  color: var(--er-text);
}

/* Toast notifications */
.er-estilo-toast {
  position: fixed;
  top: var(--er-space-lg);
  right: var(--er-space-lg);
  background: var(--er-success);
  color: white;
  padding: var(--er-space-lg);
  border-radius: var(--er-radius);
  box-shadow: var(--er-shadow-lg);
  z-index: 3000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.er-estilo-toast.er-estilo-toast-show {
  transform: translateX(0);
}

.er-estilo-toast.er-estilo-toast-error {
  background: var(--er-error);
}

/* Responsive design */
@media (max-width: 768px) {
  .er-estilo-container {
    padding: 0 var(--er-space-sm);
  }
  
  .er-estilo-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--er-space-xl);
    text-align: center;
  }
  
  .er-estilo-hero-title {
    font-size: var(--er-font-size-4xl);
  }
  
  .er-estilo-hero-actions {
    justify-content: center;
  }
  
  .er-estilo-contact-layout {
    grid-template-columns: 1fr;
    gap: var(--er-space-xl);
  }
  
  .er-estilo-form-row {
    grid-template-columns: 1fr;
  }
  
  .er-estilo-culture-grid {
    grid-template-columns: 1fr;
  }
  
  .er-estilo-cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .er-estilo-cookie-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .er-estilo-modal {
    padding: var(--er-space-sm);
  }
  
  .er-estilo-footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--er-space-lg);
  }
}

@media (max-width: 480px) {
  .er-estilo-hero-title {
    font-size: var(--er-font-size-3xl);
  }
  
  .er-estilo-hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .er-estilo-btn {
    width: 100%;
    text-align: center;
  }
  
  .er-estilo-gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .er-estilo-icons-grid {
    grid-template-columns: 1fr;
  }
  
  .er-estilo-wardrobe-grid {
    grid-template-columns: 1fr;
  }
  
  .er-estilo-epochs-table {
    font-size: var(--er-font-size-sm);
  }
  
  .er-estilo-epochs-table th,
  .er-estilo-epochs-table td {
    padding: var(--er-space-sm);
  }
}

/* Print styles */
@media print {
  .er-estilo-header,
  .er-estilo-footer,
  .er-estilo-cookie-banner,
  .er-estilo-modal,
  .er-estilo-hero-actions,
  .er-estilo-section-cta {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .er-estilo-hero {
    background: white;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root[data-theme="estilo"] {
    --er-brand: #5B21B6;
    --er-brand-2: #BE185D;
    --er-text: #000000;
    --er-text-secondary: #1F2937;
    --er-border: #374151;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--er-brand);
  outline-offset: 2px;
}

/* Ensure sufficient color contrast */
.er-estilo-badge,
.er-estilo-btn,
.er-estilo-tag {
  font-weight: 600;
}

/* Loading states */
.er-estilo-loading {
  opacity: 0.6;
  pointer-events: none;
}

.er-estilo-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--er-brand);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}