Overview
The Siloé Perú website uses a comprehensive CSS architecture built on CSS custom properties (variables), modular styling, and responsive design principles. All styles are contained in a singlestyle.css file (1662 lines) for simplicity.
CSS Variables
The website uses CSS custom properties defined in the:root selector for consistent theming (style.css:4-11):
style.css
Using CSS Variables
CSS variables are referenced throughout the stylesheet using thevar() function:
CSS Organization
The stylesheet is organized into logical sections with clear comments:1. Global Styles (lines 16-25)
style.css
2. Navigation System (lines 32-102)
Styles for the button-based navigation:.nav-buttons- Container with flexbox layout.nav-btn- Individual button styling.nav-btn-active- Active button state.seccion-activa/.seccion-inactiva- Section visibility
3. Hero Sections (lines 127-178)
Multiple hero section variants:.hero- Main hero with background image and overlay.clow-hero- Colorful gradient hero for clown section.nosotros-hero- About us hero.aliados-hero- Partners hero
4. Component Styles
Individual component sections:- Cards and grids (lines 238-260)
- Forms (lines 329-433)
- Galleries (lines 1336-1528)
- Flip cards (lines 1439-1528)
- Footer (lines 1302-1329)
5. Animations (lines 113-122, 1588-1595)
style.css
6. Responsive Design (lines 1620-1663)
Media queries for mobile and tablet:@media (max-width: 768px)- Tablet and mobile@media (max-width: 480px)- Small mobile devices
Grid Layouts
The website extensively uses CSS Grid for responsive layouts:Gallery Grid (lines 1356-1362)
style.css
repeat(auto-fit, minmax(280px, 1fr)) creates a responsive grid that automatically adjusts columns based on available space. Cards will never be smaller than 280px.Activities Grid (lines 238-244)
style.css
Values Grid (lines 1073-1077)
style.css
Gradient Patterns
The website uses consistent gradient patterns for visual cohesion:Primary Gradient (Blue to Pink)
- Hero section overlay
- Navigation button active state
- Gallery overlays
Clown Gradient (Yellow to Pink)
- Clow hero section
- Inspiration section
- Clown submit button
Subtle Background Gradients
Typography
Font Families
The website uses Google Fonts (index.html:10):- Playfair Display: Serif font for headings (elegant, formal)
- Montserrat: Sans-serif font for body text (modern, readable)
Font Sizing
Shadow System
Consistent shadow patterns create depth:Light Shadows (Cards at rest)
Medium Shadows (Hover states)
Strong Shadows (Active/elevated states)
Animation & Transitions
Hover Transitions
Most interactive elements use smooth transitions:3D Flip Card Transitions
The flip card animation uses CSS 3D transforms with
preserve-3d to create a realistic flip effect. The backface-visibility: hidden property ensures the back side isn’t visible until flipped.Color Usage Patterns
Section-Specific Colors
- Volunteer Section
- Clown Section
- About Section
Primary:
--azul-siloe (#29abe2)Used for:- Card borders
- Headings
- Submit buttons
- Hover states
Responsive Breakpoints
The website uses two main breakpoints:Tablet & Mobile (768px)
Small Mobile (480px)
CSS Naming Conventions
The codebase follows a consistent naming pattern:BEM-like Structure
Component Prefixes
.hero-- Hero section components.galeria-- Gallery components.form-- Form components.nosotros-- About section components.aliados-- Partners section components.clow-- Clown section components
State Classes
.nav-btn-active- Active navigation button.seccion-activa- Visible section.seccion-inactiva- Hidden section.flipped- Flipped flip card
Advanced CSS Techniques
Backdrop Filters & Overlays
Flexbox & Grid Centering
Custom Checkbox Styling
Best Practices
Use CSS Variables
Define colors, spacing, and common values as CSS variables for easy maintenance
Mobile-First
Base styles work on mobile, use media queries to enhance for larger screens
Semantic Class Names
Use descriptive class names that explain purpose, not appearance
Consistent Spacing
Use a spacing scale (20px, 40px, 60px, 80px) for consistent visual rhythm
Performance Tips
Next Steps
JavaScript Features
Learn about the JavaScript functionality
Responsive Design
Explore mobile-first responsive patterns
Color Customization
Customize colors for your organization
Component Reference
Browse all reusable components