/* MOBILE DESIGN - 320px to 600px */

@media (max-width: 600px) {

    body {
        width: 100%;
        overflow-x: hidden;
    }

    /* HEADER */

    .header {
        position: sticky;
        top: 0;
        padding: 10px 14px 14px;
        flex-direction: column;
        gap: 10px;
        background: #061b1f;
    }

    .brand {
        justify-content: center;
        gap: 10px;
        text-align: left;
    }

    .brand img {
        width: 58px;
        height: auto;
    }

    .brand h2 {
        font-size: 22px;
        line-height: 1;
    }

    .brand p {
        font-size: 10px;
        letter-spacing: .6px;
    }

    .nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, max-content);
        justify-content: center;
        gap: 10px 22px;
    }

    .nav a {
        font-size: 13px;
        white-space: nowrap;
    }

    .nav a::after {
        display: none;
    }

    /* HERO */

    .hero {
        min-height: auto;
        padding: 28px 16px 34px;
        background-position: center;
        align-items: flex-start;
    }

    .overlay {
        background: linear-gradient(180deg,
                rgba(1, 25, 24, 0.95) 0%,
                rgba(1, 49, 45, 0.78) 55%,
                rgba(1, 49, 45, 0.95) 100%);
    }

    .hero-content {
        padding: 0;
    }

    .hero-layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .hero-text {
        width: 100%;
        max-width: 100%;
        padding: 18px 16px;
        text-align: left;
        background: rgba(0, 0, 0, 0.42);
        border-radius: 16px;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.08;
    }

    .subtitle {
        font-size: 16px;
        line-height: 1.35;
        margin-top: 8px;
    }

    .hero-video,
    .hero-bottom {
        width: 100%;
        max-width: 100%;
    }

    .hero-video video {
        width: 100%;
        border-radius: 16px;
    }

    .benefits-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 12px 0 18px;
    }

    .benefits-row .benefit {
        gap: 10px;
    }

    .benefits-row p {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .call-btn {
        width: 100%;
        background: #16c6a5;
        color: #ffffff !important;
        text-align: center;
        text-decoration: none;
        padding: 15px 20px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 800;
        letter-spacing: 1px;
    }

    .phone-link {
        text-align: center;
        font-size: 16px;
    }

    /* GLOBAL MOBILE SECTIONS */

    .hero,
    .services,
    .info-section,
    .contact-section,
    .gallery-page,
    .estimate-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .services,
    .info-section,
    .contact-section,
    .estimate-section {
        padding: 34px 14px;
    }

    .section-header,
    .contact-title,
    .estimate-title,
    .gallery-page .section-header {
        margin-bottom: 22px;
    }

    .section-header p,
    .contact-title p,
    .estimate-title p,
    .gallery-page .section-header p {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 6px;
    }

    .section-header h2,
    .info-text h2,
    .contact-title h2,
    .estimate-title h2,
    .gallery-page .section-header h2 {
        font-size: 28px;
        line-height: 1.2;
    }

    /* SERVICES 2x2 */

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-card {
        min-height: auto;
        border-radius: 14px;
    }

    .service-card img {
        height: 115px;
    }

    .service-content {
        padding: 12px 8px 14px;
    }

    .service-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .service-card p {
        font-size: 11px;
        line-height: 1.35;
    }

    /* INFO 2x2 */

    .info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .info-card {
        min-height: 125px;
        padding: 12px 10px;
        border-radius: 12px;
    }

    .info-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.15;
    }

    .info-card p {
        font-size: 11px;
        line-height: 1.3;
    }


    .info-description {
        font-size: 15px;
        line-height: 1.6;
    }

    /* CONTACT 2x2 */

    /* CONTACT */

    .contact-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Tarjetas */




    /* Cambiar el orden SOLO en móvil */

    .contact-card:nth-child(1) {
        order: 1;
        /* Phone */
    }

    .contact-card:nth-child(2) {
        order: 3;
        /* Email abajo */
        grid-column: 1 / 3;
    }

    .contact-card:nth-child(3) {
        order: 2;
        /* Location arriba */
    }

    .contact-card {
        padding: 14px 10px;
        border-radius: 12px;
        min-width: 0;
        min-height: 120px;
    }

    .contact-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .contact-card p,
    .contact-card a {
        font-size: 11px;
        line-height: 1.25;
        word-break: normal;
        overflow-wrap: normal;
    }

    /* Phone */
    .contact-card:nth-child(1) {
        order: 1;
    }

    /* Email */
    .contact-card:nth-child(2) {
        order: 3;
        grid-column: 1 / 3;
    }

  .contact-card:nth-child(2) a {
    display: block;
    width: 100%;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
}

    /* Location */
    .contact-card:nth-child(3) {
        order: 2;
        grid-column: auto;
    }

    /* GALLERY */

    .gallery-page {
        padding: 18px 14px 36px !important;
        min-height: auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-page .section-header {
        margin-top: 0 !important;
        margin-bottom: 24px;
    }

    .gallery-grid img {
        height: 145px;
        border-radius: 14px;
    }

    .lightbox img {
        max-width: 92%;
        max-height: 75%;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        font-size: 22px;
        padding: 8px 12px;
    }

    .lightbox-close {
        top: 18px;
        right: 18px;
    }

    .lightbox-prev {
        left: 14px;
    }

    .lightbox-next {
        right: 14px;
    }

    /* ESTIMATE */

    .estimate-section,
    .estimate-page {
        padding: 34px 14px;
    }

    .estimate-title h2 {
        font-size: 30px;
        line-height: 1.15;
    }

    .estimate-intro {
        font-size: 16px;
        line-height: 1.6;
    }

    .estimate-form {
        gap: 20px;
    }

    .form-card {
        width: 100%;
        max-width: 100%;
        padding: 18px 14px;
        border-radius: 16px;
        overflow: hidden;
    }

    .form-card h3 {
        font-size: 21px;
        line-height: 1.25;
    }

    .estimate-type-grid,
    .customer-grid,
    .address-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .estimate-type-grid label {
        width: 100%;
        font-size: 15px;
        padding: 14px 12px;
        white-space: normal;
    }

    .customer-name,
    .street-address {
        grid-column: 1;
        width: 100%;
    }

    .customer-grid input,
    .address-grid input {
        width: 100%;
        height: 58px;
        font-size: 16px;
    }

    .location-btn {
        width: 100%;
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.25;
    }

    .location-status {
        text-align: center;
    }

    /* ESTIMATE OPTIONS 2x2 */

    .service-options,
    .checkbox-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-option {
        min-height: 170px;
        padding: 16px 12px;
    }

    .service-option input {
        top: 14px;
        right: 14px;
    }

    .service-option strong {
        font-size: 16px;
        line-height: 1.3;
        padding-right: 24px;
    }

    .service-option small {
        font-size: 13px;
        line-height: 1.45;
        margin-top: 10px;
    }

    .floors-grid label {
        min-height: 72px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 17px;
    }

    .form-card input,
    .form-card textarea {
        max-width: 100%;
    }

    .estimate-btn,
    .success-btn {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .form-summary-error {
        padding: 18px 16px;
    }

    .form-summary-error ul {
        grid-template-columns: 1fr;
    }

    .privacy-text {
        font-size: 13px;
        padding: 0 4px;
    }

    section {
        scroll-margin-top: 140px;
    }
}