/* --- GLOBAL STYLES: EXQUISITE ATOMIC CARDS & LAYOUT --- */

/* =========================================
   1. LAYOUT & GRID
   ========================================= */

/* Canvas Wrappers (Transparent Backgrounds) */
.experience-section,
.about-section,
.certificados-section,
.portfolio-section,
.services-section {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    position: relative !important;
}

/* Grids for Cards (Only Projects, Services, etc.) */
/* Removed .experience-list and .certificados-list from here */
.projects-grid,
.services-grid,
.services-grid-4col,
.portfolio-grid { 
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 30px !important;
    align-items: stretch !important;
    margin-top: 20px !important;
}

/* =========================================
   2. ATOMIC CARDS (REFINEMENT)
   ========================================= */

/* Selectors for Cards ONLY (Excluded Experience Items) */
.project-card,
.service-card,
.portfolio-item,
.copy-card,
.tools,       
.skills-bars,
.highlight-item {
    border-radius: 28px !important;
    overflow: hidden !important;
    padding: 30px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
}

/* Hover Effects (Cards) */
.project-card:hover,
.service-card:hover,
.portfolio-item:hover,
.tools:hover,
.skills-bars:hover,
.copy-card:hover,
.highlight-item:hover {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08) !important;
}

/* =========================================
   2.1. MEDIA CARDS (FULL BLEED)
   ========================================= */

/* Specialized Cards (Video, Design, Polaroid, About) that need 0 padding */
.video-tile,
.diseno-tile,
.service-polaroid,
.about-card {
    border-radius: 28px !important;
    overflow: hidden !important;
    padding: 0 !important;
    /* Background left handled by original CSS or individual rules */
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0 !important;
}

.video-tile:hover,
.diseno-tile:hover,
.service-polaroid:hover,
.about-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
    z-index: 10;
}

/* =========================================
   3. LIST VIEW (EXPERIENCE & CERTIFICATES)
   ========================================= */

/* List Container Styling */
.experience-list,
.certificados-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-top: 20px !important;
}

/* List Item Styling (Minimalist Separators) */
.experience-item {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 24px 0 !important; /* Spacing between lines */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important; /* Separator Line */
    margin: 0 !important;
    transition: border-color 0.3s ease !important;
}

.experience-item:last-child {
    border-bottom: none !important;
}

/* Hover Interaction for List Items */
.experience-item:hover {
    transform: none !important;
    background: transparent !important;
    border-bottom-color: rgba(139, 92, 246, 0.5) !important; /* Highlighting the separator */
}

/* Fix for Accordion Content visibility */
.exp-detail {
    width: 100%; /* Ensure content takes full width */
}

/* =========================================
   4. COMPONENTS & TYPOGRAPHY
   ========================================= */

/* Modals & Buttons Radius Fix */
button, 
.btn, 
.modal-content, 
.design-modal-content, 
.video-modal-content,
.card-action {
    border-radius: 28px !important;
}

/* Remove square corners from images inside cards */
.project-thumbnail, 
.service-icon,
.polaroid-img,
.video-thumb,
.diseno-tile .diseno-image {
    border-top-left-radius: 28px !important;
    border-top-right-radius: 28px !important;
}

/* =========================================
   5. TEXT & COLOR CORRECTIONS
   ========================================= */

/* Títulos */
h1, .page-title, .project-title, .section-title {
    color: #8B5CF6 !important; /* Morado Base */
    text-align: left; /* Desktop default */
}

/* Color specifically for Experience List Titles */
.exp-title {
    color: #8B5CF6 !important;
    font-weight: 700 !important;
    transition: color 0.3s ease;
}

/* Interacción Hover de Títulos */
.experience-item:hover .exp-toggle .exp-title,
.experience-item:hover .exp-title,
.project-card:hover .project-title {
    color: #EC4899 !important; /* Rosado */
}

/* Tech Stack & Badges */
.tech-badge, 
.tech-stack-badges span,
.tech-badges span {
    background-color: rgba(237, 233, 254, 0.8) !important;
    color: #5B21B6 !important;
    border: 1px solid #8B5CF6 !important;
    border-radius: 12px !important;
    padding: 4px 12px !important;
    font-weight: 600 !important;
}

/* Color de Texto General */
.experience-item ul li, 
.exp-detail ul li, 
p, 
li {
    color: #a7adbb !important;
}

/* =========================================
   6. MOBILE & RESPONSIVE RULES
   ========================================= */

@media (max-width: 768px) {
    /* Espacio para Menú Flotante */
    .experience-section,
    .about-section,
    .certificados-section,
    .portfolio-section {
        padding-top: 100px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Columnas en Móvil (Grid only) */
    .projects-grid,
    .services-grid,
    .services-grid-4col,
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Títulos en Móvil */
    h1, .page-title {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 1024px) {
    /* Padding Luxury Desktop */
    .experience-section,
    .about-section,
    .certificados-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}
