/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Encabezado */
header {
    background-color: #FF9BBD;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

/* Secciones principales */
main {
    padding: 2rem 0;
}

.intro {
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    text-align: left;
}

.intro-text h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.mission-statement {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
}

.why-we-do-this {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid #FF9BBD;
}

.why-we-do-this h3 {
    color: #4a6fa5;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.why-we-do-this p {
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.impact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.impact-list li {
    padding: 0.8rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.impact-list li i {
    color: #FF9BBD;
    font-size: 1.2rem;
    width: 20px;
}

.call-to-action {
    margin-bottom: 2rem;
    text-align: center;
}

.highlight {
    background: linear-gradient(135deg, #FF9BBD, #FF6B9E);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    box-shadow: 0 4px 15px rgba(255, 155, 189, 0.3);
}

.intro-image {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.fundacion-logo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 5px solid white;
    margin-bottom: 1rem;
}

.image-caption {
    text-align: center;
    margin-top: 1rem;
}

.image-caption p {
    margin: 0.3rem 0;
    color: #2c3e50;
}

.image-caption p:first-child {
    font-size: 1.2rem;
    font-weight: 700;
}

.image-caption p:last-child {
    font-style: italic;
    color: #7f8c8d;
}

.intro-image .fundacion-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
    width: 100%;
}

.intro-image .fundacion-links h3 {
    color: #4a6fa5;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    text-align: center;
}

.intro-image .social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.intro-image .social-link {
    display: block;
    width: 200px;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 15px;
    background-color: #FF9BBD;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: #FF6B9E;
}

/* Filtros y búsqueda */
.filters {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}



.category-filters {
    text-align: center;
    width: 100%;
    margin-top: 1rem;
}

.category-filters h3 {
    margin-bottom: 0.5rem;
    color: #4a6fa5;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #e1e1e1;
}

.filter-btn.active {
    background-color: #4a6fa5;
    color: white;
    border-color: #4a6fa5;
}



/* Productos */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 250px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    color: white;
}

.product-price {
    font-weight: bold;
    color: #fff;
    font-size: 1.4rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    align-self: flex-start;
}

.product-title {
    font-size: 1rem;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    align-self: flex-end;
    text-align: right;
}

/* Modal para vista ampliada */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    overflow: auto;
    animation: fadeIn 0.3s ease-in-out;
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: 1% auto;
    padding: 15px;
    width: 95%;
    max-width: 1200px;
    background-color: white;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: slideIn 0.3s ease-in-out;
    max-height: 98vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid transparent;
}

.close-modal:hover {
    color: #e74c3c;
    background: rgba(255,255,255,1);
    border-color: #e74c3c;
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.modal-image:hover {
    transform: scale(1.02);
}

.modal-image.zoomed {
    cursor: zoom-out;
    transform: scale(1.5);
    transition: transform 0.3s ease;
}

.modal-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.modal-contact {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.modal-contact h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: white;
}

.contact-instruction {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.article-reference {
    color: #FFE066;
    font-weight: bold;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.whatsapp-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

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

.modal-navigation-info {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
}

.modal-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.modal-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.modal-info p {
    margin: 0.5rem 0;
    color: #555;
}

.modal-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e74c3c;
}

/* Animaciones para el modal */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Pie de página */
footer {
    background-color: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: #a8dadc;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */

/* Tablets grandes y pantallas medianas (1024px y menores) */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }
    
    .intro-content {
        gap: 2.5rem;
    }
    
    .products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.8rem;
    }
    
    .fundacion-logo {
        width: 220px;
        height: 220px;
    }
}

/* Tablets (768px y menores) */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    header {
        padding: 1.5rem 0;
    }
    
    header h1 {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .intro {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .intro-text {
        text-align: center;
    }
    
    .intro-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .mission-statement {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .why-we-do-this {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .why-we-do-this h3 {
        font-size: 1.3rem;
    }
    
    .impact-list li {
        font-size: 1rem;
        padding: 0.7rem 0;
    }
    
    .highlight {
        font-size: 1.1rem;
        padding: 1.3rem;
    }
    
    .fundacion-logo {
        width: 200px;
        height: 200px;
    }
    
    .products {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .product-card {
        height: 220px;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .filters {
        margin-bottom: 1.5rem;
    }
    
    .filter-buttons {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
    }
    
    .modal-image {
        max-height: 60vh;
    }
    
    .close-modal {
        font-size: 2rem;
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* Móviles grandes (600px y menores) */
@media (max-width: 600px) {
    .container {
        width: 98%;
        padding: 0 8px;
    }
    
    header {
        padding: 1.2rem 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .intro {
        padding: 1.2rem;
    }
    
    .intro-text h2 {
        font-size: 1.6rem;
    }
    
    .mission-statement {
        font-size: 1rem;
    }
    
    .why-we-do-this {
        padding: 0.8rem;
    }
    
    .fundacion-logo {
        width: 180px;
        height: 180px;
    }
    
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        height: 200px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .social-link {
        width: 180px;
        text-align: center;
    }
}

/* Móviles pequeños (480px y menores) */
@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 5px;
    }
    
    header {
        padding: 1rem 0;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    main {
        padding: 1rem 0;
    }
    
    .intro {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .intro-content {
        gap: 1.5rem;
    }
    
    .intro-text h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .mission-statement {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
    
    .why-we-do-this {
        padding: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .why-we-do-this h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .impact-list li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        gap: 0.6rem;
    }
    
    .impact-list li i {
        font-size: 1rem;
        width: 18px;
    }
    
    .highlight {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .fundacion-logo {
        width: 160px;
        height: 160px;
    }
    
    .image-caption p:first-child {
        font-size: 1rem;
    }
    
    .image-caption p:last-child {
        font-size: 0.9rem;
    }
    
    .intro-image .fundacion-links h3 {
        font-size: 1rem;
    }
    
    .intro-image .social-link {
        width: 160px;
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .filters {
        margin-bottom: 1rem;
    }
    
    .filter-buttons {
        gap: 0.2rem;
    }
    
    .filter-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .products {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .product-card {
        height: 180px;
    }
    
    .product-overlay {
        padding: 0.8rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .product-title {
        font-size: 0.85rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 2% auto;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .modal-image {
        max-height: 50vh;
    }
    
    .modal-info {
        margin-top: 1rem;
        padding: 0.8rem;
    }
    
    .modal-info h3 {
        font-size: 1.2rem;
    }
    
    .modal-price {
        font-size: 1.1rem;
    }
    
    .close-modal {
        font-size: 1.8rem;
        top: 5px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .modal-navigation-info {
        font-size: 0.8rem;
    }
    
    footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
}