* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: skyblue;
    background-image: url('img/burbujas.png');
    background-repeat: repeat;
    background-size: auto, 100px 100px;
    background-position: center, center;
    min-height: 100vh;
    padding: 20px;
}

/* Alerta importante */
.alerta-importante {
    background: #000000;
    color: #ffffff;
    padding: 20px;
    margin: 0 0 30px 0;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    border-radius: 8px;
    line-height: 1.5;
}

.alerta-importante .icono {
    font-size: 20px;
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Container principal */
.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
header {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.header-logo {
    width: 290px;
    height: 200px;
    object-fit: contain;
}

.header-text {
    flex: 1;
}

header h1 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 18px;
}

/* Main content */
main {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Form wrapper */
.form-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
}

/* Formulario */
form {
    padding: 40px;
    border-right: 2px solid #f0f0f0;
}

form h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Deshabilitar opciones en select */
.form-group select option:disabled {
    color: #999;
    font-weight: bold;
    background-color: #f0f0f0;
}

/* Info boxes */
.info-box {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .label {
    color: #555;
    font-weight: 600;
    font-size: 16px;
}

.info-item .value {
    color: #667eea;
    font-weight: 700;
    font-size: 18px;
}

/* Alert boxes */
.alert-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    color: #856404;
    line-height: 1.6;
}

.alert-box.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-box.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

/* Help text */
.help-text {
    display: block;
    color: #999;
    font-size: 14px;
    margin-top: 5px;
}

/* Botones */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: black;
    color: skyblue;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #999 !important;
    color: #fff !important;
}

.btn-agregar {
    width: 100%;
    padding: 12px;
    background: black;
    color: skyblue;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.btn-agregar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn-agregar:active {
    transform: translateY(0);
}

.btn-eliminar {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-eliminar:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-eliminar:active {
    transform: translateY(0);
}

/* Note */
.note {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 15px;
}

/* Info section */
.info-section {
    padding: 40px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f0ff 100%);
}

.info-section h3 {
    color: #667eea;
    font-size: 22px;
    margin-bottom: 20px;
}

.info-card {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-card p {
    color: #555;
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 15px;
}

.info-card p:first-child {
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    font-size: 17px;
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* Perros */
.perro-item {
    background: #f9f9f9;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s;
}

.perro-item:hover {
    border-color: #667eea;
}

.perro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.perro-numero {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
}

/* Adicionales */
.adicionales-container {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.adicionales-title {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
}

.checkbox-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.checkbox-item:hover {
    background: #e8f0ff;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-item label {
    cursor: pointer;
    font-size: 16px;
    color: #333;
    margin: 0;
}

.checkbox-precio {
    color: #667eea;
    font-weight: bold;
}

.checkbox-item input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.checkbox-item input[type="checkbox"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
    color: #999;
}

/* Adicionales bloqueados */
.adicionales-deshabilitados {
    opacity: 0.6;
    pointer-events: none;
    background: #f5f5f5 !important;
}

.mensaje-adicionales-bloqueados {
    background: #e3f2fd;
    border: 2px solid #667eea;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.adicionales-deshabilitados .checkbox-item {
    background: #e0e0e0 !important;
    cursor: not-allowed;
}

.adicionales-deshabilitados .checkbox-item:hover {
    background: #e0e0e0 !important;
}

.adicionales-deshabilitados .checkbox-item label {
    color: #999 !important;
}

.adicionales-deshabilitados .checkbox-precio {
    text-decoration: line-through;
    opacity: 0.5;
}

/* Descripción del servicio */
.descripcion-servicio {
    background: #f0f8ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.descripcion-servicio strong {
    color: #667eea;
    font-size: 18px;
    display: block;
    margin-bottom: 12px;
}

.descripcion-servicio .texto-descripcion {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Separadores */
.separador {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 3px solid #667eea;
    border-bottom: 3px solid #667eea;
}

.separador h3 {
    margin: 0;
    text-align: center;
    color: #667eea;
    font-size: 24px;
}

/* Mensajes de disponibilidad */
.mensaje-disponibilidad {
    margin-top: 10px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mensaje-disponibilidad.verificando {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.mensaje-disponibilidad.disponible {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.mensaje-disponibilidad.advertencia {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
    font-weight: bold;
}

.mensaje-disponibilidad.ocupado {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
    font-weight: bold;
}

.mensaje-disponibilidad.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

/* Modal de bases y condiciones */
.bases-footer {
    text-align: center;
    padding: 30px 20px;
    background: #f9f9f9;
    margin-top: 40px;
}

.btn-bases {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-bases:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-bases:active {
    transform: translateY(0);
}

.modal-bases {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.modal-bases.activo {
    display: block;
}

.modal-contenido {
    background: white;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: 50px auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.btn-cerrar {
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-cerrar:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.btn-cerrar:active {
    transform: rotate(0deg);
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 180px);
    overflow-y: auto;
}

.modal-body h3 {
    color: #667eea;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin: 10px 0;
    line-height: 1.8;
    color: #333;
    font-size: 16px;
    padding-left: 15px;
}

.modal-footer {
    padding: 20px 30px;
    background: #f9f9f9;
    text-align: center;
}

.btn-aceptar {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-aceptar:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-aceptar:active {
    transform: translateY(0);
}

/* Scrollbar personalizado para modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Ubicación */
.ubicacion-section {
    background: white;
    padding: 40px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ubicacion-section h3 {
    color: #667eea;
    font-size: 22px;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.mapa-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.mapa-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.info-direccion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.direccion-item {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f0ff 100%);
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.direccion-item strong {
    color: #667eea;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.direccion-item p {
    color: #333;
    font-size: 15px;
    margin: 0;
}

.note{
    color: #28a745; 
    font-weight: bold; 
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        width: 100%;
        max-width: 100%;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-logo {
        width: 200px;
        height: 150px;
        margin: 0 auto;
    }

    header h1 {
        font-size: 22px;
    }

    header p {
        font-size: 16px;
    }

    .form-wrapper {
        grid-template-columns: 1fr;
    }

    form {
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        padding: 30px 20px;
    }

    form h2 {
        font-size: 20px;
    }

    .info-section {
        padding: 30px 20px;
    }

    .info-section h3 {
        font-size: 20px;
    }

    .ubicacion-section {
        padding: 20px;
    }

    .ubicacion-section h3 {
        font-size: 20px;
    }

    .mapa-container {
        height: 300px;
    }

    .modal-bases {
        padding: 10px;
    }

    .modal-contenido {
        max-height: 95vh;
        margin: 20px auto;
        width: 95%;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-body h3 {
        font-size: 18px;
    }

    .btn-bases {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .perro-item {
        padding: 20px;
        scroll-margin-top: 20px;
    }

    .perro-numero {
        font-size: 18px;
    }

    .separador h3 {
        font-size: 20px;
    }

    .alerta-importante {
        font-size: 16px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 10px;
    }

    .form-group label {
        font-size: 15px;
    }

    header h1 {
        font-size: 20px;
    }

    header p {
        font-size: 15px;
    }

    form h2 {
        font-size: 18px;
    }

    .btn-submit,
    .btn-agregar {
        font-size: 16px;
        padding: 12px;
    }

    .info-card p {
        font-size: 14px;
    }

    .checkbox-item label {
        font-size: 15px;
    }

    .mensaje-disponibilidad {
        font-size: 13px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selección de texto personalizada */
::selection {
    background: #667eea;
    color: white;
}

::-moz-selection {
    background: #667eea;
    color: white;
}
