/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet (768px) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .hero {
        height: auto;
        padding: 3rem 0;
        min-height: 80vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-logo {
        width: 200px;
        height: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary-gold,
    .btn-secondary-gold {
        width: 100%;
        max-width: 300px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .service-card-image {
        height: 200px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .brand-text {
        display: inline;
        margin-left: 0.5rem;
    }
    
    .logo-nav {
        height: 40px;
    }
}

/* Mobile (576px) */
@media (max-width: 576px) {
    html, body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    .hero {
        height: auto;
        padding: 4rem 0;
        min-height: 60vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .hero-logo {
        width: 150px;
        height: auto;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .btn-primary-gold,
    .btn-secondary-gold {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    section h2 {
        margin-bottom: 2rem;
    }
    
    section h2::after {
        margin: 0.75rem auto 0;
    }
    
    .container, .container-lg {
        padding: 0 1rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card-image {
        height: 180px;
    }
    
    .service-card-body {
        padding: 1rem;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .price-table {
        margin: 1rem 0;
        font-size: 0.9rem;
    }
    
    .price-table th,
    .price-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .price-amount {
        font-size: 1rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .logo-nav {
        height: 35px;
    }
    
    .brand-text {
        display: none;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.95rem;
        margin: 0.25rem 0;
    }
    
    .btn-call {
        display: none;
    }
    
    .btn-call-mobile {
        display: block;
    }
    
    .map-container {
        height: 300px;
        margin: 1.5rem 0;
    }

    .about-section {
        padding: 3rem 0;
    }

    .about-container h2 {
        font-size: 1.6rem;
    }

    .about-lead {
        font-size: 1rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-section {
        padding: 3rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container {
        max-width: 100%;
        height: 350px;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .contact-actions .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .form-control {
        padding: 0.6rem 0.75rem;
        font-size: 16px; /* Previene zoom en iOS */
    }
    
    .nav-lang-switcher {
        gap: 0.25rem;
        padding: 0.4rem;
        border-radius: 50px;
    }

    .lang-btn-nav {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .whatsapp-float {
        width: 65px;
        height: 65px;
        bottom: 20px;
        right: 20px;
        font-size: 1.6rem;
    }
    
    .footer-contact p,
    .footer-links a {
        font-size: 0.9rem;
    }
    
    /* Tablas responsivas */
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table-responsive table {
        width: 100%;
    }
    
    .table-responsive th {
        padding: 0.5rem;
    }
    
    .table-responsive td {
        padding: 0.5rem;
    }
}

/* Extra pequeño (320px) */
@media (max-width: 360px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-logo {
        height: 70px;
    }
    
    .btn-primary-gold,
    .btn-secondary-gold {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .service-card-image {
        height: 150px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landscape */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        gap: 0.5rem;
    }
    
    .btn-primary-gold,
    .btn-secondary-gold {
        padding: 0.6rem 1.2rem;
    }
}

/* Pantallas grandes (1920px) */
@media (min-width: 1920px) {
    .container-lg {
        max-width: 1400px;
    }
    
    section {
        padding: 6rem 0;
    }
    
    h1 {
        font-size: 4.5rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Alto contraste */
@media (prefers-contrast: more) {
    .service-card {
        border-width: 2px;
    }
    
    .btn-gold,
    .btn-primary-gold {
        outline: 2px solid var(--text-light);
        outline-offset: 2px;
    }
}

/* Modo oscuro (ya está implementado por defecto) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-light: #f5f5f5;
        --text-muted: #b0b0b0;
    }
}

/* Print */
@media print {
    .navbar,
    .whatsapp-float,
    .lang-switcher-container,
    .btn-call,
    .btn-call-mobile {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .hero {
        height: auto;
        background: none;
    }
    
    a {
        color: black;
    }
}
