/* Variables de colores para la temática naranja */
:root {
    --primary-color: #FF8C00;
    --primary-dark: #E67E00;
    --primary-light: #FFA94D;
    --secondary-color: #333333;
    --accent-color: #FFF3E0;
    --text-color: #333333;
    --light-bg: #FFF9F0;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ==========================================================================
   ESTILOS PARA SECCIÓN DE CARACTERÍSTICAS CON ICONOS PERSONALIZADOS
   ========================================================================== */

/* Grid de 4 columnas FIJAS para las características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas exactas */
    gap: 25px;
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

/* Tarjeta de característica individual */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
    transition: all 0.3s ease;
    border-top: 5px solid #ff6b35;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px; /* Altura mínima para uniformidad */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.25);
}

/* Iconos */
.feature-card .icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0; /* No se encoge */
}

.feature-card:hover .icon {
    background-color: #cccccc;
    transform: scale(1.1);
}

.feature-card .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texto */
.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.4;
    flex-shrink: 0;
}

.feature-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1; /* Ocupa el espacio restante */
}

/* MEDIA QUERIES AJUSTADAS */

/* Para pantallas grandes (más de 1200px) */
@media (min-width: 1201px) {
    .features-grid {
        max-width: 1400px;
        gap: 30px;
    }
    
    .feature-card {
        padding: 35px 25px;
    }
}

/* Para pantallas medianas-grandes (993px - 1200px) */
@media (max-width: 1200px) and (min-width: 993px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
}

/* Para tablets (769px - 992px) - 2 columnas */
@media (max-width: 992px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
        min-height: 280px;
    }
}

/* Para tablets pequeñas y móviles grandes (481px - 768px) - 2 columnas */
@media (max-width: 768px) and (min-width: 481px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 2rem auto;
    }
    
    .feature-card {
        padding: 20px 15px;
        min-height: 250px;
    }
    
    .feature-card .icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
}

/* Para móviles (hasta 480px) - 1 columna */
@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 1.5rem auto;
        padding: 0 0.5rem;
    }
    
    .feature-card {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .feature-card .icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
}

/* Para móviles muy pequeños (hasta 320px) */
@media (max-width: 320px) {
    .features-grid {
        padding: 0 0.25rem;
    }
    
    .feature-card {
        padding: 15px 10px;
    }
    
    .feature-card .icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   ESTILOS PARA TALLERES - WORKSHOP-CARDS.CSS
   ========================================================================== */

/* Container principal para las tarjetas de talleres */
.workshop-cards-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Grid de tarjetas */
.workshop-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Tarjeta principal del taller */
.workshop-card {
    background: linear-gradient(135deg, #FF8C00 0%, #FF7A00 50%, #FF6B00 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efecto shimmer en hover */
.workshop-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.workshop-card:hover::before {
    opacity: 1;
    top: -100%;
    right: -100%;
}

/* Hover effects para la tarjeta */
.workshop-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 140, 0, 0.4);
}

/* Header de la tarjeta */
.workshop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

/* Título del taller */
.workshop-title {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.3;
    flex: 1;
    margin-right: 1rem;
}

/* Badge para ofertas 2x1 */
.workshop-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Contenido de la tarjeta */
.workshop-content {
    margin-bottom: 1.5rem;
}

/* Items de información */
.workshop-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: white;
    font-size: 0.9rem;
}

.workshop-info-item i {
    width: 20px;
    margin-right: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.workshop-info-item strong {
    margin-right: 0.5rem;
}

/* Footer de la tarjeta con botones */
.workshop-footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Botones de WhatsApp */
.whatsapp-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #FF8C00;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex: 1;
    justify-content: center;
}

.whatsapp-btn:hover {
    background: white;
    color: #FF6B00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.whatsapp-btn i {
    font-size: 1.1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablets */
@media (max-width: 768px) {
    .workshop-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .workshop-card {
        padding: 1.2rem;
    }
    
    .workshop-title {
        font-size: 1.1rem;
    }
    
    .workshop-footer {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .whatsapp-btn {
        width: 100%;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .workshop-cards-container {
        padding: 0 0.5rem;
    }
    
    .workshop-card {
        padding: 1rem;
    }
    
    .workshop-title {
        font-size: 1rem;
    }
    
    .workshop-info-item {
        font-size: 0.85rem;
    }
    
    .whatsapp-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    .workshop-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ==========================================================================
   SECCIÓN DE VIDEOS DE YOUTUBE
   ========================================================================== */

.youtube-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.youtube-section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #FF8C00;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.videos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive adjustments for videos */
@media (max-width: 992px) {
    .videos-container {
        gap: 1.5rem;
    }
    .youtube-section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .videos-container {
        grid-template-columns: 1fr;
    }
    .youtube-section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .youtube-section {
        margin: 3rem auto;
    }
}

.youtube-section-modified {
    background-color: #f0f0f0; /* Gris */
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.youtube-main-title {
    color: #FF8C00; /* Naranja */
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.videos-main-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.video-item {
    background: #FF8C00; /* Naranja */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.video-wrapper-modified {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px; /* Match the iframe style in mapa-columna */
}

.video-wrapper-modified iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-subtitle {
    color: white; /* Change to white */
    font-size: 1.2rem; /* Match h4 style */
    margin-top: 1rem; /* Add margin top to separate from video */
    margin-bottom: 0; /* Remove bottom margin */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .videos-main-container {
        grid-template-columns: 1fr;
    }
}
