    /* Reset clave */
    * {
        box-sizing: border-box;
    }

    body {
        font-family: 'Open Sans', Arial, Helvetica, sans-serif;
        margin: 0;
        background: #f5f5f5;
    }

    /* HEADER */
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 20px;
        background: #2c3e50;
        color: white;
    }

    /* Imagen izquierda */
    .hero-img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 10px;
    }

    /* Texto */
    .header-text h1 {
        margin: 0;
        font-size: 28px;
    }

    .header-text p {
        margin: 5px 0 0;
        font-size: 14px;
    }

    /* CONTENIDO */
    .container {
        max-width: 1200px;
        margin: auto;
        padding: 20px;
    }

    /* BUSCADOR */
    .buscador {
        text-align: center;
        margin: 20px;
    }

    #buscarCiudad {
        padding: 10px;
        width: 250px;
        border-radius: 5px;
        border: 1px solid #ccc;
    }

    .buscador button {
        padding: 10px;
        border-radius: 5px;
        border: none;
        background: #2c3e50;
        color: white;
        cursor: pointer;
    }

    .form-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        background: #2c3e50;
        color: white;
        font-weight: bold;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .form-header button {
        background: none;
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
    }

    /* MAPA */
    #map {
        width: 100%;
        height: 70vh;
        border-radius: 10px;
    }

    /* RESULTADOS */
    #resultados {
        max-width: 800px;
        margin: auto;
        display: none;
    }

    .item {
        background: white;
        padding: 10px;
        margin: 10px 0;
        border-radius: 5px;
    }

    /* PANEL LATERAL */
    .form-tab {
        position: fixed;
        right: 0;
        top: 40%;
        background: #2c3e50;
        color: white;
        padding: 12px;
        cursor: pointer;
        writing-mode: vertical-rl;
        z-index: 10000;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        touch-action: manipulation;
    }

    .form-panel {
        position: fixed;
        right: -420px;
        top: 0;
        width: 420px;
        height: 100vh;
        background: white;
        box-shadow: -3px 0 10px rgba(0,0,0,0.2);
        transition: right 0.3s;
        z-index: 10000;
    }

    /* Estado abierto */
    .form-panel.open {
        right: 0;
    }

    .form-panel iframe {
        width: 100%;
        height: calc(100% - 60px); /* deja espacio para el header */
        border: 0;
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
    }

    .modal-content {
        background: white;
        margin: 15% auto;
        padding: 20px;
        border-radius: 10px;
        width: 300px;
        text-align: center;
        animation: fadeIn 0.3s ease;
    }

    .close {
        float: right;
        font-size: 22px;
        cursor: pointer;
    }

    @keyframes fadeIn {
        from {opacity: 0; transform: translateY(-10px);}
        to {opacity: 1; transform: translateY(0);}
    }

    /*  FOOOTER  */
    .main-footer {
        background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
        color: #e8edf2;
        margin-top: 50px;
        font-family: 'Open Sans', sans-serif;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 20px 30px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 35px;
    }

    .footer-section h3 {
        color: #f0bc6e;
        font-size: 1.2rem;
        margin-bottom: 18px;
        font-weight: 600;
        position: relative;
        display: inline-block;
    }

    .footer-section h3:after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 40px;
        height: 2px;
        background: #f0bc6e;
    }

    .footer-section p {
        line-height: 1.6;
        font-size: 0.9rem;
        color: #cbd5e0;
        margin: 10px 0;
    }

    .footer-section a {
        color: #cbd5e0;
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .footer-section a:hover {
        color: #f0bc6e;
        transform: translateX(3px);
    }

    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links li i {
        width: 24px;
        color: #f0bc6e;
        font-size: 0.85rem;
    }

    .social-icons {
        display: flex;
        gap: 15px;
        margin-top: 15px;
        flex-wrap: wrap;
    }

    .social-icons a {
        background: rgba(255,255,255,0.08);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
        font-size: 1.1rem;
    }

    .social-icons a:hover {
        background: #f0bc6e;
        color: #1a2a3a;
        transform: translateY(-3px);
    }

    .footer-bottom {
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 20px;
        text-align: center;
        font-size: 0.8rem;
        color: #9aaebf;
        background: rgba(0,0,0,0.15);
    }

    .footer-bottom a {
        color: #f0bc6e;
        text-decoration: none;
        margin: 0 5px;
    }

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

    .legal-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    @media (max-width: 768px) {
        .footer-content {
            grid-template-columns: 1fr;
            text-align: center;
            gap: 25px;
            padding: 30px 20px;
        }
        .footer-section h3:after {
            left: 50%;
            transform: translateX(-50%);
        }
        .social-icons {
            justify-content: center;
        }
        .footer-links li i {
            width: auto;
            margin-right: 6px;
        }
    }

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

    /* Tablets */
    @media (max-width: 900px) {
        .container {
            padding: 15px;
        }

        #map {
            height: 60vh;
        }

        #buscarCiudad {
            width: 200px;
        }

        .form-panel {
            width: 320px;
            right: -320px;
        }
    }

    /* Móviles */
    @media (max-width: 600px) {

        header {
            flex-direction: column;
            text-align: center;
        }

        .hero-img {
            width: 80px;
            height: 80px;
        }

        .header-text h1 {
            font-size: 20px;
        }

        .header-text p {
            font-size: 13px;
        }

        /* Buscador */
        .buscador {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        #buscarCiudad,
        .buscador button {
            width: 100%;
        }

        /* Mapa */
        #map {
            height: 50vh;
        }

        /* Panel */
        .form-tab {
            top: auto;
            bottom: 20px;
            right: 10px;
            writing-mode: horizontal-tb;
            border-radius: 20px;
            padding: 10px 15px;
        }

        .form-panel {
            width: 100%;
            right: 0;
            transform: translateX(100%);
            transition: transform 0.3s ease;
        }

        .form-panel.open {
            transform: translateX(0);
        }
    }

