/* Responsive Design */

/* Tablets y dispositivos medianos */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .coffee-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .coffee-variety {
        flex-direction: column;
        text-align: center;
    }
    
    .coffee-variety img {
        width: 200px;
        height: 200px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-social {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
    /* Navegación */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 1.5rem 0;
        gap: 0.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: 8px;
    }
    
    .nav-link:hover {
        background-color: rgba(45, 80, 22, 0.1);
    }
    
    .nav-social {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1rem;
        order: 2;
    }
    
    .hero-image {
        order: 1;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }
    
    /* Sobre Nosotros */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Servicios */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* Actividades */
    .activities-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    

    
    /* Contacto */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    /* Galería */
    .gallery-track {
        width: calc(150px * 12);
    }
    
    .gallery-item {
        flex: 0 0 150px;
        margin: 0 5px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-container {
        height: 300px;
    }

    .nav-social {
        display: none;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Header compacto */
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .logo {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .nav-actions {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    .hamburger {
        padding: 0.4rem;
    }
    
    .bar {
        width: 18px;
        height: 2px;
        margin: 1.5px 0;
    }
    
    /* Tipografía */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    /* Secciones */
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Servicios */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Actividades */
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .activity-card img {
        height: 200px;
    }
    
    /* Café */
    .coffee-variety {
        padding: 1.5rem;
    }
    
    .coffee-variety img {
        width: 150px;
        height: 150px;
    }
    
    /* Testimonios */

    
    /* Contacto */
    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-bottom: 0.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Galería */
    .gallery-track {
        width: calc(120px * 12);
    }
    
    .gallery-item {
        flex: 0 0 120px;
        margin: 0 3px;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .gallery-container {
        height: 250px;
    }
    
    /* WhatsApp Button */
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button a {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Dispositivos muy pequeños */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .activity-card,
    .contact-form {
        padding: 1rem;
    }
    
    .gallery-track {
        width: calc(100px * 12);
    }
    
    .gallery-item {
        flex: 0 0 100px;
        margin: 0 2px;
    }
    
    .gallery-item img {
        height: 120px;
    }
    
    .gallery-container {
        height: 200px;
    }
}

/* Orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 0.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        width: auto;
        margin-bottom: 0;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* Pantallas de alta resolución */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .activities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Impresión */
@media print {
    .header,
    .whatsapp-button,
    .contact-form,
    .map-container {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-image {
        display: none;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .footer {
        background: white;
        color: black;
    }
    
    .footer-section h3 {
        color: black;
    }
    
    .footer-section ul li a {
        color: black;
    }
}

/* Accesibilidad - Modo de alto contraste */




/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gallery-track {
        animation: none;
    }
    
    .whatsapp-button a {
        animation: none;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-description,
    .hero-buttons {
        animation: none;
    }
} 



/* Responsive para la galería 3D */
@media (max-width: 768px) {
    .gallery-3d-wrapper {
        height: 350px;
    }
    
    .gallery-3d-slide {
        width: 280px;
        height: 330px;
    }
    
    .gallery-3d-slide.prev-1 {
        transform: translateX(-180px) translateZ(-100px) rotateY(25deg) scale(0.85);
    }
    
    .gallery-3d-slide.next-1 {
        transform: translateX(180px) translateZ(-100px) rotateY(-25deg) scale(0.85);
    }
    
    .gallery-3d-slide.prev-2 {
        transform: translateX(-340px) translateZ(-200px) rotateY(35deg) scale(0.7);
    }
    
    .gallery-3d-slide.next-2 {
        transform: translateX(340px) translateZ(-200px) rotateY(-35deg) scale(0.7);
    }
    
    .gallery-3d-nav {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .gallery-3d-nav-prev {
        left: 10px;
    }
    
    .gallery-3d-nav-next {
        right: 10px;
    }
    
    .gallery-3d-indicators {
        bottom: -30px;
    }
    
    .indicator-3d {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-3d-wrapper {
        height: 300px;
    }
    
    .gallery-3d-slide {
        width: 240px;
        height: 280px;
    }
    
    .gallery-3d-slide.prev-1 {
        transform: translateX(-160px) translateZ(-100px) rotateY(25deg) scale(0.85);
    }
    
    .gallery-3d-slide.next-1 {
        transform: translateX(160px) translateZ(-100px) rotateY(-25deg) scale(0.85);
    }
    
    .gallery-3d-slide.prev-2,
    .gallery-3d-slide.next-2 {
        display: none;
    }
    
    .gallery-3d-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-3d-nav-prev {
        left: 5px;
    }
    
    .gallery-3d-nav-next {
        right: 5px;
    }
    
    .gallery-3d-indicators {
        bottom: -25px;
        gap: 8px;
    }
    
    .indicator-3d {
        width: 10px;
        height: 10px;
    }
}

/* Responsive para la galería de detalles */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-main {
        border-radius: 15px;
    }
    
    .gallery-main img {
        height: 420px;
    }
    
    .gallery-thumbnails {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        max-height: 200px;
        gap: 0.5rem;
    }
    
    .thumbnail {
        height: 60px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-main {
        border-radius: 15px;
    }
    
    .gallery-main img {
        height: 336px;
    }
    
    .gallery-thumbnails {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-height: 150px;
        gap: 0.4rem;
    }
    
    .thumbnail {
        height: 50px;
        border-radius: 15px;
    }
}

/* Responsive para el grid de menús */
@media (max-width: 768px) {
    .menu-section .container .menu-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        align-items: start !important;
    }
    
    .menu-section .container .menu-grid .reservation-card {
        position: static !important;
        margin-top: 2rem !important;
        width: 100% !important;
        top: auto !important;
        height: auto !important;
        max-width: none !important;
    }
    
    .menu-section .container .menu-grid .reservation-form {
        padding: 1.5rem !important;
    }
    
    .menu-section .container .menu-grid .reservation-header {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .menu-section .container .menu-grid {
        gap: 1.5rem !important;
    }
    
    .menu-section .container .menu-grid .reservation-card {
        margin-top: 1.5rem !important;
    }
    
    .menu-section .container .menu-grid .reservation-form {
        padding: 1rem !important;
    }
    
    .menu-section .container .menu-grid .reservation-header {
        padding: 1rem !important;
    }
    
    .menu-section .container .menu-grid .reservation-form .form-group {
        margin-bottom: 1rem !important;
    }
} 